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.

Z Stack EXP4538 2.5.1 Generic App Delay between two packets

Other Parts Discussed in Thread: MSP430F5438, CC2520, MSP430F5438A

Hi,

I am using MSP430F5438 experimenter board and CC2520 transceiver as coordinator and end device.

I am using Generic app for sending the analog data after passing through ADC of msp430f5438a controller. 

The setup is working fine when I set GENERICAPP_SEND_MSG_TIMEOUT in GenericApp.h to more than 150. The default value for that was 5000 and I changed it to 150. I am currently sending 80 bytes of data.

Whenever I change the value of GENERICAPP_SEND_MSG_TIMEOUT  to any value lower than 150 the system does not respond correctly  By incorrect  respond I mean that the values do not come continuously.  I keep getting a message orphan Response on coordinator. 

Is there some other parameter also that needs to be changed if I want to keep the delay between two packets less than 150 ms? I want to keep that value as low as possible.

Thanks

Yuvraj

  • I thought the lower timeout value gives the issue.
    I suggest you to provide delay between two transmission.
    Why do you send the message continuously?



    Regards,
    Keerthi G.
  • My application is such that it is required for me to keep the delay as low as possible. Also I wanted to cross the barrier of 150ms to see the behavior. Can we set the value of timeout lower than 150ms and if yes how can we do that ?
  • As I knew, It is not possible to send the data continuously with this low timeout value.
    I would suggest you to provide at least 1sec delay between successive data.

    If you tell me your requirements little more, I will try to give the solution.

    Regards,
    Keerthi G.
  • I want to send the analog data after passing through ADC of MSP430F5438A controller. I want to send the data from end device and receive at coordinator with routers in between. The analog data has frequency of 0Hz to 250Hz. I am sending the data received at coordinator to PC using UART. For testing purpose I am sending a sine wave generated from function generator and passing it through analog pin of MSP430F5438A.

    I am not able to send the data correctly i.e. the signal received is not continuous and it has spikes in between. I want the signal received to be very smooth. I am trying to adjust the delay between two packets to see if I can get smooth wave for low delay values.
  • According to the description of your application, I suggest you collect several ADC data to send at a time. Don't send an single ADC EVERY TIME. For example, you can collect 40 ADC reading and send in a message. In this way, you don't have to use TX very fast.
  • Yikai Chen,

    I am currently collecting 60 bytes of data and sending them after a delay of 200ms. I have kept the sampling rate of ADC 7075Hz and I have also kept delay of 1ms between two values of ADC in ADC ISR.

    Using above settings I am able to receive the data correctly or almost smoothly for frequencies above 30Hz to 150Hz but for low frequencies the data is not smooth . I want smooth data for 0 Hz to 250Hz
  • Hi,

    Anyone please help me with my query.

    Thanks
  • According to my experience, ZED can't send data that fast. My experience shows the fastest data rate of ZED is about 16K bits per seconds. I don't think you can make ZED send smooth data on 250 Hz.
  • Yikai Chen Sir,

    Thanks for the reply.

    As you told that the fastest data rate of ZED is about 16K bits per second and 250Hz means 250 * 8 bits per second so shouldn't 16K bits per second be sufficient for reconstruction of signal?

    If I consider that I cannot send smooth data for 250 Hz then what is the maximum limit?

    Also can you please tell me how to send 16K bits per second, what settings should I use?

    Thanks

    Yuvraj Sahni
  • Sorry, I might misunderstand you. If your 250Hz means 250*8bits per seconds, I think it is no problem to send data smoothly. You can do collect 50 ADC reading and send them in one message. So, ZED only has to send ADC data 5 times per seconds in 200ms interval.