HA7Net address discovery

The HA7Net obtains it's network address either by:

1. DHCP (a network server assigns IP addresses based on cvertain rules), usually from a pool of potential addresses
2. A static address assigned via the web configuration interface.
3. A default address of 192.168.0.250

It's not always obvious how to find the address the HA7Net has been assigned. Although it's possible to assign static addresses or peruse the dhcp server log, the administrative effort can be large, particularly in large installations.

Fortunately, the HA7Net has an autodiscovery mode based on UDP (multicast 224.1.2.3:4567) that is supported in owfs

Static:

/opt/owfs/bin/owserver --ha7net=192.168.23.45 -p 4304

Autodiscovery:

/opt/owfs/bin/owserver --ha7net -p 4304

If you run that command line in debugging mode, you will see something like this

  ~/owfs$ sudo /opt/owfs/bin/owhttpd --foreground --error_level=9 --ha7net -p 4444
DEBUG: ow_multicast.c:FS_FindHA7(126) Attempting udp multicast search for the HA7Net bus master at 224.1.2.3:4567
CONNECT: ow_udp_read.c:udp_read(72) udp read timeout after 0 bytes
CONNECT: ow_multicast.c:Get_HA7_response(103) HA7 response bad length
DEBUG: owhttpd.c:ow_exit(48) ow_exit 0
paul@amd64ubuntu:~/owfs$ sudo /opt/owfs/bin/owhttpd --foreground --error_level=9 --ha7net -p 4444
DEBUG: ow_multicast.c:FS_FindHA7(126) Attempting udp multicast search for the HA7Net bus master at 224.1.2.3:4567
CONNECT: ow_udp_read.c:udp_read(72) udp read timeout after 0 bytes
CONNECT: ow_multicast.c:Get_HA7_response(103) HA7 response bad length
DEBUG: owhttpd.c:ow_exit(48) ow_exit 0
paul@amd64ubuntu:~/owfs$ sudo /opt/owfs/bin/owhttpd --foreground --error_level=9 --ha7net -p 4444
DEBUG: ow_multicast.c:FS_FindHA7(126) Attempting udp multicast search for the HA7Net bus master at 224.1.2.3:4567
DEBUG: ow_multicast.c:Test_HA7_response(51) From ha7_response: signature=HA, command=8001, port=80, ssl=443, MAC=00409D2AD033, device=HA7Net
CONNECT: ow_multicast.c:FS_FindHA7(149) HA7Net bus master discovered at 10.1.181.195:80
CALL: ow_parsename.c:FS_ParsedName_anywhere(115) path=[]
DEBUG: owlib.c:SetupTemperatureLimits(83) Globals temp limits 0C 100C (for simulated adapters)
CALL: ow_parsename.c:FS_ParsedName_anywhere(115) path=[]
CONNECT: ow_ha7.c:HA7_detect(74) start
DEBUG: ow_net_client.c:ClientAddr(61) [10.183.181.195] [80]
DEBUG: ow_ha7.c:HA7_toHA7(326) To HA7 command=ReleaseLock address= conditional= lock=
DEBUG: ow_ha7.c:HA7_toHA7(377) To HA7 GET /1Wire/ReleaseLock.html HTTP/1.0

DEBUG: ow_tcp_read.c:tcp_read(61) attempt 2000 bytes Time:(60,0)
Byte buffer NETREAD, length=225
--000: 48 54 54 50 2F 31 2E 31 20 32 30 30 20 4F 4B 0D
--016: 0A 43 6F 6E 74 65 6E 74 2D 54 79 70 65 3A 20 74
--032: 65 78 74 2F 68 74 6D 6C 0D 0A 44 61 74 65 3A 20
--048: 54 68 75 2C 20 32 32 20 4F 63 74 20 32 30 31 35
Byte buffer NETREAD, length=1460 --000: 3C 21 44 4F 43 54 59 50 45 20 48 54 4D 4C 20 50 --016: 55 42 4C 49 43 20 22 2D 2F 2F 57 33 43 2F 2F 44 --032: 54 44 20 48 54 4D 4C 20 34 2E 30 31 20 54 72 61 --048: 6E 73 69 74 69 6F 6E 61 6C 2F 2F 45 4E 22 3E 0A <.> Byte buffer NETREAD, length=315 --000: 3E 0A 3C 74 64 3E 3C 49 4E 50 55 54 20 43 4C 41 --016: 53 53 3D 22 48 41 37 56 61 6C 75 65 22 20 4E 41 --032: 4D 45 3D 22 45 78 63 65 70 74 69 6F 6E 5F 43 6F --048: 64 65 5F 30 22 20 49 44 3D 22 45 78 63 65 70 74 <>. DEBUG: ow_tcp_read.c:tcp_read(109) n=2000 nleft=1736 n-nleft=264 DEBUG: ow_net_server.c:ServerProcessOut(256) 140335857256784
Note: There are issues with blocked ip traffic and firewalls. If your HA7Net doesn't seem to be present, check your firewall log.

Previous page: HA7Net
Next page: LinkUSB