1. PURPOSE / DESCRIPTION
1.1 To access DRONA driver attributes on sysfs using the adb shell
2. TEST SET-UP
2.1 WiRa board
2.2 DRONA with flight control firmware flashed
2.3 Android SDK tools
3. PROCEDURE
3.1 Turn on the WiRa board
3.2 Connect the USB cable to the WiRa board
3.3 Check if the device is present in command line by “adb devices”
3.4 Logon to the shell of the WiRa board by “adb shell”
3.5 Navigate to /sys/bus/spi/drivers/marc_basic/spi0.1/
3.6 To enable SPI communication (if the app has not already), use echo “-I” > spi
3.7 For read/write LED attributes, use echo 0 > LED_x to turn off and echo 1 > LED_x to turn on
3.8 The transfer attribute is a read/write binary attribute that sends/receives a 32 byte packet by writing/reading into it. Please refer to ETP 521 for the detail.
3.9 The camera attribute is a read-only binary attribute that returns a 2048 byte packet structure containing OFC data. Actual length of frame depends on the DRONA. At the time of writing, it was 512 bytes.
3.10 speed is a read/write binary attribute that can be used to get/set the current speed of the SPI module in kHz.
3.11 state is a deprecated attribute and is no longer used.