Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 00:23 19 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Checking serialport  programming techniks ...

Author Message
Plasmamac

Guru

Joined: 31/01/2019
Location: Germany
Posts: 596
Posted: 07:38am 26 Apr 2021
Copy link to clipboard 
Print this post

Hi ,

For my knx project i use a Siemens Knx Adapter which sends the Knx Protokoll over serial.
At the moment i open a port read some bytes and compare the bytes with a prerecorded string.
The knx system send random strings over the time .
Now iam not shure if about the best parsing Technik and if i should close and reopen the port after i get a command. Atm i read a byte and put the chr to a string and the port is always open.
Should i close it every command (20 bytes) and reopen the port?
Should i use a watchdog to restart the programm ? Iam interested in you workflow for this kind of app.
Thx
Plasma
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025