I was wondering what the difference is between running the debugger and the python script directly from the board. The reason I ask this is due to the fact that I am not getting any TCP data from the board to my server while running code directly off the board. However I am able to get data when I run from the debugger.
SERVER_PORT = ‘4040’
SERVER_ADDR = ‘XXX.XXX.XXX.XXX’
i = 0
while (i < 2):
i = i + 1
Is the message sending/termination different when executing on the board? I ask this because I dont even see the packet (using wireshark) get transmitted from the board when executing from the board. However I do see it when running the debugger.
You mean Wireshark intercepting on the server machine? At least you see the connection initialization?
Try MDM.send(‘AT&K0r’, 2) before doing socket things.
So I tried the MDM.send(‘AT&K0r’,2) before any socket code. The debugger still works but the board execution of the script still will not send the data out. I am able to see the connection initialize via Wireshark.
Is there prehaps another control flow item in control that the debugger handles?
Some more tweaks:
– wait for CONNECT message before sending anything through the socket. Do not rely on a predefined timeout
– send your data
– do a proper socket close with silence guard spaces of 2-3 seconds before and after the +++ sequence
Hit enter to search or ESC to close
Knowledge Base & Download Zone