Bo Berglund wrote:
I'm sorry to bother you again but I can't grip the serial posrt
handling at all....
I have installed 5dpo serial component in Lazarus on Ubuntu 10 (a
virtual machine in VMWare, which uses the host COM1 serial port) and
tried the following test:
- Created a form with an Open/Close button, an edit box and a listbox.
- Added a 5dpo serial component to the form and set it to 9600 baud.
- Also set it to use ttyS0 (which I assume translates to the first
serial port in Linux)
- Implemented a button click event to open/close the port
- Implemented a button click event to send the editbox text out
- Implemented an RxData event to put incoming text into the listbox
- Connected the serial port used by the Ubuntu VM to the other port on
the PC using a null terminal cable.
- In Windows I started Hyperterminal on the second port
My test program was started in Ubuntu and I clicked the Open button,
then entered text in the editbox and clicked the send button.
Nothing appeared in Hyperterminal...
Tried typing into hyperterminal, but nothing appeared in the program
listbox either.
If I now close the port with my button and then try to open it again
there is an exception that forces the program to end.
Check port ownership, the groups the current user is in, and look at
dmesg output.
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus