BACnet は、UDPポート番号「47808」を使う。サーバーの立て方
BACnet Stack bacnet-stack-0.8.3.tgz
Device ID 260001サーバーが立っていることの確認$ demo/server/bacservDevice ID 5123
BACnet Server Demo
BACnet Stack Version 0.8.3
BACnet Device ID: 260001
Max APDU: 1476
$ demo/server/bacserv 5123
BACnet Server Demo
BACnet Stack Version 0.8.3
BACnet Device ID: 5123
Max APDU: 1476
クライアント# nmap -sU localhost Starting Nmap 7.30 ( https://nmap.org ) at 2016-10-22 10:26 JST Nmap scan report for localhost (127.0.0.1) Host is up (0.0000040s latency). Other addresses for localhost (not scanned): ::1 rDNS record for 127.0.0.1: localhost.localdomain Not shown: 997 closed ports PORT STATE SERVICE 68/udp open|filtered dhcpc 5353/udp open|filtered zeroconf 47808/udp open|filtered bacnet Nmap done: 1 IP address (1 host up) scanned in 1.33 seconds
git clone https://github.com/digitalbond/Redpoint
lsof# nmap -sU -p 47808 --script BACnet-discover-enumerate --script-args full=yes localhost Starting Nmap 7.30 ( https://nmap.org ) at 2016-10-22 10:46 JST Nmap scan report for localhost (127.0.0.1) Host is up. Other addresses for localhost (not scanned): ::1 rDNS record for 127.0.0.1: localhost.localdomain PORT STATE SERVICE 47808/udp open BACNet -- Building Automation and Control Networks |_BACnet-discover-enumerate: ERROR: Script execution failed (use -d to debug) Nmap done: 1 IP address (1 host up) scanned in 2.30 seconds
netstat# lsof -i:47808 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME bacserv 5334 uchida 3u IPv4 68768 0t0 UDP *:bacnet
# netstat -antu | grep 47808 udp 0 0 0.0.0.0:47808 0.0.0.0:*