This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

real time data transmission

Other Parts Discussed in Thread: CC2530, Z-STACK

HI

Can serial port of smart rf 05 evaluation board be used for real time serial data reception  from pc  and transmit via zigbee ????

  • It depends to your Zigbee device. If it is end device type, MCU will goes to sleeping mode and can't receive UART RX data from PC. If it is a Zigbee router, there is no such problem.
  • Hi

    I am able to send real time data using cc2530 . i get input from serial port of kit and send it to other zigbee . It is working ok but i got a problem . every time a send new data it is received on other device with some data of previosly sent . so i get new data plus previously sent data . i also cleared pkt->cmd.Data bits each time i receive data and i also cleared the buffers but the issue still exist. does it has any link with uart buffers etc ??? kindly help me out 

  • When you use AF_DataRequest, there is transID parameter. You can use it to avoid duplicate message when receiving over the air messages.
  • Hi,
    as YK pointed the method that needs to be used to discriminate between OTA messages is the transID parameter.

    However, it looks like in your case you are sending frames OTA with the same partial data coming from the UART buffer. Please verify this hypothesis by analyzing with a sniffer the OTA frames being sent out.
    If two frames which have different APS sequence number have same partial UART data, then clearly the error happens on the sender side.
    In which case please make sure the UART data stored in the buffer is cleared once a frame is transmitted.
    It would help to have a frame format for UART data, like the MT format we use for all UART communication between host and embedded devices.
    Please check out the Z-Stack ZNP Interface Specification for an explanation of the MT format.
    Thanks,
    TheDarkSide
  • My UART data buffer is not clearing when sent . I also added a code of UART flush that basically flushes the port . i also get this code from forum here
    void flushUART (uint8 port)
    {
    uint16 bytesRead;

    /* Dummy buffer declaration */
    char rxbuf[100];
    /* Read the number of bytes in Rx buffer */
    uint16 rxBufLen = Hal_UART_RxBufLen(port);

    /* Prevent dummy buffer overflow */
    if (rxBufLen > 100)
    rxBufLen = 100;
    /* Read all the data of Rx buffer to flush it */
    bytesRead = HalUARTRead( port, rxbuf, rxBufLen );

    }
    but my issue remains same that when i write new data it accompanies with some previous data and then send it . Need some help in this regards kindly exactly what should i do . i also try by clearing TX buffer and pkt->cmd.Data bits but no effect because my sending data is not accurate
  • The problem is how fast you send UART data to CC253x?
  • my baud rate is 38400
  • I mean how fast you send between UART packets.