Shop OBEX P1 Docs P2 Docs Learn Events
Two serial comunication at time — Parallax Forums

Two serial comunication at time

jnoguesjnogues Posts: 25
edited 2010-01-27 09:37 in Propeller 1
Hi everybody.

Is posible do a double serial comunication whith two PST objects for example?

I need a serial for comunicate whit the PC an the other for a RS485 network.

Thanks.

Jaume Nogues
Barcelona
Spain

Comments

  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2010-01-26 08:59
    This is the Propeller you are talking about, of course it can. Each cog can easily handle a single full-duplex channel and there is an object that runs 4 serial channels on one cog. Now if you left one cog for application code that would
    mean you could run 28 serial communications channels if you had enough I/O, which you don't smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    *Peter*
  • Timothy D. SwieterTimothy D. Swieter Posts: 1,613
    edited 2010-01-26 09:07
    Just as Peter said, no problem running as much serial stuff as you need. I would use Parallax Serial Terminal object with a PC and perhaps the FullDuplexSerial object for the RS485 network.

    Tell me more about the RS485 network, what protocols are you using? What are you controlling?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Timothy D. Swieter, E.I.
    www.brilldea.com - Prop Blade, LED Painter, RGB LEDs, 3.0" LCD Composite video display, eProto for SunSPOT
    www.tdswieter.com
  • jnoguesjnogues Posts: 25
    edited 2010-01-26 15:37
    Hi Peter and Tim,

    I'm learning propeller. I came to BS2 and I want to do a simply home control bus.

    I know nothing from protocols and I'm seraching in the forum and Internet.

    The structure will be master-slave (of course). First, I think the DMX512 could be a protocol for my idea, but I'm not sure.
    Another option is SNAP from HTH, but is dificult for me.

    In fact, I'm searching if everybody have made an easy protocol before, for learning it.

    Thanks and sorry for my terrible english.

    jaume Nogues
    Barcelona
    Spain
  • Timothy D. SwieterTimothy D. Swieter Posts: 1,613
    edited 2010-01-26 23:02
    Jaume -

    What devices are you trying to control over the RS485/home control bus? Are they commercially available devices? Can you give a link to a device you want to control?

    DMX512-A is for lighting, generally, however it can be adapted for controlling other items such as servo or motors or such.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Timothy D. Swieter, E.I.
    www.brilldea.com - Prop Blade, LED Painter, RGB LEDs, 3.0" LCD Composite video display, eProto for SunSPOT
    www.tdswieter.com
  • jnoguesjnogues Posts: 25
    edited 2010-01-27 07:34
    Hi Tim,

    I want to do all the devices and circuits for me. I don't want use comercial devices.

    Could I use the DMX512 for a bidirectional bus (From Master to slave and viceversa)?

    Regards,

    Jaume Nogues
    Barcelona
    Spain
  • Timothy D. SwieterTimothy D. Swieter Posts: 1,613
    edited 2010-01-27 09:37
    If you are making up the bus yourself, don't use DMX512. You can make your own protocol. Figure out a message structure of say x number of bytes. The first byte maybe the intended device address. The second byte may be a command, the following bytes may vary based on the command. Make sense? If you are making everything yourself make up the protocol unless you have a specific need to conform to something else.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Timothy D. Swieter, E.I.
    www.brilldea.com - Prop Blade, LED Painter, RGB LEDs, 3.0" LCD Composite video display, eProto for SunSPOT
    www.tdswieter.com
Sign In or Register to comment.