Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sleepy node (mostly staying in low power, radio not reachable) sending duplicate messages #161

Closed
anesh1992 opened this issue May 28, 2020 · 2 comments

Comments

@anesh1992
Copy link

Hi,
I have a sleepy node running Coap clients(based on Contiki) that sends data every 5 minutes and stays in low power mode (node not reachable), when it wakes up, seems like it sends data again and again to the Coapthon server, there are multiple transactions. That's not good for a node running on battery. Any idea, why that might be happening? Any pointer will be helpful, for now, I have no idea where to look.

2020-05-28 12:23:05,546 - MainThread - coapthon.server.coap - DEBUG - receive_datagram - From ('XXXX::XXX:XXXX:XXXX:XXXX', 5683), To None, CON-63918, POST-None, [Uri-Path: ad_temp_to_dir, ] 

 msg no: 435	temp:...27 bytes
2020-05-28 12:23:05,550 - MainThread - coapthon.layers.messagelayer - DEBUG - receive_request - From ('XXXX::XXX:XXXX:XXXX:XXXX', 5683), To None, CON-63918, POST-None, [Uri-Path: ad_temp_to_dir, ] 

 msg no: 435	temp:...27 bytes
397.165278 2020-05-28 12:23:05.564582
From ('XXXX::XXX:XXXX:XXXX:XXXX', 5683), To None, CON-63918, POST-None, [Uri-Path: ad_temp_to_dir, ] 

 msg no: 435	temp:...27 bytes 

 msg no: 435	temp: 21.6


2020-05-28 12:23:05,577 - Thread-475 - coapthon.server.coap - DEBUG - Notify
2020-05-28 12:23:05,584 - Thread-475 - coapthon.layers.messagelayer - DEBUG - send_response - From None, To ('XXXX::XXX:XXXX:XXXX:XXXX', 5683), None-None, CHANGED-None, [] 0...1 bytes
2020-05-28 12:23:05,591 - Thread-475 - coapthon.server.coap - DEBUG - send_datagram - From None, To ('XXXX::XXX:XXXX:XXXX:XXXX', 5683), ACK-63918, CHANGED-None, [] 0...1 bytes
2020-05-28 12:23:09,099 - MainThread - coapthon.server.coap - DEBUG - receive_datagram - From ('XXXX::XXX:XXXX:XXXX:XXXX', 5683), To None, CON-63918, POST-None, [Uri-Path: ad_temp_to_dir, ] 

 msg no: 435	temp:...27 bytes
2020-05-28 12:23:09,103 - MainThread - coapthon.layers.messagelayer - DEBUG - receive_request - From ('XXXX::XXX:XXXX:XXXX:XXXX', 5683), To None, CON-63918, POST-None, [Uri-Path: ad_temp_to_dir, ] 

 msg no: 435	temp:...27 bytes
2020-05-28 12:23:09,108 - MainThread - coapthon.server.coap - DEBUG - message duplicated, transaction completed
2020-05-28 12:23:09,113 - MainThread - coapthon.server.coap - DEBUG - send_datagram - From None, To ('XXXX::XXX:XXXX:XXXX:XXXX', 5683), ACK-63918, CHANGED-None, [] 0...1 bytes
2020-05-28 12:23:16,361 - MainThread - coapthon.server.coap - DEBUG - receive_datagram - From ('XXXX::XXX:XXXX:XXXX:XXXX', 5683), To None, CON-63918, POST-None, [Uri-Path: ad_temp_to_dir, ] 

 msg no: 435	temp:...27 bytes
2020-05-28 12:23:16,366 - MainThread - coapthon.layers.messagelayer - DEBUG - receive_request - From ('XXXX::XXX:XXXX:XXXX:XXXX', 5683), To None, CON-63918, POST-None, [Uri-Path: ad_temp_to_dir, ] 

 msg no: 435	temp:...27 bytes
2020-05-28 12:23:16,370 - MainThread - coapthon.server.coap - DEBUG - message duplicated, transaction completed
2020-05-28 12:23:16,375 - MainThread - coapthon.server.coap - DEBUG - send_datagram - From None, To ('XXXX::XXX:XXXX:XXXX:XXXX', 5683), ACK-63918, CHANGED-None, [] 0...1 bytes
2020-05-28 12:23:30,704 - MainThread - coapthon.server.coap - DEBUG - receive_datagram - From ('XXXX::XXX:XXXX:XXXX:XXXX', 5683), To None, CON-63918, POST-None, [Uri-Path: ad_temp_to_dir, ] 

 msg no: 435	temp:...27 bytes
2020-05-28 12:23:30,710 - MainThread - coapthon.layers.messagelayer - DEBUG - receive_request - From ('XXXX::XXX:XXXX:XXXX:XXXX', 5683), To None, CON-63918, POST-None, [Uri-Path: ad_temp_to_dir, ] 

 msg no: 435	temp:...27 bytes
2020-05-28 12:23:30,715 - MainThread - coapthon.server.coap - DEBUG - message duplicated, transaction completed
2020-05-28 12:23:30,721 - MainThread - coapthon.server.coap - DEBUG - send_datagram - From None, To ('XXXX::XXX:XXXX:XXXX:XXXX', 5683), ACK-63918, CHANGED-None, [] 0...1 bytes
2020-05-28 12:24:56,814 - MainThread - coapthon.server.coap - DEBUG - receive_datagram - From ('XXXX::XXX:XXXX:XXXX:XXXX', 5683), To None, CON-63918, POST-None, [Uri-Path: ad_temp_to_dir, ] 

 msg no: 435	temp:...27 bytes
2020-05-28 12:24:56,819 - MainThread - coapthon.layers.messagelayer - DEBUG - receive_request - From ('XXXX::XXX:XXXX:XXXX:XXXX', 5683), To None, CON-63918, POST-None, [Uri-Path: ad_temp_to_dir, ] 

 msg no: 435	temp:...27 bytes
2020-05-28 12:24:56,824 - MainThread - coapthon.server.coap - DEBUG - message duplicated, transaction completed
2020-05-28 12:24:56,829 - MainThread - coapthon.server.coap - DEBUG - send_datagram - From None, To ('XXXX::XXX:XXXX:XXXX:XXXX', 5683), ACK-63918, CHANGED-None, [] 0...1 bytes

Thanks & Regards
-Anesh

@Tanganelli
Copy link
Owner

Tanganelli commented May 29, 2020 via email

@anesh1992
Copy link
Author

Hi, Thank you for showing direction, I will verify by on Wireshark.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants