Tx rx
aaron87
Posts: 6
I encounter these problems when I'm using the
transmitter and the receiver. (the two attach files
are my program. one is on the TX, the other on RX.)
1. Why it can only receive once after transmitting so
many times?
2. How many data can be sent through RF?
3. Why isn't the synchronizing working? I must add
another rubbish value in order to synchronize it.
4. And my main point is that whether the RF can TX and
RX faster.
Thank you.
transmitter and the receiver. (the two attach files
are my program. one is on the TX, the other on RX.)
1. Why it can only receive once after transmitting so
many times?
2. How many data can be sent through RF?
3. Why isn't the synchronizing working? I must add
another rubbish value in order to synchronize it.
4. And my main point is that whether the RF can TX and
RX faster.
Thank you.
Comments
The speed of the RF data link is affected by the distance involved and the technique used for transmitting the data.
The maximum data rate specified is 19.2KBaud, but that would only work reliably in a relatively RF quiet environment and at close range. 9600Baud is a more likely rate for good reliability. Keep in mind that the Stamp's serial I/O is not buffered so, if the Stamp program is not actually waiting for input when the transmitter sends it, the program will not receive the data or will receive it incorrectly.
For really reliable communication, you will probably need some error checking. Some systems send the same data several times and use a checksum or CRC (cyclic redundancy check) to detect errors and discard invalid information on the receive end.