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.

  • FormerMember
    0 FormerMember in reply to FormerMember

    For the transmitter test, the packet error rate is calculated in the upper + lower tester only, based on the duration of the test time and the number of packets received. In the python script, the packet error rate is calculated the following way:

    def _calculatePER(self, receivedPackages):
    	"""Calculates the PER"""
    	maxpackages = int (round(self.runtimeinms / self._calculateTimeForPackage ()))
    	lostpackages = maxpackages - receivedPackages
    	lostpackages = max(0, lostpackages)
    	self._debug("Received: %s Max: %s Lost: %s" % (receivedPackages, maxpackages, lostpackages))
    	per = int (round((float(lostpackages) / float(maxpackages)) * 100))
    	return per
    
Reply
  • FormerMember
    0 FormerMember in reply to FormerMember

    For the transmitter test, the packet error rate is calculated in the upper + lower tester only, based on the duration of the test time and the number of packets received. In the python script, the packet error rate is calculated the following way:

    def _calculatePER(self, receivedPackages):
    	"""Calculates the PER"""
    	maxpackages = int (round(self.runtimeinms / self._calculateTimeForPackage ()))
    	lostpackages = maxpackages - receivedPackages
    	lostpackages = max(0, lostpackages)
    	self._debug("Received: %s Max: %s Lost: %s" % (receivedPackages, maxpackages, lostpackages))
    	per = int (round((float(lostpackages) / float(maxpackages)) * 100))
    	return per
    
Children
No Data
Related