Serial Communication?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By BillBux

I create a game with Godot and inputs given by Arduino via serial communication.
I use sercom library for creating this. serial communication in godot for windows is working fine… but i export my game into android it is not working. it didn’t take my Arduino inputs. …
Is there any solution for this?

:bust_in_silhouette: Reply From: ibrahim.semab

It’s possible that the issue is related to the permissions required for your game to access the serial communication port on Android. By default, Android restricts apps from accessing certain system resources without permission. To access the serial port on Android, your game will need the appropriate permissions.

Here are a few things you can try:

  1. Add the “android.permission.USB_PERMISSION” permission to your
    game’s Android manifest file. This will allow your game to request
    permission from the user to access USB devices, including the

  2. Check that the Arduino is properly connected to the Android device
    via USB and that the device recognizes it.

  3. Verify that the sercom library you are using is compatible with
    Android. Some libraries may not work properly on all platforms.

  4. Check for any error messages or logs that might give you more
    information about the issue.