Android device need to support OTG mode.
Build source with Android Studio.
1. Modify the MainActivity with correct target device namepublic static final String TARGET_DEVICE_NAME = "Nexus 7";
- Pair the Arduino board with android.
- The app will try to connect the board once running until it's connected. Watch the logs if the connection does not establish.
- Open the app and connect the board.
- Grant USB permission to the app.
- The button will be enabled when connection is established.
show command issued and response from the board.
Input door number and press C-IN button.
Input door number and press C-OUT button.
- Input door number and press DOOR button.
- if door number is empty, door state query for all boxes will be issued.
- Input door number and press EMPTY button.
- if door number is empty, state query for all boxes will be issued.
- press CHARGE/DISCHARGE to simulate the LOW/HIGH command, making test easier.