sorry for my english...
I have experience programming PICs but
i dont know how the rs-485 protocol works...
has somebody a simple example of use of the RS485.c library??
i need a simple example of main program...
I want to create a network with 2-10 pics to transmit sensor's data...
I need to send and to receive data from each module...
help!!
thanks...
mvaraujo
Joined: 20 Feb 2004 Posts: 59 Location: Brazil
Posted: Mon May 10, 2004 7:05 am
Guest,
The RS485 is not a protocol but a physical layer definition. It defines how to implement a multidrop serial network. The protocol itself is the second thing to think about and there are lots of options in the market. I would suggest you Modbus RTu because your sensors could be sold commercially as Modbus compliant devices for the market.
Marcus
Neutone
Joined: 08 Sep 2003 Posts: 839 Location: Houston
Posted: Mon May 10, 2004 8:26 am
I recomend reading up on the MAX232 first. It's a level converter between logic and RS232. Then look at the MAX485. It's a level converter between logic and RS485. This should give you a good idea of how the hardware layer can be put togather. Forget you ever saw RS485.c
You can look in my web folder for examples and specfications for MODBUS.
Ttelmah Guest
Posted: Mon May 10, 2004 10:34 am
Neutone wrote:
I recomend reading up on the MAX232 first. It's a level converter between logic and RS232. Then look at the MAX485. It's a level converter between logic and RS485. This should give you a good idea of how the hardware layer can be put togather. Forget you ever saw RS485.c
You can look in my web folder for examples and specfications for MODBUS.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum