Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Hex and serial variable
Post: RE: Hex and serial variable

I am trying to understand why this doesn't work ? If I use a shell script with sed to read final_CW b'\xEA\x10\xC6\x26\x4B\x37\xE4\x87\xC3\x2E\xB2\xB6\x9F\x07\x3D\x2D\xC6\x30' and replace CW=cat f...
deal0703 General Coding Help 8 7,160 Feb-17-2019, 09:48 PM
    Thread: Hex and serial variable
Post: RE: Hex and serial variable

Thanks for the reply That doesn't show the error anymore, but the device now receives 72 27 5C 78 45 41 5C 78 31 30 5C 78 43 44 5C 78 31 35 instead of EA 10 C6 26 4B 37 E4 87 C3 2E B2 B6 9F 07 3D 2D ...
deal0703 General Coding Help 8 7,160 Feb-14-2019, 09:26 AM
    Thread: Hex and serial variable
Post: RE: Hex and serial variable

Thanks but same error final_CW r'\xEA\x10\xC6\x26\x4B\x37\xE4\x87\xC3\x2E\xB2\xB6\x9F\x07\x3D\x2D\xC6\x30' Traceback (most recent call last): File "CW", line 81, in <module> ser.write(CW...
deal0703 General Coding Help 8 7,160 Feb-14-2019, 09:02 AM
    Thread: Hex and serial variable
Post: RE: Hex and serial variable

Thanks for the reply. Manually sending CW = b'\xEA\x10\xC6\x26\x4B\x37\xE4\x87\xC3\x2E\xB2\xB6\x9F\x07\x3D\x2D\xC6\x30' ser.write(CW) works fine. But I need this stored in a variable. I don't und...
deal0703 General Coding Help 8 7,160 Feb-13-2019, 04:25 PM
    Thread: Hex and serial variable
Post: RE: Hex and serial variable

Anyone ? Bump
deal0703 General Coding Help 8 7,160 Feb-13-2019, 03:26 PM
    Thread: Hex and serial variable
Post: Hex and serial variable

Hi all, I am new to pyhton and pyserial and got a question please. I got a file with hex code final_CW b'\xEA\x10\xC6\x26\x4B\x37\xE4\x87\xC3\x2E\xB2\xB6\x9F\x07\x3D\x2D\xC6\x30' I'd like to send...
deal0703 General Coding Help 8 7,160 Feb-11-2019, 08:45 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020