[newbie] trying socket as a replacement for nc

Jean Dubois jeandubois314 at gmail.com
Thu Dec 12 04:21:27 EST 2013


On Thursday, December 12, 2013 9:21:32 AM UTC+1, Chris Angelico wrote:
> On Thu, Dec 12, 2013 at 7:08 PM, Jean Dubois <jeandubois314 at gmail.com> wrote:
> 
> > Thanks for the reply, I changed the line you mentioned to
> 
> > s.send('*IDN?\n')
> 
> 
> 
> See if there's a newline issue - you might need \r\n here.
> 
> 
> 
> ChrisA

I changed it as you suggested to:

 s.send('*IDN?\r\n')

unfortunately this doesn't change the result, first run give as response:
Received: 
second run makes the program hang and the adapter needs rebooting

kind regards,
jean



More information about the Python-list mailing list