-
Notifications
You must be signed in to change notification settings - Fork 54
Add and enable mraa GPIO tests #45
Conversation
|
@mythi This is kinda the same problem as with adding Bluetooth test but this test has to be hardware specific. I also made alternative way of doing this without using the mask files: skuusela@59f80e7. |
|
How reliable is mraa's capability to detect the board? See |
|
@mythi On Joule it gives: "Version v1.5.1 on Intel GT Tuchuck" and on Minnowboard Turbot: "Version v1.5.1 on MinnowBoard MAX". The |
|
Oh, I did not actually check skuusela@59f80e7 before my guestion. I'd prefer that option because it also tests mraa's capability to detect the board at the same time. |
The test will set a GPIO pin on and off using mraa and check the output to confirm it works. The test requires to use BeagleBone Black as the testing host and setting up it's GPIO pin 20 as input. Also correct cabling is required for checking the clients GPIO pin output. Signed-off-by: Simo Kuusela <simo.kuusela@intel.com>
ade11e3 to
0000720
Compare
Signed-off-by: Simo Kuusela <simo.kuusela@intel.com>
|
test this please |
| BeagleBone | ||
| ''' | ||
| def check_gpio_output(): | ||
| cmd = "cat /sys/class/gpio/gpio20/value".split() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you do this directly without exporting the GPIO first?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mythi No the GPIO pin has to be exported, but it's already exported on the Beaglebones. I added few lines to a boot script on the Beaglebone so it's always exported and ready after booting.
* meta-iot-web 1e515ff...775f6c2 (6): > Merge pull request intel#46 from nagineni/update_restserver > iot-rest-api-server.bb: Update iot-rest-api-server to v0.5.0 > Merge pull request intel#45 from nagineni/node_gcc_7 > nodejs: Fix Node.js build errors with gcc7 > Merge pull request intel#43 from TizenTeam/sandbox/pcoval/on/master/latest > nodejs: Fix FTBFS by adding missing argument to d.getVar Signed-off-by: Sudarsana Nagineni <sudarsana.nagineni@intel.com>
These tests will set a GPIO pin on and off and check the output with BeagleBone that it works.