Menu

More Serial Clarification

Help
H2TECH
2011-12-26
2013-05-30
  • H2TECH

    H2TECH - 2011-12-26

    Alright, I decided to order some pic's with USART (pic16f688's) for making a special network of remotely controlled devices (1 transmitter and 3-4 receivers connected to rc devices). My question is how to address individual pic mcu's which all operate on the same frequency with hardware serial communication. Once a pic mcu is addressed, there will be 4-5 channels for communicating what the mcu receiver is supposed to do to control the device. I know I will need RX interrupts, but how will I choose and transmit instructions with GC Basic?

     
  • H2TECH

    H2TECH - 2011-12-26

    Well, to make start a conversation, let me simplify the problem to allow me to get started:

    Let's say I have a Remote Control, with a 16f688 as its heart, and two vehicles, both with 16f688's or 16f628's (When they Come). If I want to tell Vehicle one to move forward, how do I tell Vehicle 2 to ignore the command (Which happens to be on the same frequency)?

    Also, if anyone knows a better method for communicating information between two pics other than rs-232, please inform me.

     
  • Nobody/Anonymous

    two methods that I have seen:

    1)  PIC have the ability to send a ninth bit.  Setting the ninth bit with an address in the other 8 bits enables the receiver with this address to listen and receive the commands.  Could be until another address was sent or the end of the message.

    2) limit yourself to ascii messages.  use like the SOT char and the next byte in the address, then send the message/command and finish with EOT char.  The receiver whose address matches will continue to buffer the message until EOT.  The receivers who don't match will just wait for the EOT or SOT with a new address.

    Look up ascii,   or modbus  or NAMA MDB bus

     
  • H2TECH

    H2TECH - 2011-12-26

    Well, I will try some of these methods when my new parts come. I will add another reply when I test them out.

     
  • Mauried

    Mauried - 2012-01-08

    Can you clarify exactly what you are trying to do.
    What sort of Radio Transmitters / Receivers are you using.
    Async RS232 type data doesnt work well over radio links, unless you use dedicated Transmitters / receivers specifically
    designed for this purpose.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.