USB – Device Mode
The ARTIK 10 module directly supports one USB 3.0 port that is switchable between host controller and device modes. Refer to the USB – Host article for information on switching between modes.
The discussions in this section assume that the ARTIK 10 USB logic has been programmed to device mode.
The ARTIK 7 module directly supports one USB 2.0 OTG port, which switches between device and host modes following OTG protocols.
The ARTIK 5 module and board provide a single USB 2.0 port, which supports device mode use only.
The USB Debug ports on each ARTIK board are used exclusively for console interface and are not discussed here.
Testing Device Mode
Install adb Utility
You will need to install the
android-tools-adb tool on your Linux® host PC if you want to use
adb to test the USB device mode of ARTIK.
sudo apt-get install android-tools-adb
You can also install
adb on your Windows® PC. Details are provided in the Image Update article.
Execute adb Transfer
Use the appropriate cables for the receptacle types listed below to connect each board to your host PC.
ARTIK 5: USB mini-B receptacle
ARTIK 7: USB micro-AB receptacle
ARTIK 10: USB type A receptacle; switch port to device mode as noted above
Using the terminal emulator to your ARTIK board, run the
systemctl start adbd.service
To enable the service permanently, instead use:
systemctl enable adbd.service
From your host PC, send a file using the
adb push TEST_FILE /root