[newbie] trying socket as a replacement for nc
Alister
alister.ware at ntlworld.com
Thu Dec 12 09:05:20 EST 2013
On Thu, 12 Dec 2013 01:21:27 -0800, Jean Dubois wrote:
> 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
you probably need to use something like wireshark to see what is actually
happening and compare it to a good connection in the normal way.
--
Save energy: Drive a smaller shell.
More information about the Python-list
mailing list