Jump to content

Recommended Posts

Posted

Hi,

After upgrading from Lemaker Lubuntu with 3.4 kernel to the latest Armbian with 4.9 kernel my application that reads INPUT PIN using wiringPi is behaving very strange and unstable. I simply make a pin INPUT and check the value using gpio read command. When I short the pin the value returned by gpio command changes not always immediately. Some times it takes up to 5 seconds to refresh the value. I mean, it keeps returning me "0" while the pin is shortened and only few seconds later it starts returning me "1".

 

WiringPi is installed from this repo: https://github.com/LeMaker/WiringBP

 

Is it still fully compatible with 4.9 kernel? Or do I need to use some other version or tune my DTB/DTS?

Anyone else noticed any lags with reading wiringpi gpio input pin?

 

Thanks

Posted

After some testing I found the same behavior with legacy kernel 3.4.113

 

The thing is that while "digitalRead" returns me "0", I execute "gpio readll" in a command line and I see that there pin's status is shown correctly - it is "1". Very weird and so far I have no idea how to troubleshoot such issue.

 

All worked fine when my BananaPi was running Lubuntu 14.04 from Lemaker. Now, after upgrade to Armbian 16.04 this issue appeared. Really strange

Posted

I installed lamobo r1 Jessie next, my problem can not get gpio ports, is there a step-by-step description? wiring pi up but not responding "gpio export 22 out" or write 22 1: 0 No reaction. What might be the problem?

 

 

Quote


root@lamobo:~# gpio export 22 out
root@lamobo:~# gpio readall
 +-----+-----+---------+------+---+-Model  A-+---+------+---------+-----+-----+
 | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |
 +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
 |     |     |    3.3v |      |   |  1 || 2  |   |      | 5v      |     |     |
 |   2 |   8 |   SDA.1 |   IN | 0 |  3 || 4  |   |      | 5v      |     |     |
 |   3 |   9 |   SCL.1 |   IN | 0 |  5 || 6  |   |      | 0v      |     |     |
 |   4 |   7 | GPIO. 7 |   IN | 0 |  7 || 8  | 0 | IN   | TxD     | 15  | 14  |
 |     |     |      0v |      |   |  9 || 10 | 0 | IN   | RxD     | 16  | 15  |
 |  17 |   0 | GPIO. 0 |   IN | 0 | 11 || 12 | 0 | IN   | GPIO. 1 | 1   | 18  |
 |  27 |   2 | GPIO. 2 |   IN | 0 | 13 || 14 |   |      | 0v      |     |     |
 |  22 |   3 | GPIO. 3 |   IN | 0 | 15 || 16 | 0 | IN   | GPIO. 4 | 4   | 23  |
 |     |     |    3.3v |      |   | 17 || 18 | 0 | IN   | GPIO. 5 | 5   | 24  |
 |  10 |  12 |    MOSI |   IN | 0 | 19 || 20 |   |      | 0v      |     |     |
 |   9 |  13 |    MISO |   IN | 0 | 21 || 22 | 0 | IN   | GPIO. 6 | 6   | 25  |
 |  11 |  14 |    SCLK |   IN | 0 | 23 || 24 | 0 | IN   | CE0     | 10  | 8   |
 |     |     |      0v |      |   | 25 || 26 | 0 | IN   | CE1     | 11  | 7   |
 +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
 | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |
 +-----+-----+---------+------+---+-Model  A-+---+------+---------+-----+-----+
root@lamobo:~# gpio -v
gpio version: 2.46
Copyright (c) 2012-2018 Gordon Henderson
This is free software with ABSOLUTELY NO WARRANTY.
For details type: gpio -warranty

Raspberry Pi Details:
  Type: Model A, Revision: 00, Memory: 256MB, Maker: Sony
  * Device tree is enabled.
  *--> Lamobo R1
  * Root or sudo required for GPIO access.
root@lamobo:~#
 

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines