Click here to Skip to main content
15,890,579 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Binary data transfer through serail port Pin
CPallini12-Oct-10 2:12
mveCPallini12-Oct-10 2:12 
GeneralRe: Binary data transfer through serail port Pin
shiv@nand12-Oct-10 2:24
shiv@nand12-Oct-10 2:24 
GeneralRe: Binary data transfer through serail port Pin
CPallini12-Oct-10 2:29
mveCPallini12-Oct-10 2:29 
GeneralRe: Binary data transfer through serail port Pin
shiv@nand12-Oct-10 3:04
shiv@nand12-Oct-10 3:04 
GeneralRe: Binary data transfer through serail port Pin
CPallini12-Oct-10 9:49
mveCPallini12-Oct-10 9:49 
GeneralRe: Binary data transfer through serail port Pin
David Crow12-Oct-10 3:50
David Crow12-Oct-10 3:50 
GeneralRe: Binary data transfer through serail port Pin
Demian Panello12-Oct-10 1:53
Demian Panello12-Oct-10 1:53 
AnswerRe: Binary data transfer through serail port Pin
Luc Pattyn12-Oct-10 1:30
sitebuilderLuc Pattyn12-Oct-10 1:30 
for binary data, you have to make sure the driver doesn't interfere with the data at all; so you must check each and every port setting, including:
- pass NULL;
- don't change CR/LF;
- don't enable software handshaking.

FWIW: I tend to avoid binary communication over serial ports; when portability is more important than performance, I'd rather do some encoding, typically stuffing 2 bytes in 3 printable characters (i.e. the range 0x20-0x7E), so port settings wouldn't interfere with it at all.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.


GeneralRe: Binary data transfer through serail port Pin
shiv@nand12-Oct-10 1:47
shiv@nand12-Oct-10 1:47 
GeneralRe: Binary data transfer through serail port Pin
Luc Pattyn12-Oct-10 2:10
sitebuilderLuc Pattyn12-Oct-10 2:10 
AnswerRe: Binary data transfer through serail port Pin
krish_kumar12-Oct-10 3:02
krish_kumar12-Oct-10 3:02 
AnswerRe: Binary data transfer through serail port Pin
Luc Pattyn12-Oct-10 5:17
sitebuilderLuc Pattyn12-Oct-10 5:17 
GeneralRe: Binary data transfer through serail port Pin
Chuck O'Toole12-Oct-10 10:22
Chuck O'Toole12-Oct-10 10:22 
AnswerRe: Binary data transfer through serail port Pin
Luc Pattyn12-Oct-10 10:37
sitebuilderLuc Pattyn12-Oct-10 10:37 
GeneralRe: Binary data transfer through serail port Pin
Chuck O'Toole12-Oct-10 11:05
Chuck O'Toole12-Oct-10 11:05 
QuestionHow to log the start up and shut down time of all the PCs connected in a lan to a file Pin
manoharbalu11-Oct-10 22:19
manoharbalu11-Oct-10 22:19 
AnswerRe: How to log the start up and shut down time of all the PCs connected in a lan to a file Pin
Richard MacCutchan12-Oct-10 2:43
mveRichard MacCutchan12-Oct-10 2:43 
AnswerRe: How to log the start up and shut down time of all the PCs connected in a lan to a file Pin
David Crow12-Oct-10 3:55
David Crow12-Oct-10 3:55 
QuestionCListbox is not refrashed Pin
aangerma11-Oct-10 21:56
aangerma11-Oct-10 21:56 
QuestionRe: CListbox is not refrashed Pin
David Crow12-Oct-10 3:58
David Crow12-Oct-10 3:58 
QuestionHow can identify Mouse Click event in PreTranslateMessage? Pin
Le@rner11-Oct-10 21:06
Le@rner11-Oct-10 21:06 
QuestionGDI drawing onto a 4-bit bitmap Pin
Code-o-mat11-Oct-10 10:53
Code-o-mat11-Oct-10 10:53 
QuestionDrop-down list in floating toolbar clipped to main window Pin
John Ritzenthaler11-Oct-10 7:31
John Ritzenthaler11-Oct-10 7:31 
QuestionFile List Pin
Jonnster11-Oct-10 6:14
Jonnster11-Oct-10 6:14 
AnswerRe: File List Pin
elchupathingy11-Oct-10 7:14
elchupathingy11-Oct-10 7:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.