View: 7474|Reply: 6

3G IOT (B) GPIO ACCESS

[Copy link]

1

threads

3

posts

31

credits

Novice

Rank: 1

credits
31
Published in 2018-8-21 05:40:16 | Show all floors |Read mode
Hi Everyone, I've tried to find a way to manipulate the GPIO's pin's with my board (OrangePi 3G IOT B) but no result. I googled some while at night and I did find this command's for MT devices:

# echo "-wdir 24 0" > /sys/devices/virtual/misc/mtgpio/pin
# echo "-wdout 24 1" > /sys/devices/virtual/misc/mtgpio/pin

This commands take on HIGH the PIN21 (GPIO24) of my board, but it's not works.

I checked the .../pin archive with:

# cat /sys/devices/virtual/misc/mtgpio/pin | grep 24:

And the result is:  24:1001000-1

If I'm correct, this means: [MODE=1] [PULL_SEL=0] [DIN=0] [DOUT=1] [PULL EN=0] [DIR=0] [INV=0] [IES=0].

I believe that exist's an error in this method's but now I can not see.

Any Help ?

0

threads

2

posts

19

credits

Novice

Rank: 1

credits
19
Published in 2018-8-21 05:58:31 | Show all floors
You could communicate to pins through this folder if you want to do tx rx uart communication:
/dev/ttyS0 or /dev/ttyS1 etc...

baud 115200

1

threads

3

posts

31

credits

Novice

Rank: 1

credits
31
 Author| Published in 2018-8-21 06:05:08 | Show all floors
Thanx @code_slave for you quickly reply, but I only want to turn on/off a LED over the GPIO. It's more simple, but I appreciate you suggestion friend.

1

threads

3

posts

31

credits

Novice

Rank: 1

credits
31
 Author| Published in 2018-8-22 06:33:20 | Show all floors
Hi, after googled more times, I did find a way to solve my problem. I don't know why, but I just flash the boot.img again to the board and these commands (below) work's fine. It seem's the first image that come flashed in the board have bug's.

# echo "-wdir 24 0" > /sys/devices/virtual/misc/mtgpio/pin
# echo "-wdout 24 1" > /sys/devices/virtual/misc/mtgpio/pin

I had another problem with the Android Home Touch Button, at the touchscreen display. To solve this, I just reflash the system.img on the board.

The android image can be found in the archive: IoT03_b1258_32g4g_ry_smt_v1.1.rar
At:http://www.orangepi.org/download ... 291b9136e47b63.html

Many Thanks. I hope this tip help someone.

1

threads

8

posts

970

credits

Senior member

Rank: 4

credits
970
Published in 2019-2-27 06:27:05 | Show all floors
If you have had any progress on installing Linux on the Orange Pi 3G IOT B, could you add a comment at http://www.orangepi.org/orangepi ... thread&tid=4206 please?

We would really appreciate your help

0

threads

23

posts

78

credits

Registered member

Rank: 2

credits
78
Published in 2023-3-2 09:50:37 | Show all floors
You can utilize a library or application programming interface (API) offered by the operating system slither io or the GPIO controller on that board to control the GPIO pins on that board.

0

threads

51

posts

148

credits

Registered member

Rank: 2

credits
148
Published in 2023-11-17 15:30:17 | Show all floors
Highly beneficial essay! This article is filled with a wealth of information that can be utilized by anyone to initiate a successful social media campaign concerning the subject matter. la times crossword
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list