Click here to Skip to main content
15,885,890 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Do GPIO ports (on raspberry pi) can be used for serial communication? or, how we can connect multiple devices for simultaneous communication on single RX and TX of raspberry pi?

Edit: I have two devices, a GPS module and a GPRS/GSM module to connect, both uses RX and TX to communicate with Pi. GPRS module has SDA SCL pins that I can connect to Pi, but I am not getting the device address (using command i2cdetect -y 1). GPS module has TX and RX pins only which I have to connect to Pi's RX and TX.
Posted
Updated 18-Jul-15 23:23pm
v2
Comments
Sergey Alexandrovich Kryukov 19-Jul-15 14:51pm    
Why?
—SA
barneyman 19-Jul-15 23:14pm    
can't you just use multiple FTDI usb boards?

1 solution

Theoretically speaking, yes, but you won't want to get into so much trouble — they are not designed for this purpose. It would be quite difficult to organize such communication. You will understand it if you understand what GPIO is: https://en.wikipedia.org/wiki/General-purpose_input/output[^].

For communications, USB or Ethernet is used. In you have some other device (GSP, modem, anything) which still uses something line RS-232, you can use one of the adapter products.

—SA
 
Share this answer
 
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900