Hi all,
I intend to send function strings to my device, and use python 2.7 socket programming and sendall() function, at the end of the command '\r\n' escape characters should be added according to the protocal and I try to write the command in the following lines:
send_str='function_strings'
con.sendall(send_str+'\r\n')
or write the command like this:
con.sendall(send_str+r'\r\n')
however, I did not receive any respond from my device and have no idea how to correctely send the escape characters in sendall function. I have also attached my short code in the attachment.
Thank you very much in advance.
I intend to send function strings to my device, and use python 2.7 socket programming and sendall() function, at the end of the command '\r\n' escape characters should be added according to the protocal and I try to write the command in the following lines:
send_str='function_strings'
con.sendall(send_str+'\r\n')
or write the command like this:
con.sendall(send_str+r'\r\n')
however, I did not receive any respond from my device and have no idea how to correctely send the escape characters in sendall function. I have also attached my short code in the attachment.
Thank you very much in advance.
Larz60+ write May-29-2021, 01:47 PM:
Rather than attach,
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you
expect before hitting the "Post Reply/Thread" button.
Rather than attach,
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you
expect before hitting the "Post Reply/Thread" button.
Attached Files