Added fixups to Microsoft Visual Studio build: added server-mini, etc. (#1061)

This commit is contained in:
BACnetEd
2025-08-20 17:44:38 +01:00
committed by GitHub
parent 25c2aaa20d
commit a3cd49eb37
17 changed files with 912 additions and 37 deletions
+18 -4
View File
@@ -147,15 +147,29 @@ Locate the 10 27 which in my case were in 5th and 6th position and replace with
This will make the RS485 go to 76800 baud (76923 baud) baud when you ask it
to be 300 baud.
So to capture at 76800 baud type: mstpcap.exe COM2 300
So to capture at 76800 baud type:
From the command line:
> mstpcap.exe COM2 300
From Visual Studio in debug mode:
Setting project properties -> Debugging -> Command line arguments to COM4
Some USB to RS485 converters:
Waveshare USB to RS485 converter
https://www.waveshare.com/product/usb-to-rs485-b.htm
B&B Electronics USB to RS485 converter USOPTL4 (isolated)
https://www.advantech.com/
Linux (used with Debian Lenny and Fedora 15)
http://www.connecttech.com/KnowledgeDatabase/kdb309.htm
As root:
Change USB so I can use it later as normal user:
# chmod 777 /dev/ttyUSB0 -
# chmod 777 /dev/ttyUSB0
Print current info about the device:
# setserial /dev/ttyUSB0 a
# setserial /dev/ttyUSB0 -a
/dev/ttyUSB0, Line 0, UART: unknown, Port: 0x0000, IRQ: 0
Baud_base: 24000000, close_delay: 0, divisor: 0
closing_wait: infinte
@@ -166,7 +180,7 @@ Make custom speed:
24000000/312 gives 76923 baudrate:
# setserial /dev/ttyUSB0 divisor 312
Print to make sure changes got applied:
# setserial /dev/ttyUSB0 a
# setserial /dev/ttyUSB0 -a
/dev/ttyUSB0, Line 0, UART: unknown, Port: 0x0000, IRQ: 0
Baud_base: 24000000, close_delay: 0, divisor: 312
closing_wait: infinte