Serial Port Component For Lazarus House
Hello guys, I can't get the expected baud rates when using LazSerial on a Raspberry pi hardware with Jessy and with some code modification on my side. I can't figure out what it could be wrong. Please HELP: prerequisites: -I am very new to programming on RPi and I haven't got too much knowledge about the actual UART hardware that is behind ttyAMA0. I am not even sure if this is released by RPi foundation. -running RPi 3 -full and latest update of the whole system - download and installed compiled latest Lazarus 3.1.1. - fixed the missing coutbegin.o coutend. Wingate Proxy Server 7 Rapidshare Downloads there. o links (now no warnings when compiling) - enabled com port - swapped and returned back the two serial ports (for some reason LazSerial only wants to talk to ttyAMA0) - disabled console - disabled Bluetooth to allow communication to be directed to IO port pins - changed uart clock: 'init_uart_clock=64000000' - hooked a trusty modern 140Mpoints scope to the TX pin Tested all the above with minicom: 'minicom -b 4000000 -o -D /dev/ttyAMA0' I must say it works beautifully! Now, my application with Lazarus: Lazarus itself works great, at least I have no doubts about the installation and compiling yet.
TLazSerial: serial port component for Lazarus. Serial port component for Lazarus (windows. And you might want to read the serial port one byte at a time so. Jul 18, 2016 TLazSerial: serial port component for Lazarus. Serial port component for Lazarus (windows and. Open the file and uncompress it in the Lazarus/components.
I modified LazSerial component to include baud rates 1000000, 2000000, 3000000 and 4000000. The result is quite poor: I get 500Kbps when setting 1Mbit (please check the table of results below). If I initialise the port through minicom @4Mbps and only send data through my application then I get the 4Mbps out of the TX pin (for some reason both minicom and my application can share the serial port without conflicts). I modified again LazSerial component to remove the definitions for baud rates. Now I can set any integer baud rate instead of selecting one of several populated in the ComboBox of the component. In the process of doing that I also removed some code that was checking for out of range baud rate values.
Below is a table of what I am setting and what I get: Set baud rate Measured baud rate 1Mbps 500 Kbps 2Mbps 588.2 Kbps 3Mbps 952.4 Kbps 4Mbps 1Mbps The low baud rates are also messed up. My aim is to get the 1-4Mbps working.