Shop OBEX P1 Docs P2 Docs Learn Events
Rs-485 — Parallax Forums

Rs-485

jmspaggijmspaggi Posts: 629
edited 2009-04-16 12:10 in General Discussion
Hi,

Do we have a way to read RS-485 communications with a Javelin?

I have a device which is emiting data that I want to retreive on my Javelin and store on an USB Key. 24/7.

Thanks,

JM

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2009-04-15 16:59
    JM,

    What protocol does the device use? RS-485 doesn’t imply anything other than the signal type/level. How the data is communicated (protocol) could vary from device to device. Assuming it uses standard serial protocol then you could interface to it with a MAX-485 type driver and receive the data. If it is a network device using TCP/IP, UDP or some other network protocol then you’re going to have a more difficult time.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Engineering
  • jmspaggijmspaggi Posts: 629
    edited 2009-04-15 17:06
    Hi Chris,

    Thanks for your reply.

    The device I'm trying to attach documentation is attached to this post. I think that it's a "simple" serial communication because they say that we can connect it directly to the PC COM port and read the data. Do you know where I can find a schema for the MAX-485?

    Thanks,

    JM
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2009-04-15 19:16
    JM,

    The following link provides some standard RS-485/422 interface ICs that may work in your application. I hope this helps. Take care.

    http://www.maxim-ic.com/quick_view2.cfm/qv_pk/1111

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Engineering
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2009-04-16 08:37
    JM,

    Here is a class that extends the Uart class for half duplex RS485.
    Notice the parameter parity. If you don't need parity remove
    the parameter. Best to create a new class in that case.
    The class goes into folder ...\lib\stamp\core

    regards peter
  • jmspaggijmspaggi Posts: 629
    edited 2009-04-16 12:10
    Will be very usefull! Thanks a lot!

    I will buy a MAX-485 or MAX-487 this week-end to start testing.

    Regards,

    JM
Sign In or Register to comment.