Open TajVeerThiara opened 4 years ago
Hi Guys,
is there any update on this? I just bumped into the same issue socket timeout
. Is there any update here?
I have checked with wireshark and found that the data is indeed streaming over udp. However, the python script seems not able to sniff the data. I noticed that at the same time mmwave studio is listening and capturing correctly? Tension between different udp servers?
@TajVeerThiara Have you been able to fix the issue?
@Immapizzapie @jtang10 @edwin-pan @arjung128 Would you provide some hints here?
I just ran the code listed above and also ran into the socket timeout
issue.
However, when I restarted my kernel via IPython (I'm using Spyder 4.01 via Anaconda) without stopping the data stream from the radar, I got the following output:
Perhaps you should try opening a new terminal as the data streams. The UTP port might be jammed. There's still a lot of work to be done to massage out the connection between OpenRadar and the TI platform. If you'd like to put a pull request.... it'd be much appreciated :)
Hi Edwin,
thanks a lot for your investigation. We tried to reproduce this without any success. We suspect that this is because of multiple sockets listening to the same udp port (python and mmwave studio). We tried the following two approaches:
Neither solved the timeout
problem. I guess then the exact sequence to start streaming really matters as apparently you have been able to do it. Would you please shed some more light here? Please note that we use IWR6843 but I don't think that would play any difference.
For the moment, we solved the problem with a different approach. We used pyshark to sniff the udp port and it seems to work. However, it is not as fast as we would expect.
Thanks :+1:
I just ran the code listed above and also ran into the
socket timeout
issue.However, when I restarted my kernel via IPython (I'm using Spyder 4.01 via Anaconda) without stopping the data stream from the radar, I got the following output:
Perhaps you should try opening a new terminal as the data streams. The UTP port might be jammed. There's still a lot of work to be done to massage out the connection between OpenRadar and the TI platform. If you'd like to put a pull request.... it'd be much appreciated :)
Hi Edwin,
I tried to reproduce this but still got a socket.timeout: timeout. Have you figured out any better solutions to fix this issue so that this repository can be used to collect data in real time?
Hi Edwin,
thanks a lot for your investigation. We tried to reproduce this without any success. We suspect that this is because of multiple sockets listening to the same udp port (python and mmwave studio). We tried the following two approaches:
- bind a python socket first and then start mmwave and follow the process
- start streaming and then kill the mmwave cmdline recorder process (which is listening on the same port)
Neither solved the
timeout
problem. I guess then the exact sequence to start streaming really matters as apparently you have been able to do it. Would you please shed some more light here? Please note that we use IWR6843 but I don't think that would play any difference.For the moment, we solved the problem with a different approach. We used pyshark to sniff the udp port and it seems to work. However, it is not as fast as we would expect.
Thanks
Hello, when I ran into the code listed above, I still got a socket.timeout: timeout issue. Would you be kind to share how you solved the issue by using pyshark? Thanks~
Have you opened mmwave studio and configurated it? I encounter this problem at first, too. But when I set the frame option in mmwave studio to 128 and it works great.
I am also currently facing the same issue with socket.timeout
and tried the above solutions to no avail.. are there any updates to the issue?
Have you opened mmwave studio and configurated it? I encounter this problem at first, too. But when I set the frame option in mmwave studio to 128 and it works great.
I am using the OOB demos and found that I can't set the frame above the default values. when I do this, the demo refuses to run. So changing the frame rate doesn't look like the right solution still.
i'll appreciate other suggestions.
closing firewall works like a charm :)
Hi, was anyone able to solve this issue? I am having a weird issue here: I am receiving a socket.timeout timeout
error only on my Jetson Nano or Raspberry Pi but when I run the same code on Ubuntu on my PC it works like a charm and data is being read from the socket.
On my Jetson Nano, I tried to check if the packets are coming by using the following command
sudo tcpdump | grep 4098
The packets are being received alright. However, whenever I try to read from using the recvfrom
function, I get the socket timeout error.
Does anyone have a solution for this? Or has anyone else experienced this?
closing firewall works like a charm :)
@smaxfish hi, what do you mean by closing the firewall? do you mean disabling ufw or iptables? I have tried disabling ufw, didn't work. I also tried disabling iptables (whatever I could understand from online articles) by flushing the rules and setting all rules to ACCEPT (don't know if this should do it - if anyone knows about this, please let me know) but it still didn't work.
Please let me know how you did it.
Hi,
In my case, I am running the code in windows environment, and I am not familiar with the tweaking of firewall setting. I just turned off the firewall in windows system setting and all ran normally.
Best regards,
Yi Huang
发件人: Soham Chakraborty @.> 发送时间: 2023年11月11日 13:04 收件人: PreSenseRadar/OpenRadar @.> 抄送: smaxfish @.>; Mention @.> 主题: Re: [PreSenseRadar/OpenRadar] socket.timeout: timed out (#9)
closing firewall works like a charm :)
@smaxfishhttps://github.com/smaxfish hi, what do you mean by turning off the firewall? do you mean disabling ufw or iptables? I have tried disabling ufw, didn't work. I also tried disabling iptables (whatever I could understand from online articles) by flushing the rules and setting all rules to ACCEPT (don't know if this should do it - if anyone knows about this, please let me know) but it still didn't work.
Please let me know how you did it.
― Reply to this email directly, view it on GitHubhttps://github.com/PreSenseRadar/OpenRadar/issues/9#issuecomment-1806689077, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AD7MH5V2AQQ3IR742GRJXADYD4BODAVCNFSM4KGKYGO2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBQGY3DQOJQG43Q. You are receiving this because you were mentioned.Message ID: @.***>
I repeatedly get a socket.timeout: timeout when I try to run the following python script using the OpenRadar repository.