The reliability of serial data communication using Uart-Usb converter
Pouzdanost prenosa podataka serijske komunikacije prilikom korišćenja Uart-Usb konvertora
aUniversity of Belgrade, Electrical Engineering Institute 'Nikola Tesla' + University of Novi Sad, Faculty of Technical Science bUniversity of Belgrade, Electrical Engineering Institute 'Nikola Tesla'
email: nikola.cakic@ieent.org
Abstract
During the design of the device that is based on a central microcontroller for measurements and an additional computer for graphical presentation and storage of measurement results, it often happens that there are not enough available USB ports. Therefore the need for using particular serial converters arises. This paper presents the results of reliability testing of serial UART-USB communication using UM232R converter. The development environment Tiva TM4C1294XL microcontroller Launchpad sends temperature measurement results using UART communication to UM232R converter which is connected to ROCK PI 4 single board computer via USB interface. The user application is based on Java programming language and jSerialComm library. The communication is tested using packets of 100, 1 000 i 10 000 arrays of 50 characters. Time intervals used for tests are 10mS, 100mS, 500mS, and 1s. Each test is repeated 10 times to improve test validity. The average data loss is 50%, while the proposed algorithm reduced the loss up to 30%.
Sažetak
Prilikom dizajniranja uređaja koji se oslanja na koncept postojanja centralnog mikrokontrolera za obavljanje merenja i dodatnog računara za skladištenje i grafički prikaz rezultata, neretko se dešava da nema dovoljan broj USB interfejsa. Iz pomenutog javlja se potreba za korišćenjem određenih serijskih konvertora. U radu su prikazani rezultati testiranja pouzdanosti serijske UART-USB komunikacije prilikom korišćenja UM232R konvertora. Razvojno okruženje Tiva TM4C1294XL Launchpad rezultate merenje temperature šalje putem UART komunikacije do UM232R konvertora koji je povezan USB vezom sa ROCK PI 4 single board kompjuterom. Korisnička aplikacija se bazira na Java programskom jeziku i jSerialComm biblioteci. Komunikacija je testirana u paketima od 100, 1 000 i 10 000 nizova od po 50 karaktera . Vremenski intervali na kojima je testiran prenos su 10mS, 100mS, 500mS, 1s. Svaki test je ponovljen po 10 puta zbog validnosti podataka. Prosečni gubitak podataka je 50% dok je predloženi algoritam smanjio gubitak podataka do 30%.
|