I am currently working on a project where I want to collect the raw data streaming over Ethernet in NVIDIA's Jetson Nano. I have set the correct ip and port number in my Jetson Nano. I can confirm that the UDP packets are coming by typing the command
sudo tcpdump
However when I try to read the function from the Python program I am getting a socket time-our error. The Python code is given below:
import socket HOST = '192.168.33.30' PORT = 4098 s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.bind((HOST, PORT)) print("Connected") while True: data, _ = s.recvfrom(4096) if not data: print("Data not received") continue print(data)
Things tried out:
1). I ran the same code on ubuntu 20.04 in my laptop and it worked perfectly, but when I connect remove the Ethernet cable from my laptop and connect to the jetson nano, this program gives a socket time-out error. I am unable to
understand why this is happening. I have disabled firewall too.
2). Also I set my laptop to the same ip address and Port as that coded in the FPGA (192.168.33.30 and port number 4098) of DCA1000EVM (just to check that there is no issue with the ip address
and port number by any chance) and tried UDP packet communication with my Jetson Nano, it works, but when trying
from DCA1000 EVM to Jetson, it is giving socket-timeout error.
Currently Jetson Nano has the official OS flashed in it, which is downloaded from the link https://developer.nvidia.com/embedded/learn/get-started-jetson-nano-devkit#write-linux. The Jetson Nano has Ubuntu 18.04 running on it.
The sensor we are using is IWR1843 BOOST EVM.
Can you help me resolve this issue?