Menu DEVPPL Search
157.085
MEMBERS
15.929
TOPICS
63.130
POSTS
  562
FLASH GAMES
7.723
TUTORIALS
 

Login

E-mail:
Password:

Serial Port

0

Loading

Serial Port

Postby Markwalker » Mon Jan 29, 2007 3:48 pm

Hi!

Im really struggling here...

Im trying to communicate with a piece of hardware that accepts a specific package format for control.

I need to be able to send an 8 bit data word via a serial connection from my Python program.

I have been using USPP & PySerial so far but have found a problem. Both those modules rely on file-style operation... writing strings etc. So so far i have been converting my 8bits of data to the relevant ASCII character and writing that to the port.

The problem occurs when i need to send a packet that has a value of less than 0x20... as from this point the relevant character is no longer printable (carriage return, tab etc) and so it cant be written as such.

Does anybody know of a way to send raw data in binary form to the serial port?


Many thanks,


Mark
Markwalker
 
Reputation: 0
Posts: 1
Joined: Mon Jan 29, 2007 3:42 pm
Highscores: 0
Arcade winning challenges: 0

Serial Port - Sponsored results

Sponsored results

Login to get rid of ads

 

^ Back to Top