News:

  • February 05, 2023, 06:32:54 PM

Login with username, password and session length

Author Topic: (linux) EQ not seeing devices, not listening to port?  (Read 5655 times)

hal

  • Newbie
  • *
  • Posts: 4
(linux) EQ not seeing devices, not listening to port?
« on: August 12, 2010, 03:08:43 PM »
Firstly, it's a real service to the community to supply the SDK source, and for free no less, so thanks to Host.  Thanks also to the porter of the code to Linux, whoever that is.

My issue is that [linux] apps are returning no devices on the network.  My devices are sending responses, but the second packet to leave my system is a port-unreachable in response to the first response packet from the H2 devices on the network (H2-ECOM100, H2-EBC and an H2-ERM).

I've stepped through the execution of EQ with gdb and nothing stands out.  NetEdit3, via Wine, sees all three devices.  For comparison, below is the entire three-packet transaction from the EQ query and the first pieces of traffic generated by NetEdit3 after a "Scan Network" request.

To eliminate the possibility of HEIQueryDevices populating the device struct improperly, I put the following in eq.cpp:

Code: [Select]
DeviceCount = 1;

aDevices[0].Address.Raw[0] = 2;      //AF_INET
aDevices[0].Address.Raw[1] = 0;
aDevices[0].Address.Raw[2] = 0x70;   //28784
aDevices[0].Address.Raw[3] = 0x70;
aDevices[0].Address.Raw[4] = 192;    //H2-ECOM100
aDevices[0].Address.Raw[5] = 168;
aDevices[0].Address.Raw[6] = 1;
aDevices[0].Address.Raw[7] = 40;

Maybe I should also be setting Raw[19]=0 since the above was added after the HEIQueryDevices?
Any suggestions toward debugging the EQ app would be appreciated.

EQ:
Code: [Select]
10:56:59.498143 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 38) 192.168.1.5.44122 > 255.255.255.255.28784: [udp sum ok] UDP, length 10
        0x0000:  4500 0026 0000 4000 4011 791a c0a8 0105  E..&..@.@.y.....
        0x0010:  ffff ffff ac5a 7070 0012 3864 4841 5001  .....Zpp..8dHAP.
        0x0020:  00a5 5001 0005                           ..P...
10:56:59.549459 IP (tos 0x0, ttl 255, id 0, offset 0, flags [DF], proto UDP (17), length 52) 192.168.1.40.28784 > 192.168.1.5.44122: [udp sum ok] UDP, length 24
        0x0000:  4500 0034 0000 4000 ff11 f83a c0a8 0128  E..4..@....:...(
        0x0010:  c0a8 0105 7070 ac5a 0020 a4b7 4841 5001  ....pp.Z....HAP.
        0x0020:  0040 730f 0055 aa00 e062 20a1 3200 01c0  .@s..U...b..2...
        0x0030:  a801 2800                                ..(.
10:56:59.549557 IP (tos 0xc0, ttl 64, id 41011, offset 0, flags [none], proto ICMP (1), length 80) 192.168.1.5 > 192.168.1.40: ICMP 192.168.1.5 udp port 44122 unreachable, length 60
        IP (tos 0x0, ttl 255, id 0, offset 0, flags [DF], proto UDP (17), length 52) 192.168.1.40.28784 > 192.168.1.5.44122: [udp sum ok] UDP, length 24
        0x0000:  45c0 0050 a033 0000 4001 563c c0a8 0105  E..P.3..@.V<....
        0x0010:  c0a8 0128 0303 80ac 0000 0000 4500 0034  ...(........E..4
        0x0020:  0000 4000 ff11 f83a c0a8 0128 c0a8 0105  ..@....:...(....
        0x0030:  7070 ac5a 0020 a4b7 4841 5001 0040 730f  pp.Z....HAP..@s.
        0x0040:  0055 aa00 e062 20a1 3200 01c0 a801 2800  .U...b..2.....(.

NetEdit3:
Code: [Select]
11:39:49.730174 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 38) 192.168.1.5.50623 > 255.255.255.255.28784: [udp sum ok] UDP, length 10
        0x0000:  4500 0026 0000 4000 4011 791a c0a8 0105  E..&..@.@.y.....
        0x0010:  ffff ffff c5bf 7070 0012 1e34 4841 50cc  ......pp...4HAP.
        0x0020:  00a5 5001 0005                           ..P...
11:39:49.781069 IP (tos 0x0, ttl 255, id 0, offset 0, flags [DF], proto UDP (17), length 52) 192.168.1.40.28784 > 192.168.1.5.50623: [udp sum ok] UDP, length 24
        0x0000:  4500 0034 0000 4000 ff11 f83a c0a8 0128  E..4..@....:...(
        0x0010:  c0a8 0105 7070 c5bf 0020 8a87 4841 50cc  ....pp......HAP.
        0x0020:  0040 730f 0055 aa00 e062 20a1 3200 01c0  .@s..U...b..2...
        0x0030:  a801 2800                                ..(.
11:39:50.363129 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 48) 192.168.1.5.33062 > 255.255.255.255.28784: [udp sum ok] UDP, length 20
        0x0000:  4500 0030 0000 4000 4011 7910 c0a8 0105  E..0..@.@.y.....
        0x0010:  ffff ffff 8126 7070 001c 80c0 4841 50cd  .....&pp....HAP.
        0x0020:  0050 030b 0015 00e0 6220 a132 0b00 2000  .P......b..2....
11:39:50.363936 IP (tos 0x0, ttl 255, id 0, offset 0, flags [DF], proto UDP (17), length 43) 192.168.1.40.28784 > 192.168.1.5.33062: [udp sum ok] UDP, length 15
        0x0000:  4500 002b 0000 4000 ff11 f843 c0a8 0128  E..+..@....C...(
        0x0010:  c0a8 0105 7070 8126 0017 88e1 4841 50cd  ....pp.&....HAP.
        0x0020:  00ab 6806 0000 000a 0000 0000 0000       ..h...........
11:39:50.364055 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 48) 192.168.1.5.33062 > 255.255.255.255.28784: [udp sum ok] UDP, length 20
        0x0000:  4500 0030 0000 4000 4011 7910 c0a8 0105  E..0..@.@.y.....
        0x0010:  ffff ffff 8126 7070 001c e1ab 4841 50ce  .....&pp....HAP.
        0x0020:  0063 ac0b 0015 00e0 6220 a132 0b00 1600  .c......b..2....
11:39:50.366829 IP (tos 0x0, ttl 255, id 0, offset 0, flags [DF], proto UDP (17), length 295) 192.168.1.40.28784 > 192.168.1.5.33062: [udp sum ok] UDP, length 267
        0x0000:  4500 0127 0000 4000 ff11 f747 c0a8 0128  E..'..@....G...(
        0x0010:  c0a8 0105 7070 8126 0113 33fa 4841 50ce  ....pp.&..3.HAP.
        0x0020:  0071 9202 0100 0048 322d 4543 4f4d 3130  .q.....H2-ECOM10
        0x0030:  3000 0000 0000 0000 0000 0000 0000 0000  0...............
        0x0040:  0000 0000 0000 0000 0000 0000 0000 0000  ................
        0x0050:  0000 0000 0000 0000 0000 0000 0000 0000  ................
        0x0060:  0000 0000 0000 0000 0000 0000 0000 0000  ................
        0x0070:  0000 0000 0000 0000 0000 0000 0000 0000  ................
        0x0080:  0000 0000 0000 0000 0000 0000 0000 0000  ................
        0x0090:  0000 0000 0000 0000 0000 0000 0000 0000  ................
        0x00a0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
        0x00b0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
        0x00c0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
        0x00d0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
        0x00e0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
        0x00f0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
        0x0100:  0000 0000 0000 0000 0000 0000 0000 0000  ................
        0x0110:  0000 0000 0000 0000 0000 0000 0000 0000  ................
        0x0120:  0000 0000 0000 00                        .......
11:39:50.366911 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 48) 192.168.1.5.33062 > 255.255.255.255.28784: [udp sum ok] UDP, length 20
        0x0000:  4500 0030 0000 4000 4011 7910 c0a8 0105  E..0..@.@.y.....
        0x0010:  ffff ffff 8126 7070 001c d417 4841 50cf  .....&pp....HAP.
        0x0020:  00f6 a90b 0015 00e0 6220 a132 0b00 2600  ........b..2..&.
11:39:50.368997 IP (tos 0x0, ttl 255, id 0, offset 0, flags [DF], proto UDP (17), length 295) 192.168.1.40.28784 > 192.168.1.5.33062: [udp sum ok] UDP, length 267
        0x0000:  4500 0127 0000 4000 ff11 f747 c0a8 0128  E..'..@....G...(
        0x0010:  c0a8 0105 7070 8126 0113 aa26 4841 50cf  ....pp.&...&HAP.
        0x0020:  0014 2402 0100 0048 322d 4543 4f4d 3130  ..$....H2-ECOM10
        0x0030:  3020 4574 6865 726e 6574 2043 6f6d 6d75  0.Ethernet.Commu
        0x0040:  6e69 6361 7469 6f6e 7320 4d6f 6475 6c65  nications.Module
        0x0050:  2e20 0000 0000 0000 0000 0000 0000 0000  ................
        0x0060:  0000 0000 0000 0000 0000 0000 0000 0000  ................
        0x0070:  0000 0000 0000 0000 0000 0000 0000 0000  ................
        0x0080:  0000 0000 0000 0000 0000 0000 0000 0000  ................
        0x0090:  0000 0000 0000 0000 0000 0000 0000 0000  ................
        0x00a0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
        0x00b0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
        0x00c0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
        0x00d0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
        0x00e0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
        0x00f0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
        0x0100:  0000 0000 0000 0000 0000 0000 0000 0000  ................
        0x0110:  0000 0000 0000 0000 0000 0000 0000 0000  ................
        0x0120:  0000 0000 0000 00                        .......


There are no comments for this topic. Do you want to be the first?