Re: URGENT RXTX SERIAL PORT



Nanou wrote:
> Opening the port seems good, i send data to the machine but when i read
> th response i have a buffer with bytes null.
> I have tried to sniff the serial port but i don't understand the data i
> intercept, i don't recognize my protocol !

Sounds like it might be a baud rate or similar setting issue.
What is it you're connecting to the machine ?
What os are you running ? Have you managed to get any serial
comms working before ?

> I don't know how i can debug to know what's wrong.

Get yourself a hardware monitor - or make one yourself.
Just connect the rx/tx pins to a 3rd port and plug in
a separate computer. Run hyperterminal (or whatever)
on this and monitor the output,

Richard
.



Relevant Pages

  • Re: Serial Communications - Lost Event
    ... "Completion of write" is a moment when all data from the app buffer is ... The driver can keep the data in its internal buffer ... > serial port monitoring and test applications. ... > of a serial port means when all of the data has been transfered. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: thread related issue
    ... from serial port and display it.so i created one thred for this work. ... to properly terminate the buffer. ... The proper types are ... Take a look at my essay on serial port I/O on my MVP Tips site. ...
    (microsoft.public.vc.mfc)
  • Re: roZetta Status
    ... roZetta firmware is written in ZBasic and uses the ZX-40 from Elba, ... There is one main highspeed RS232 level serial port which interfaces ... with the TW523 as the ZX-40's interrupts are sluggish about 3% of the time. ...
    (comp.home.automation)
  • thread related issue
    ... from serial port and display it.so i created one thred for this work. ... sending the data also i.e. buffer so please help me ... DWORD length=0; ...
    (microsoft.public.vc.mfc)
  • Re: How to Disable Ethernet
    ... you can use the serial port as an alternative method of getting debug. ... can disable KITL debugging and just read all of the messages that come out. ...
    (microsoft.public.windowsce.platbuilder)