This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

dtm data sent

Hi,

I'm using pca10040 and prebuild hex with s132 from sdk 12. Now I'm wondering how can I get number of sent data? If I set it as transmitter - send via uart 0x8094 i get response 0x0000 and when i stop test with 0xc000 i get success status 0x8000 - how could i get number of bytes that were sent out?

On the receiver side, I start receiver test with cmd 0x4094 and also get response 0x0000. When I stop test with 0xc000 i get response 0x87e7...

So after py code check I guess that rcv get 0x07e7 packets, but how should i found out how many was it sent on transmitter side?

Thank you for info.

BR, Matej

Parents
  • FormerMember
    0 FormerMember

    For the transmitter test, there is no report of the number of transmitted packets. The number of transmitted packets is calculated based on the time the test is running and the interval between the packets. That method will result in a small error, but if the test is running for some time, that error can be discarded.

  • Kristin, thank you for rsp... but this self._calculateTimeForPackage function in py always returns 0.625 so I'm on the same if I count number of calls for dtm_wait() - which returns each 0.625 ms... Now I'm wondering if it is possible that for some reason transmitter could not send out a packet? Then maxpackages would be a higher, then a number of packets that were sent out... In that case we can't detect if problem is in transmiter of receiver - but we should trust the golden sample and thats it... Now I get it ;) Thank you once again Kristin!

Reply
  • Kristin, thank you for rsp... but this self._calculateTimeForPackage function in py always returns 0.625 so I'm on the same if I count number of calls for dtm_wait() - which returns each 0.625 ms... Now I'm wondering if it is possible that for some reason transmitter could not send out a packet? Then maxpackages would be a higher, then a number of packets that were sent out... In that case we can't detect if problem is in transmiter of receiver - but we should trust the golden sample and thats it... Now I get it ;) Thank you once again Kristin!

Children
No Data
Related