-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test circuits_gpio v2.0.0-pre.* on official Nerves targets #159
Comments
Here's the MangoPi:
|
Here's the result on a BeagleBone Green Wireless:
|
Raspberry Pi 5
|
I tested Raspberry Pi 4 with iex(2)> Circuits.GPIO.Diagnostics.report(16, 20)
Circuits.GPIO Diagnostics 2.0.0-pre.2
Output GPIO: 16
Input GPIO: 20
Backend: Circuits.GPIO.CDev
Simple writes and reads work: PASSED
Can set 0 on open: PASSED
Can set 1 on open: PASSED
Input interrupts sent: PASSED
Interrupt timing sane: PASSED
Internal pullup works: PASSED
Internal pulldown works: PASSED
Speed test: 335177 writes/second
All tests passed |
I tested Raspberry Pi 3, 3B+, with iex(1)> Circuits.GPIO.Diagnostics.report(16, 20)
Circuits.GPIO Diagnostics 2.0.0-pre.2
Output GPIO: 16
Input GPIO: 20
Backend: Circuits.GPIO.CDev
Simple writes and reads work: PASSED
Can set 0 on open: PASSED
Can set 1 on open: PASSED
Input interrupts sent: PASSED
Interrupt timing sane: PASSED
Internal pullup works: PASSED
Internal pulldown works: PASSED
Speed test: 232423 writes/second
All tests passed |
@pojiro Could you confirm that GPIOs 16 and 20 are connected together? The results that you're getting suggest that there's no wire connecting them. If they are connected, could you post the output from Second idea: Try passing |
GRiSP2 with the GPIO1's PMOD connector pins 1 and 3 connected. (pin 2 didn't work?). See nerves-project/nerves_system_grisp2#68.
|
@fhunleth I didn't understand the protocol. Now I see it, tested again. So I updated the results, rpi3 and rpi4. Thanks. |
I tested BeagleBoneBlack nerves_system_bbb 2.19.1 with iex(2)> Circuits.GPIO.Diagnostics.report(67, 68)
Circuits.GPIO Diagnostics 2.0.0-pre.2
Output GPIO: 67
Input GPIO: 68
Backend: Circuits.GPIO.CDev
Simple writes and reads work: PASSED
Can set 0 on open: PASSED
Can set 1 on open: PASSED
Input interrupts sent: PASSED
Interrupt timing sane: PASSED
Internal pullup works: PASSED
Internal pulldown works: FAILED 291: Assertion failed: GPIO.read(in_gpio) == 0
Speed test: 76327 writes/second
Failed I tested BeagleBoneBlack nerves_system_bbb 2.19.1 with iex(1)> Circuits.GPIO.Diagnostics.report(67, 68)
Circuits.GPIO Diagnostics 2.0.0-pre.3
Output GPIO: 67
Input GPIO: 68
Output info: %Circuits.GPIO.Line{gpio_spec: {"gpiochip2", 3}, label: "P8_8", controller: "gpio-64-95", consumer: "circuits_gpio"}
Input info: %Circuits.GPIO.Line{gpio_spec: {"gpiochip2", 4}, label: "P8_10", controller: "gpio-64-95"}
Backend: Circuits.GPIO.CDev
Simple writes and reads work: PASSED
Can set 0 on open: PASSED
Can set 1 on open: PASSED
Input interrupts sent: PASSED
Interrupt timing sane: PASSED
Internal pullup works: PASSED
Internal pulldown works: FAILED 325: Assertion failed: GPIO.read(in_gpio) == 0
Writes/second: 72606
Reads/second: 111043
Failed |
@pojiro Great! Thank you for retesting and updating the reports. I'll be updating the diagnostics for the |
|
Raspberry Pi Zero W on
|
@Moosieus Thanks for posting that. I just now noticed that the labels for pins 16 and 20 are "GPIO16" and "GPIO20" for that Raspberry Pi Zero, and that's different from the Raspberry Pi 5 (PINn where n is the physical GPIO connector pin number). That will certainly be confusing to people who don't know, so I added a note to the docs. |
Here's the Raspberry Pi Zero 2W on
|
Closing since the |
This issue tracks testing on various systems.
Two kinds of tests are useful to report:
Circuits.GPIO.Diagnostics.report(gpio1, gpio2)
where you connect gpio1 and gpio2 together and let theDiagnostics
module check things out.Update your
mix.exs
with the following dependency and force if necessary:{:circuits_gpio, "~> 2.0.0-pre.3"}
. If you don't want to think, check out and build the try-circuits_gpio-v2 branch ofcircuits_quickstart
.Please post the output of the Diagnostics report even if 100% successful just in case some target has unexpected performance issues.
Platforms of particular interest (reports from others are appreciated)
The text was updated successfully, but these errors were encountered: