Click here to Skip to main content
16,018,496 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRead Data from Serial Port Pin
Susanmat22-Jan-08 1:28
Susanmat22-Jan-08 1:28 
GeneralRe: Read Data from Serial Port Pin
Cedric Moonen22-Jan-08 1:32
Cedric Moonen22-Jan-08 1:32 
JokeRe: Read Data from Serial Port Pin
CPallini22-Jan-08 1:57
mveCPallini22-Jan-08 1:57 
GeneralRe: Read Data from Serial Port Pin
Cedric Moonen22-Jan-08 3:12
Cedric Moonen22-Jan-08 3:12 
JokeRe: Read Data from Serial Port Pin
CPallini22-Jan-08 3:21
mveCPallini22-Jan-08 3:21 
GeneralRe: Read Data from Serial Port Pin
Cedric Moonen22-Jan-08 3:51
Cedric Moonen22-Jan-08 3:51 
GeneralRe: Read Data from Serial Port Pin
Susanmat22-Jan-08 18:30
Susanmat22-Jan-08 18:30 
GeneralRe: Read Data from Serial Port Pin
Cedric Moonen22-Jan-08 20:25
Cedric Moonen22-Jan-08 20:25 
Susanmat wrote:
I have no clue how many bytes I should read.


That's already a big problem. You should be able to know how many bytes you need to read. Where is this data coming from and what is contained in it ? Can't you send first a byte that contains the size of the 'packet' ?


Susanmat wrote:
Every 12 msec data is coming to serial port, but ReadFile() function reads only 8 bytes at one instance. Why is it so?


Please post some relevant code because I don't have eyes sitting in front of your computer. Probably it is just because there is only 8 bytes in the buffer.


Susanmat wrote:
Any idea what the EV_BREAK in WaitCommEvent() does?


I think it is when a break character is sent on the serial port (if it is enabled).


Susanmat wrote:
Please help, very urgent


This is a forum were people help for free on their spare time. If you cannot wait and need *urgent* help, then go on rentacoder and pay for somebody.

Cédric Moonen
Software developer

Charting control [v1.2]

GeneralTry-catch works with structured exception Pin
George_George22-Jan-08 0:11
George_George22-Jan-08 0:11 
GeneralRe: Try-catch works with structured exception Pin
CPallini22-Jan-08 2:17
mveCPallini22-Jan-08 2:17 
GeneralRe: Try-catch works with structured exception Pin
Stephen Hewitt22-Jan-08 12:47
Stephen Hewitt22-Jan-08 12:47 
GeneralRe: Try-catch works with structured exception Pin
George_George22-Jan-08 14:19
George_George22-Jan-08 14:19 
GeneralRe: Try-catch works with structured exception Pin
Stephen Hewitt22-Jan-08 12:42
Stephen Hewitt22-Jan-08 12:42 
GeneralRe: Try-catch works with structured exception Pin
George_George22-Jan-08 14:20
George_George22-Jan-08 14:20 
GeneralRe: Try-catch works with structured exception Pin
Stephen Hewitt22-Jan-08 16:36
Stephen Hewitt22-Jan-08 16:36 
GeneralRe: Try-catch works with structured exception Pin
George_George22-Jan-08 18:05
George_George22-Jan-08 18:05 
GeneralRe: Try-catch works with structured exception Pin
Stephen Hewitt22-Jan-08 18:21
Stephen Hewitt22-Jan-08 18:21 
GeneralRe: Try-catch works with structured exception Pin
George_George22-Jan-08 23:13
George_George22-Jan-08 23:13 
GeneralRe: Try-catch works with structured exception Pin
George_George23-Jan-08 0:48
George_George23-Jan-08 0:48 
GeneralLock whole screen Pin
baerten21-Jan-08 22:45
baerten21-Jan-08 22:45 
GeneralRe: Lock whole screen Pin
Iain Clarke, Warrior Programmer21-Jan-08 22:51
Iain Clarke, Warrior Programmer21-Jan-08 22:51 
GeneralRe: Lock whole screen Pin
baerten21-Jan-08 23:08
baerten21-Jan-08 23:08 
GeneralRe: Lock whole screen Pin
Rajesh R Subramanian21-Jan-08 23:37
professionalRajesh R Subramanian21-Jan-08 23:37 
GeneralRe: Lock whole screen Pin
baerten21-Jan-08 23:41
baerten21-Jan-08 23:41 
GeneralRe: Lock whole screen Pin
David Crow22-Jan-08 2:53
David Crow22-Jan-08 2:53 

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.