![Lazarus come forth kjv Lazarus come forth kjv](/uploads/1/2/5/8/125871044/977632462.jpg)
Aug 05, 2015 Download TComport Lazarus for free. This project is the conversion of the Comport Package of dejancrn and dybdahl, for lazarus pascal project. It just work on windows but in the future, I traduce it to work under lazarus for linux.
TLazSerial: serial port component for Lazarus (windows and linux). TLazSerial: serial port component for Lazarus (windows and linux). Free Pascal Website.
Things're getting better. See the picture added. All string received perfect, no errors. From time to time I delete the field of incoming strings, by clicking in the field ( memobox).
Just to be sure, I don't know much text it can contain. In the code I've modified some thing but another major thing is that I now use the onboard RS232 port. I had some strange acting with the extern-USB-hub with the USB-to-serial-pcbs. Dont's knowe exactly where the problem is, but from time to the the pc messaged hardware connected/disconnected You know when you're in decive manager and thing begin to pop when connecting/disconnecting hardware. In my case that was COM 4 ( via the USB-hub.usb_to_serial etc etc ) Going to find out what the problem is, later.
Soon I'll strip my code to RS232 comucication only: remove the slide bars etc etc.to get short and clear code and will post it here in zipp. As next i gonna remove the texwritng in the left box, it's been tested, so don't need to see it. Send/receive each 250ms. About the USB serial problems, I found that some USB cables (perhaps most) have unreliable connection of the shell to the shield.
The shell is just crimped to the shield over the jacket and eventually the connection becomes unreliable. Measure resistance from one end to the other, while wiggling the cable near the connector. Corso Fotografia National Geographic Pdf. The gold-flashed cables seem to be the best.
![Serial Serial](http://www.vatileaks.com/images/productimages/books/Books/cover_front.gif)
Also, some USB-serial adapters do not do well for closely spaced bytes of data, due to timeout issues. My communication device sends two 8 bit + 1 start + 1 stop bit as a packet, 2400 per second, at 57.6 kB. So that is 20 bits x 2400 = 48 kB, and only a short period of time between packets. Now the pc-to-Arduino-RS232 is going by the pc-on-board-RS232-port.
Programming the Arduino goes via a USB-cable with a virtula-pc-serial-port. ( I had some strange 'reseting'of the Arduino, proberly caused by a cable. But things deffinitely have improved. No wrong strings received and just occasianly I had an application-hang-up ( in both in Lazarus-Debug-Mode and in Free-Running ) Needs more investigation. More info: Arduino: 115200kbaud/kbps, non-parity, one stopbit. Lazarus: 115200kbaud/kbps, non-parity, one stopbit. At this moment, pc-sends 6 bytes, Arduino sends 28 bytes: ( say: 8 bits/byte + 1, we round it to 10 ) 115200 / 28x10 = aprox 411 Time of 1 send-period = 1 / 411 = aprox 2,4ms SendingReceiving is done 4 times a second ( delta-T = 250ms ) All regards.
I'm very happy I'm this far ow with the whole stuf!