How to set up the DV-SDK to make it works for the DVX-S-0048 event camera?

86 views
Skip to first unread message

Xiao Wang

unread,
Jul 3, 2023, 7:13:27 AM7/3/23
to dv-users
I tried this approach, however, it fails. Any suggestions? 


微信截图_20230703191235.png

Jonatan Kronander

unread,
Jul 3, 2023, 9:35:54 AM7/3/23
to dv-users
Hi Wang, 
In order to assist you effectively, could you kindly provide some additional information?

1) What system are you currently using?
2) Could you kindly specify at which step you encounter an issue? Are you able to enter the IP and port in the pop-up window?
3) Can you confirm that the DVX-S camera is connected directly to your computer with a proper USB-C cable? 
4) Do you observe if the camera turns on when it is connected to USB? Is the status LED on the backside illuminated?
5) Are you able to successfully ping the IP?

Best,
Jonatan

Xiao Wang

unread,
Jul 3, 2023, 10:09:41 PM7/3/23
to dv-users
Hi, thanks for your attention. The following are my settings. 

1) What system are you currently using?  --- Windows 11. 
2) Could you kindly specify at which step you encounter an issue? Are you able to enter the IP and port in the pop-up window? --- I can enter the IP successfully, but then, nothing happens even I click the IP address in the following figure.
3) Can you confirm that the DVX-S camera is connected directly to your computer with a proper USB-C cable?  --- The indicator light seems to work, as the following figure shows. 
4) Do you observe if the camera turns on when it is connected to USB? Is the status LED on the backside illuminated? --- The camera is not turned on I think, I am not sure about this. No signal shows the camera turns on now.
5) Are you able to successfully ping the IP? --- the ping is not working.


微信截图_20230704095545.png  

微信图片_20230704100152.jpg

微信截图_20230704100906.png


Jonatan Kronander

unread,
Jul 4, 2023, 3:23:32 AM7/4/23
to dv-users
Hi again, 

The reason for your problem is Windows. Right now, network forwarding with Windows (as stated in 4.1.3 in your documentation) isn't available. 

It seems like your camera gets power (seeing from the green indicator). However, when connecting over USB C you shouldn't need the ethernet cable and vice versa. 

In your case, disconnect the USB C cable and try conecting to your camera over the network as decribed in 5.2.

Best,
Jonatan

Xiao Wang

unread,
Jul 6, 2023, 4:00:08 AM7/6/23
to dv-users
Hi, we changed it into a PC with Ubuntu system and the camera can be visulized successfully. However, it still fails to record the videos. 

The configurations can be found below. My question is: 
1. why the DV software record the event-rgb-streams (i.e. aedat4 file) into a path that doesn't existing at all. Also, I tried to change it into another path, however, the DV shows me the recording error: no permission, someting like that. The details can be found in following screenshot. 

2. the socond issue is how can I record the videos meanwhile, the UI also shows me the online streams? 

3. the software is really slow, slow, slow, .... any suggestions to improve the feelings of the usage? 

Thanks for your attention and responses! 

Best Regards 
Xiao Wang 



Screenshot from 2023-07-06 15-27-17.pngScreenshot from 2023-07-06 15-33-24.pngScreenshot from 2023-07-06 15-34-53.png





Jonatan Kronander

unread,
Jul 6, 2023, 7:29:02 AM7/6/23
to dv-users
Hi, 
It looks like you have connected remotly to the dv-runtime of the dvx-s camera (via remote access)? Is this correct? Are you using usb c or ethernet calbe? 

Assuming it is remotely connected. Here is my answer:
1. The "Directory" path is the path on the dvx-s device. Not your local computer. You access the recorded files on the dvx-s using ssh. See "SSH ACCESS" in the documentation.
2. This should be possible. Did you try draging the "jetson_input" module outputs (EVENTS or FRAMES) to "Visualize in UI" module input? You can read more about dv-runtime here: https://inivation.gitlab.io/dv/dv-docs/docs/getting-started/
3. It's hard to say anything to this without knowing your setup? What specs does your pc have? What version of Ubuntu do you have? Are you connected remotely via USB or network? etc? Generally, I havn't heard any problems with dv-runtime beeing "really slow" 

Hope this helps! 

Best,
Jonatan

Xiao Wang

unread,
Jul 11, 2023, 11:19:18 AM7/11/23
to dv-users
Hi, thanks for your kind explanation. I have successfully recorded the aedat4 files and also get the file via ssh operation. Thank you very much! 

for the third question I raised, I mean the software DV is not smooth when I record the event file. 

I find the timestamp of frame and event data are not aligned, right? 

Best Regards 
Xiao Wang 

Jonatan Kronander

unread,
Jul 12, 2023, 3:24:20 AM7/12/23
to dv-users
Hi wang, 
I am happy you got it to work! 

You can read more about synchronised frames, events and imu in Chapter Four in the dvx-s documentation. I quote from this documentation since I think it will answer your question:

"The timestamps of event, frame and IMU data in DV-SDK are defined as microseconds since the Unix Time Epoch4. Since the device runs Linux, it must be able to accurately set its real-time clock and keep it synchronized. This is a well-known and well-solved problem using network time synchronization techniques, such as the Network Time Protocol (NTP) or the Precision Time Protocol (PTP). It is even possible to use external hardware such as GPS and Atomic Clocks for certain use cases. For network time synchronization to work, the device must be able to reach an external network, usually the internet, and talk to pool.ntp.org5. If you connect over Ethernet with DHCP, we assume the resulting connection can access the internet and the global NTP servers. If you connect over USB, you’ll have to enable network forwarding for the camera first, see below for instructions."

To sum up: Either, if you use USB connected camera, you'll have to do network forwarding. Do this by following 4.1.1, which says you should run the script below as root on the camera. (Currectly only supported using linux) Or simply connect the camera to a DHCP network with an internet connection.
"
#!/bin/sh

echo > /proc/sys/net/ipv4/ip_forward

iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT 

iptables -A FORWARD -j ACCEPT -s 192.168.55.0/24 

iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.55.0/24

best,
Jonatan 
Reply all
Reply to author
Forward
0 new messages