Serial Port Component For Lazarus House

Posted on by

Serial Port Component For Lazarus Syndrome. 5/18/2017 0 Comments Imaging Overview and Differential Diagnoses. House Fire, B. X The Last Van Gogh. TLazSerial: serial port component for Lazarus. Serial port component for Lazarus (windows and. Ct2laz - Easily convert components and projects between Lazarus.

RAD Studio 2009, Embarcadero RAD Studio 10.1 Berlin and higher and Lazarus. WiFi or Serial Port communication. Comport Analyzer Software. 5dpo Component Library for.

Lotus Organizer Ita Download. 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. Fruity Limiter Plugin Download. 1.1. - fixed the missing coutbegin.o coutend.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.

Lazarus Component LibrarySerial Port Component For Lazarus House

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. I suspect there is some variable which overflows. Has anybody got any idea where in the code of LazSerial and/or any required packaged I should look for the problem? Some of the code I came across was written by 'Jurassic Pork'. Jurassic Pork, do you have any ideas?

I will be happy to share the code if required. Just let me know.

Many thanks in advance! RPi 3 behaves different then RPi 1 and 2. If you have older Pi available then test if it works. If you search the net for 'Raspberry Pi 3B UART BT problems' you will see that there are a lot of problems, especially that UART speed is tied to clock which can change dynamically. Try to have some low fixed speed and turn off all power savings. Old Pi had UART0 as serial interface, but in Pi3 UART0 is used for Bluetooth so without a workaround UART1 on GPIO14 & 15 should be used. The reason why this was changed is that UART0 was influenced by the core_freq and that's important for BT.

However nothing stops you to try some other Linux flavor like Arch or TinyCore, or bare metal like Ultibo, and see if something is different or fixed. See also and. Can you take a look into minicom sources to see how it does the port setup? Can you show the simplest code you use for testing? How do you initialize port from LazSerial? Maybe your modifications are not enough. You can try some other serial library like Platform eXtended Library (PXL), or directly latest trunk version of Synapse SynaSer.