Find the bug in my serial port communication code

Peruttu Julkaistu 5 vuotta sitten Maksettu toimituksen yhteydessä
Peruttu Maksettu toimituksen yhteydessä

I have a simple serial port communication program over RS422. It's communicating with a measurement sensor.

When I try to run my code first, it opens the communication port, but couldn't communicate with the sensor. If I run docklight ( a serial port communication program) , it can communicate perfectly with the sensor. After closing the port in docklight and I run my code immediately, also my code runs perfectly and send, receive information continuously. All the baud rate, parity etc. settings are the same in docklight and my code.

There is something wrong in my code. I want to find the bug in my code.

Arduino C-ohjelmointi Viestintä Elektroniikka Mikrocontroller

Projektin tunnus: #18735950

Tietoa projektista

4 ehdotusta Etäprojekti Aktiivinen 5 vuotta sitten

4 freelanceria on tarjonnut keskimäärin $43 tähän työhön

AlexFaster

Hi. I can try to find this error. Regards, Alex.

$55 USD 1 päivässä
(37 arvostelua)
6.1
maxbul

I have a great experience in debugging of the code for Arduino. To debug your code I will need TeamViewer remote connection I work with Arduino since 2010 and have more than 20 years of experience in programming Lisää

$35 USD 1 päivässä
(91 arvostelua)
5.8
raminoser

I am an Embedded systems Engineer with experience in AVR and ARM microcontrollers . I have worked with different communication protocols including UART , SPI ,I2C in AVR microcontrollers . contact me for details

$35 USD 1 päivässä
(11 arvostelua)
4.1