Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Conversation

@skuusela
Copy link
Contributor

These tests will set a GPIO pin on and off and check the output with BeagleBone that it works.

@skuusela
Copy link
Contributor Author

@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.

@mythi
Copy link
Contributor

mythi commented Feb 24, 2017

How reliable is mraa's capability to detect the board? See mraa-gpio version

@skuusela
Copy link
Contributor Author

skuusela commented Feb 24, 2017

@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 mraa-gpio version takes the board info from '/sys/devices/virtual/dmi/id/board_name'.

@mythi
Copy link
Contributor

mythi commented Feb 24, 2017

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>
@skuusela skuusela force-pushed the add_mraa_gpio_tests branch from ade11e3 to 0000720 Compare February 24, 2017 11:57
Signed-off-by: Simo Kuusela <simo.kuusela@intel.com>
@mythi
Copy link
Contributor

mythi commented Feb 24, 2017

test this please

BeagleBone
'''
def check_gpio_output():
cmd = "cat /sys/class/gpio/gpio20/value".split()
Copy link
Contributor

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?

Copy link
Contributor Author

@skuusela skuusela Feb 27, 2017

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.

@mythi mythi merged commit c68153c into intel:master Feb 27, 2017
@skuusela skuusela deleted the add_mraa_gpio_tests branch March 2, 2017 12:09
nagineni pushed a commit to nagineni/intel-iot-refkit that referenced this pull request Jun 26, 2017
* 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>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants