Linux Client data transmission issue

NatNet, VRPN, TrackD, and Plugins
Post Reply
ThomasC
Posts: 4
Joined: Wed Jul 08, 2020 7:48 am

Linux Client data transmission issue

Post by ThomasC »

Hello,
I cannot stream data from Motive 2.2.0 to Linux via the most recent NatNet SDK (version 128.150.152.0).
When I execute the ./SampleClient [server ip] [client ip] and I open a tcpdump I can see encoded data being captured but the connection acts as if it is closed on NatNetLib. See my two outputs. (firewall is down on both machines so that is not the issue...)

$ ./SampleClient 172.21.72.129
NatNet Sample Client (NatNet ver. 3.1.0.0)

[NatNetLib] [INFO]: [Client] Initializing using ethernet address: 172.21.72.166

[NatNetLib] [INFO]: [Client] Initializing command listener.

[NatNetLib] [ERROR]: [Client] Receive Buffer Size: 425984

[NatNetLib] [INFO]: [Client] Host information received. (HostApp: Motive HostVer: 2.2.0.0 HostIP: 172.21.72.129 ()

[NatNetLib] [ERROR]: [Client] Unable to get host information for 172.21.72.129.

[NatNetLib] [INFO]: [Client] Initializing data listener.

[NatNetLib] [WARN]: [HELPER] ReceiveBuffer size = 425984

[NatNetLib] [INFO]: [Client] Connected.

[SampleClient] Server application info:
Application: Motive (ver. 2.2.0.0)
NatNet Version: 3.1.0.0
Client IP:(null)
Server IP:172.21.72.129
Server Name:
Mocap Framerate : 100.00

[NatNetLib] [ERROR]: [Client] Unable to get host information for 172.21.72.129.
Analog Samples Per Mocap Frame : 0
Client initialized and ready.
[SampleClient] Sending Test Request


[SampleClient] Requesting Data Descriptions...[SampleClient] Received 7 Data Descriptions:
Data Description # 0 (type=1)
RigidBody Name : cf1
RigidBody ID : 1
RigidBody Parent ID : -1
Parent Offset : 0.00,0.00,0.00
Marker #0:
Position: 0.10, -0.00, -0.07
Marker #1:
Position: -0.05, 0.00, -0.07
Marker #2:
Position: -0.05, -0.00, 0.13
Data Description # 1 (type=0)
MarkerSet Name : cf1
Marker1
Marker2
Marker3
Data Description # 2 (type=0)
MarkerSet Name : all
cf1_1
cf1_2
cf1_3
Data Description # 3 (type=5)
Unknown data type.Data Description # 4 (type=5)
Unknown data type.Data Description # 5 (type=5)
Unknown data type.Data Description # 6 (type=5)
Unknown data type.
Client is connected to server and listening for data...

[NatNetLib] [ERROR]: Socket error 107: Transport endpoint is not connected

[NatNetLib] [ERROR]: Socket error 107: Transport endpoint is not connected

============================================================================
$ tcpdump -vvv -XXX -n -i wlp2s0 'port 1511'

tcpdump: listening on wlp2s0, link-type EN10MB (Ethernet), capture size 262144 bytes
12:57:43.579063 IP (tos 0x0, ttl 128, id 5332, offset 0, flags [none], proto UDP (17), length 188)
172.21.72.129.1511 > 172.21.72.166.57930: [udp sum ok] UDP, length 160
0x0000: 3ca0 6790 47f5 84a9 3e63 e471 0800 4500 <.g.G...>c.q..E.
0x0010: 00bc 14d4 0000 8011 3c0b ac15 4881 ac15 ........<...H...
0x0020: 48a6 05e7 e24a 00a8 100b 0700 9c00 04cb H....J..........
0x0030: a600 0000 0000 0000 0000 0000 0000 0000 ................
0x0040: 0000 0300 0000 0300 0000 3b3d 253e db94 ..........;=%>..
0x0050: 80be e866 7bbc a69b 443c 0a00 c870 1a3a ...f{...D<...p.:
0x0060: 0400 0000 7076 393c d8cd 80be 1849 6abc ....pv9<.....Ij.
0x0070: a69b 443c 0a00 a20a 503a 0500 0000 88d7 ..D<....P:......
0x0080: 4e3c fc6e e7be 00ce 5cbc a69b 443c 0a00 N<.n....\...D<..
0x0090: 782a 4c3a 0000 0000 0000 0000 0000 0000 x*L:............
0x00a0: 0000 0000 bcbb bbbb 333d f640 0000 0000 ........3=.@....
0x00b0: 0000 0000 38c4 5559 fe02 0000 06f1 5559 ....8.UY......UY
0x00c0: fe02 0000 0000 0000 0000 ..........
12:57:43.587614 IP (tos 0x0, ttl 128, id 5333, offset 0, flags [none], proto UDP (17), length 188)
172.21.72.129.1511 > 172.21.72.166.57930: [udp sum ok] UDP, length 160
0x0000: 3ca0 6790 47f5 84a9 3e63 e471 0800 4500 <.g.G...>c.q..E.
0x0010: 00bc 14d5 0000 8011 3c0a ac15 4881 ac15 ........<...H...
0x0020: 48a6 05e7 e24a 00a8 5479 0700 9c00 05cb H....J..Ty......
0x0030: a600 0000 0000 0000 0000 0000 0000 0000 ................
0x0040: 0000 0300 0000 0300 0000 3c40 253e ac95 ..........<@%>..
0x0050: 80be d88a 7bbc a69b 443c 0a00 1bb0 163a ....{...D<.....:
0x0060: 0400 0000 e083 393c 6bcf 80be 9054 6abc ......9<k....Tj.
0x0070: a69b 443c 0a00 a734 4f3a 0500 0000 07bd ..D<...4O:......
0x0080: 4e3c be6e e7be e8b3 5cbc a69b 443c 0a00 N<.n....\...D<..
0x0090: c870 4c3a 0000 0000 0000 0000 0000 0000 .pL:............
0x00a0: 0000 0000 dedd dddd 333d f640 0000 0000 ........3=.@....
0x00b0: 0000 0000 330a 5759 fe02 0000 753b 5759 ....3.WY....u;WY
0x00c0: fe02 0000 0000 0000 0000 ..........

======================================
[OUTPUT OMITTED IN POST]
=======================================

12:59:12.141229 IP (tos 0x0, ttl 128, id 6606, offset 0, flags [none], proto UDP (17), length 188)
172.21.72.129.1511 > 172.21.72.166.32789: [udp sum ok] UDP, length 160
0x0000: 3ca0 6790 47f5 84a9 3e63 e471 0800 4500 <.g.G...>c.q..E.
0x0010: 00bc 19ce 0000 8011 3711 ac15 4881 ac15 ........7...H...
0x0020: 48a6 05e7 8015 00a8 d4f2 0700 9c00 88f4 H...............
0x0030: a600 0000 0000 0000 0000 0000 0000 0000 ................
0x0040: 0000 0300 0000 0300 0000 0e41 253e e294 ...........A%>..
0x0050: 80be 8897 7bbc a69b 443c 0a00 ef4f 193a ....{...D<...O.:
0x0060: 0400 0000 ec8a 393c 1dcf 80be 3064 6abc ......9<....0dj.
0x0070: a69b 443c 0a00 ec79 4f3a 0500 0000 4bcd ..D<...yO:....K.
0x0080: 4e3c 466f e7be 18f1 5cbc a69b 443c 0a00 N<Fo....\...D<..
0x0090: 67d2 4b3a 0000 0000 0000 0000 0000 0000 g.K:............
0x00a0: 0000 0000 cdcc cccc bc42 f640 0000 0000 .........B.@....
0x00b0: 0000 0000 9c56 1f8e fe02 0000 a67c 1f8e .....V.......|..
0x00c0: fe02 0000 0000 0000 0000 ..........

And tcp connection freezes after 5 seconds (without any data output on SampleClient)
Noting that a remote connection from Motive to another Windows machine will capture the data as I have tested.
nitsan
Posts: 1
Joined: Wed Jun 02, 2021 12:13 am

Re: Linux Client data transmission issue

Post by nitsan »

Hi,
I'm facing a similar issue where I get this error when I try to disconnect from the client:
[NatNetLib] [ERROR]: Socket error 107: Transport endpoint is not connected

Did you manage to solve this?

Thanks,
Nitsan
rtenazas
Posts: 2
Joined: Mon Aug 16, 2021 6:44 am

Re: Linux Client data transmission issue

Post by rtenazas »

I too am receiving this issue.

Code: Select all

NatNet Sample Client (NatNet ver. 3.1.0.0)
Looking for servers on the local network.
Press the number key that corresponds to any discovered server to connect to that server.
Press Q at any time to quit.

[1] Motive 2.2 at 192.168.0.100

[NatNetLib]  [INFO]: [Client] Initializing using my address: 192.168.0.129

[NatNetLib]  [INFO]: [Client] Initializing command listener.

[NatNetLib] [ERROR]: [Client] Receive Buffer Size: 425984

[NatNetLib]  [INFO]: [Client] Host information received. (HostApp: Motive  HostVer: 2.2.0.0  HostIP: 192.168.0.100 ()

[NatNetLib] [ERROR]: [Client] Unable to get host information for 192.168.0.100.

[NatNetLib]  [INFO]: [Client] Initializing data listener.

[NatNetLib]  [WARN]: [HELPER] ReceiveBuffer size = 425984

[NatNetLib]  [INFO]: [Client] Connected.

[SampleClient] Server application info:
Application: Motive (ver. 2.2.0.0)
NatNet Version: 3.1.0.0
Client IP:192.168.0.129
Server IP:192.168.0.100
Server Name:
Mocap Framerate : 120.00
Analog Samples Per Mocap Frame : 0
Client initialized and ready.
[SampleClient] Sending Test Request


[SampleClient] Requesting Data Descriptions...[SampleClient] Received 21 Data Descriptions:
Data Description # 0 (type=1)
RigidBody Name : swarmbot12
RigidBody ID : 999
RigidBody Parent ID : -1
Parent Offset : 0.00,0.00,0.00
	Marker #0:
		Position: 0.02, 0.04, 0.04
	Marker #1:
		Position: -0.05, -0.01, -0.02
	Marker #2:
		Position: -0.01, -0.07, 0.05
	Marker #3:
		Position: 0.04, 0.04, -0.06
Data Description # 1 (type=0)
MarkerSet Name : swarmbot12
Marker1
Marker2
Marker3
Marker4
Data Description # 2 (type=0)
MarkerSet Name : all
swarmbot12_1
swarmbot12_2
swarmbot12_3
swarmbot12_4
Data Description # 3 (type=5)
Unknown data type.Data Description # 4 (type=5)
Unknown data type.Data Description # 5 (type=5)
Unknown data type.Data Description # 6 (type=5)
Unknown data type.Data Description # 7 (type=5)
Unknown data type.Data Description # 8 (type=5)
Unknown data type.Data Description # 9 (type=5)
Unknown data type.Data Description # 10 (type=5)
Unknown data type.Data Description # 11 (type=5)
Unknown data type.Data Description # 12 (type=5)
Unknown data type.Data Description # 13 (type=5)
Unknown data type.Data Description # 14 (type=5)
Unknown data type.Data Description # 15 (type=5)
Unknown data type.Data Description # 16 (type=5)
Unknown data type.Data Description # 17 (type=5)
Unknown data type.Data Description # 18 (type=5)
Unknown data type.Data Description # 19 (type=5)
Unknown data type.Data Description # 20 (type=5)
Unknown data type.
Client is connected to server and listening for data...
However, my tcpdump does not freeze and continues to receive data on the interface/port. Could this be a version issue? I am using Natnet 3.1 and Motive 2.2
rtenazas
Posts: 2
Joined: Mon Aug 16, 2021 6:44 am

Re: Linux Client data transmission issue

Post by rtenazas »

I was able to solve my problem by using Natnet 4.0 (which solved the "Unable to get host information" error and the "Unknown data" error). I also changed from multicast to unicast in Motive since I am broadcasting data over the network.
Post Reply