Program sending Packet for Transceiver

Discussion in 'Programmer's Corner' started by Socheara, Apr 29, 2008.

  1. Socheara

    Thread Starter New Member

    Mar 17, 2008
    Dear All!

    How are you guy doing?? i got other question to let you guy help me with lol:p

    I want to program my transceiver to send a packet with the contain of the raw string. i using C to do the program. if anyone can help it will be very helpful to me. Below i had include my Packet structure.

    Preamble : 3bytes
    Start : 1 bytes ready for transmission
    Destination add :1 bytes
    Source add: 1 bytes
    Length : 1 bytes Legth of payload in bytes
    Payload : 0 to 255 bytes Actual data
    checksum : 1 byte make sure the data not corrupt

    Thank a lot.
    Hope to hear from you all.
  2. Mark44

    Well-Known Member

    Nov 26, 2007
    Your problem description is pretty vague. All you have given us is the structure for a struct that your code will send.

    Before the transceiver sends a packet, it will need to do some setup tasks to wake up the receiver, find out if the receiver is ready to receive a packet, and communicate with the receiver about the format of the packet, just to name a few things. Then the transceiver has to send the packet, and receive some sort of confirmation that the receiver got the packet. In short, we need some more information.