# voxl-streamer client repetitive connect/disconnect

Source: https://forum.modalai.com/topic/550/voxl-streamer-client-repetitive-connect-disconnect
Category: General Questions (https://forum.modalai.com/category/2/general-questions)
Posted: 2021-11-09 18:57:42 UTC by wilkinsaf
Replies: 62 · Views: 34539

## wilkinsaf · 2021-11-09 18:57:42 UTC

We are having problems when streaming our UVC camera with VOXL streamer. 

The voxl-streamer repetitively connects then disconnects when trying to access the camera
![448b4318-d44d-4bba-9d96-b1a35ee4bb80-image.png](https://forum.modalai.com/assets/uploads/files/1636484210753-448b4318-d44d-4bba-9d96-b1a35ee4bb80-image.png) 

Some background, we are using the Sony IMX sensor that is connected to the Microhard add-on board. 

When running ```lsusb``` we can see the device there (although there is no name for it)![db9b8d2b-f510-4038-917e-a962409a8224-image.png](https://forum.modalai.com/assets/uploads/files/1636483989519-db9b8d2b-f510-4038-917e-a962409a8224-image.png) 

The tracking camera and hires camera are able to stream without incident. 

Any insight would be greatly appreciated. Thank you!

## Reply by Chad Sweet (ModalAI staff) · 2021-11-11 06:36:05 UTC

There is a known issue with UVC streaming. I'm not sure when it will be fixed. We'll try to investigate and get back to you in a few days.

## Reply by wilkinsaf · 2021-11-11 16:21:42 UTC (in reply to Chad Sweet)

@Chad-Sweet 

Right on. I will try some troubleshooting from my end as well. Will let you know if I find anything interesting. 

Thanks!

## Reply by Eric Katzfey (ModalAI staff) · 2021-11-15 16:08:42 UTC (in reply to wilkinsaf)

@wilkinsaf UVC camera support was developed against QGroundControl v3.5.6 and using a Logitech C270 camera. Newer versions of QGroundControl do not wait long enough for the connection to come up and try to restart. Also, cameras that do not support a raw format won't work. I would try with QGoundControl v3.5.6 first and see if your camera works with that.

## Reply by Eric Katzfey (ModalAI staff) · 2021-11-15 16:11:12 UTC

An update to UVC camera support has been started. It will increase number of supported cameras by allowing MJPEG and will increase number of supported viewers including latest QGroundControl versions. Target availability is mid-December.

## Reply by wilkinsaf · 2021-11-16 14:18:33 UTC (in reply to Eric Katzfey)

@Eric-Katzfey Thank you for the update Eric!

Also, is there a format/guide on how to modify the camera configuration file? For example if a camera was giving off a different format, framerate, size, etc...

I was trying to find a guide on how to modify that file, but could not. 

I figured it would be helpful for developers.

## Reply by Eric Katzfey (ModalAI staff) · 2021-11-16 15:31:05 UTC (in reply to wilkinsaf)

@wilkinsaf The configuration file for voxl-streamer is documented here: https://docs.modalai.com/voxl-streamer/#configuration-file-format

## Reply by Eric Katzfey (ModalAI staff) · 2021-11-16 15:32:51 UTC (in reply to wilkinsaf)

@wilkinsaf The configuration for voxl-camera-server is discussed here: https://docs.modalai.com/voxl-camera-server/#configuration

## Reply by Eric Katzfey (ModalAI staff) · 2021-11-28 16:52:22 UTC (in reply to wilkinsaf)

@wilkinsaf There is an initial version of a new UVC camera server application now available from our "dev" package repo. The application voxl-uvc-server works in conjunction with voxl-streamer to better support UVC cameras. It has been tested with the Logitech C270 and Videology 5MP Micro USB 2.0 Board Camera. The documentation is at https://docs.modalai.com/voxl-uvc-server/ and the code is at https://gitlab.com/voxl-public/modal-pipe-architecture/voxl-uvc-server. To try it out, install the latest Voxl platform release voxl_platform_3-3-0-0.5.0-a. On target, configure the opkg package manager to use the modalai dev repo (https://docs.modalai.com/configure-opkg/). Then use ```opkg install voxl-streamer``` to upgrade voxl-streamer from 0.2.6 to 0.2.7 (and libmodal_pipe from 2.1.1 to 2.1.2). Then ```opkg install voxl-uvc-server``` to install the new voxl-uvc-server application v0.0.5. Run ```voxl-uvc-server -d``` to start the application with debug messages. Then run voxl-streamer with ```voxl-streamer -f /usr/share/modalai/voxl-streamer/voxl-streamer.conf -c uvc-server``` to use the new configuration file and record type for the uvc server. Let me know if this works for you.

## Reply by wilkinsaf · 2021-12-03 20:54:37 UTC

quick comment for anyone reading this, it is 

`voxl-uvc-server -d` when running

## Reply by Eric Katzfey (ModalAI staff) · 2021-12-06 16:43:24 UTC (in reply to wilkinsaf)

@wilkinsaf Thanks! I fixed the typo in the original post.

## Reply by wilkinsaf · 2021-12-06 23:14:55 UTC

@Eric-Katzfey 

I am seeing that this failed for MJPEG

voxl:~$ voxl-uvc-server -d    
Enabling debug messages
voxl-uvc-server starting
UVC initialized
Device found
Device opened
uvc_get_stream_ctrl_format_size failed for MJPEG
uvc_get_stream_ctrl_format_size failed

Is there a config file for this that I can modify to change the format?

## Reply by Eric Katzfey (ModalAI staff) · 2021-12-07 01:18:58 UTC (in reply to wilkinsaf)

@wilkinsaf That shows a failure of the camera to support either MJPEG or YUV422. In order to support that camera you need to know what formats it supports. The best way to do that is to query it's capabilities on the command line. First of all use the ```lsusb``` command to find out the device id and product id of the camera. For example:
```
Ubuntu18$ lsusb
Bus 001 Device 090: ID 046d:0825 Logitech, Inc. Webcam C270
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
```
This shows you that the UVC webcam has device id and product id ```046d:0825```. You can use that to query it's capabilities with ```lsusb -v -d 046d:0825```. This will dump all of the camera capabilities to the output. Can you respond with the output from your camera?

## Reply by wilkinsaf · 2021-12-17 16:41:04 UTC (in reply to Eric Katzfey)

@Eric-Katzfey 

Apologies for the delay. Some other things came up. 
I was able to pull down the camera information. We have 2 cameras we are trying to get up. 

Cam 1: https://pastebin.com/qHvHKXay
Cam 2: https://pastebin.com/7DgvP58k

They appear to be able to post in MJPEG

## Reply by wilkinsaf · 2021-12-17 16:52:50 UTC

Not sure if voxl-uvc-server got removed. 
I can not seem to find it in the public repo:

![6c9ccd79-a410-48ce-9117-b4ec0156f68e-image.png](https://forum.modalai.com/assets/uploads/files/1639759968666-6c9ccd79-a410-48ce-9117-b4ec0156f68e-image.png)

## Reply by Eric Katzfey (ModalAI staff) · 2021-12-17 16:56:43 UTC (in reply to wilkinsaf)

@wilkinsaf Project is here: https://gitlab.com/voxl-public/modal-pipe-architecture/voxl-uvc-server

## Reply by Eric Katzfey (ModalAI staff) · 2021-12-17 16:58:36 UTC (in reply to wilkinsaf)

@wilkinsaf The current voxl-uvc-server capabilities only cover uncompressed frames, not mjpeg. The two cameras that you are looking at both have uncompressed formats but the guidFormat is slightly different than the cameras I have tested with. Let me look into this a little deeper.

## Reply by Eric Katzfey (ModalAI staff) · 2021-12-17 17:27:11 UTC (in reply to wilkinsaf)

@wilkinsaf The formats should be compatible. I'll have to dig into the libuvc code to see why they are not accepted.

## Reply by Eric Katzfey (ModalAI staff) · 2021-12-17 18:14:24 UTC (in reply to wilkinsaf)

@wilkinsaf Are either of these cameras cheap and easy to purchase?

## Reply by wilkinsaf · 2021-12-17 19:02:24 UTC

I believe so. Let me find them online really quick. I was able to get the video's from the cameras streaming using the directions here: https://docs.modalai.com/uvc-streaming/

I moved over the ffmpeg ipk and executed 
ffmpeg -i /dev/video2 -f mpegts udp://QCS_IP:4242

So I know that they are working.

## Reply by Eric Katzfey (ModalAI staff) · 2021-12-18 18:53:57 UTC (in reply to wilkinsaf)

@wilkinsaf There are some clues here: https://github.com/gregkh/usbutils/issues/42. It seems like there are some endian issues with interpretation of the guidFormat field. For example, for my Logitech C270 test camera, lsusb reports the guidFormat as ```32595559-0000-0010-8000-00aa00389b71``` but libuvc (which voxl-uvc-server uses) reports the guidFormat as ```59555932-0000-1000-8000-00aa00389b71```.  So, my guess is that since lsusb reports the guidFormat of your camera as ```59555932-0000-1000-8000-00aa00389b71```, libuvc (and hence voxl-uvc-server) will see it as ```32595559-0000-0010-8000-00aa00389b71``` which doesn't match any valid formats. I think I can hack libuvc to add the extra guidFormat and then your cameras will work but I won't be able to test it without one of your cameras. But I will post it and you can try it. For reference this is where libuvc needs to be modified to add the extra guidFormat: https://github.com/libuvc/libuvc/blob/37f00abd32b083a3d748f2a25c1c794578b51c16/src/stream.c#L109

## Reply by Eric Katzfey (ModalAI staff) · 2021-12-18 22:25:54 UTC (in reply to wilkinsaf)

@wilkinsaf There is a new version of libuvc available at http://voxl-packages.modalai.com/dev/libuvc_1.0.2_202112182223.ipk with the changes. If you rebuild the dev branch of voxl-uvc-server and install build deps from dev you should pick up the new libuvc. Then you can rebuild and test with your camera.

## Reply by wilkinsaf · 2021-12-20 18:48:11 UTC (in reply to Eric Katzfey)

@Eric-Katzfey roger that. thank you for your support here Eric

## Reply by wilkinsaf · 2021-12-20 18:55:06 UTC (in reply to Eric Katzfey)

@Eric-Katzfey will post results after run

## Reply by wilkinsaf · 2021-12-21 16:10:24 UTC (in reply to Eric Katzfey)

@Eric-Katzfey Sorry for being such a pain, but it seems like this repo keeps moving.

I went to https://gitlab.com/voxl-public/modal-pipe-architecture/voxl-uvc-server

but got this

![533db1c7-724e-4732-bf4a-7659d9acf39d-image.png](https://forum.modalai.com/assets/uploads/files/1640102995207-533db1c7-724e-4732-bf4a-7659d9acf39d-image.png) 

I keep searching around for the repo, but can not find it

## Reply by Eric Katzfey (ModalAI staff) · 2021-12-21 20:39:32 UTC (in reply to wilkinsaf)

@wilkinsaf Sorry, it was setup as private. I changed it to public. Can you try again?

## Reply by wilkinsaf · 2021-12-22 03:21:16 UTC (in reply to Eric Katzfey)

@Eric-Katzfey Got it, thank you!

Will download and play with

## Reply by wilkinsaf · 2021-12-22 03:25:55 UTC (in reply to Eric Katzfey)

@Eric-Katzfey Will it remain public?

## Reply by Eric Katzfey (ModalAI staff) · 2021-12-23 15:48:20 UTC (in reply to wilkinsaf)

@wilkinsaf Yes, it will remain public. Did you get a chance to see if the changes worked?

## Reply by wilkinsaf · 2021-12-27 19:39:31 UTC (in reply to Eric Katzfey)

@Eric-Katzfey Testing out today

## Reply by wilkinsaf · 2021-12-28 18:46:42 UTC (in reply to Eric Katzfey)

@Eric-Katzfey 

We seem to be having trouble finding the camera now which is weird. I wonder if we need to specifically download and install the drivers?

![2f9579c4-88ea-4693-b7a8-e67415540bad-image.png](https://forum.modalai.com/assets/uploads/files/1640717201209-2f9579c4-88ea-4693-b7a8-e67415540bad-image.png)

## Reply by Eric Katzfey (ModalAI staff) · 2021-12-28 18:58:21 UTC (in reply to wilkinsaf)

@wilkinsaf No, you shouldn't need any drivers. Any USB device should be listed with ```lsusb```, even without any specific drivers. Does it show up when plugged into a regular Linux computer?

## Reply by wilkinsaf · 2021-12-28 18:59:10 UTC (in reply to Eric Katzfey)

@Eric-Katzfey Yes, we have hardwired it into a computer before. We have seen the stream using ffmpeg on VOXL as well. We just can not seem to get voxl-streamer to work with it

## Reply by Eric Katzfey (ModalAI staff) · 2021-12-28 19:00:18 UTC (in reply to wilkinsaf)

@wilkinsaf If you unplug the camera from Voxl does anything disappear from the ```lsusb``` list?

## Reply by wilkinsaf · 2021-12-28 20:52:48 UTC (in reply to Eric Katzfey)

@Eric-Katzfey 

Yes, the top 3 entries in `lsusb` screenshots above are all cameras. I can unplug those one by one and see them disappear. 
Would it matter if we have 2 UVC cameras?

## Reply by Eric Katzfey (ModalAI staff) · 2021-12-28 20:56:44 UTC (in reply to wilkinsaf)

@wilkinsaf Just try one at a time for now. And when you plug the camera in do you see a new ```/dev/videoX``` entry appear?

## Reply by Eric Katzfey (ModalAI staff) · 2021-12-28 20:57:51 UTC (in reply to wilkinsaf)

@wilkinsaf Also, were you able to get the ordering information for these cameras? If they aren't too expensive I would like to order at least one of them to test against.

## Reply by wilkinsaf · 2021-12-28 21:53:27 UTC (in reply to Eric Katzfey)

@Eric-Katzfey 

Yes, let me try one at a time now. 
Here are the two cameras

![4de39b51-2708-4707-a1fe-d67161270aa3-image.png](https://forum.modalai.com/assets/uploads/files/1640728134314-4de39b51-2708-4707-a1fe-d67161270aa3-image.png) ![0_1640728100493_PXL_20211228_214717072.jpg](Uploading 100%) 

1. [Banggood URL](https://usa.banggood.com/HBV-1466AF-Auto-Focus-5M-Pixel-OV5640-CMOS-Camera-Module-with-Flex-Cable-USB-5-Million-Pixels-p-1709330.html?cur_warehouse=CN)

2. [Blue Robotics URL](https://bluerobotics.com/store/sensors-sonars-cameras/cameras/cam-usb-low-light-r1/)

## Reply by wilkinsaf · 2021-12-28 21:59:20 UTC (in reply to Eric Katzfey)

@Eric-Katzfey 

Good news, I was able to get voxl-uvc-server to spin up with one usb camera connected. 
![21d09d1b-d888-45a2-a663-51af22ab926b-image.png](https://forum.modalai.com/assets/uploads/files/1640728710053-21d09d1b-d888-45a2-a663-51af22ab926b-image.png) 

However, I am getting this issue from voxl-streamer
![cc766c80-29ad-4160-8191-964e40998ea5-image.png](https://forum.modalai.com/assets/uploads/files/1640728742530-cc766c80-29ad-4160-8191-964e40998ea5-image.png) 

Seems like I need to figure out the frame size and set the correct one. Let me play around with that now

## Reply by wilkinsaf · 2021-12-28 22:05:15 UTC (in reply to Eric Katzfey)

@Eric-Katzfey Doesn't look to be frame size as the "sizes" seem non-deterministic
![f7371975-b223-4f6e-a9f0-3e2b3e744c26-image.png](https://forum.modalai.com/assets/uploads/files/1640729114053-f7371975-b223-4f6e-a9f0-3e2b3e744c26-image.png)

## Reply by Eric Katzfey (ModalAI staff) · 2021-12-28 22:08:02 UTC (in reply to wilkinsaf)

@wilkinsaf Great, that's some progress! What about if you try the other camera? Not sure why the frame length is different. For a given resolution and frame format that number should be a constant. (e.g. 640 x 480 x 2).

## Reply by wilkinsaf · 2021-12-28 22:15:36 UTC (in reply to Eric Katzfey)

@Eric-Katzfey 

Good suggestion. Let me try that. 
Check out the length when uvc server fires up
```
Got frame callback! frame_format = 3, width = 640, height = 480, length = 613376, ptr = 0
```

interesting

## Reply by Eric Katzfey (ModalAI staff) · 2021-12-28 22:15:37 UTC (in reply to wilkinsaf)

@wilkinsaf You can try modifying this line in voxl-uvc-server: https://gitlab.com/voxl-public/modal-pipe-architecture/voxl-uvc-server/-/blob/dev/src/main.c#L83

Make it read: ```.size_bytes = 614400, \```

Then rebuild it and try again.

## Reply by wilkinsaf · 2021-12-28 22:17:40 UTC (in reply to Eric Katzfey)

@Eric-Katzfey Sounds good. 

The other camera is giving me this error
![dab62085-ee06-487d-97c0-99bcd228e382-image.png](https://forum.modalai.com/assets/uploads/files/1640729859743-dab62085-ee06-487d-97c0-99bcd228e382-image.png)

The one I compiled could not find the device at all
![ad11d578-596e-44b3-b240-049dea293fa4-image.png](https://forum.modalai.com/assets/uploads/files/1640729919058-ad11d578-596e-44b3-b240-049dea293fa4-image.png)

## Reply by Eric Katzfey (ModalAI staff) · 2021-12-28 22:20:23 UTC (in reply to wilkinsaf)

@wilkinsaf Perhaps you are working on ```master``` branch? The latest and greatest (The one you should be using) is the ```dev``` branch.

## Reply by Eric Katzfey (ModalAI staff) · 2021-12-28 22:26:02 UTC (in reply to wilkinsaf)

@wilkinsaf Thanks! I'm going to order them so that I can have them as part of our normal USB UVC camera test suite.

## Reply by wilkinsaf · 2021-12-28 22:30:18 UTC (in reply to Eric Katzfey)

@Eric-Katzfey Thanks Eric!

I switched to dev branch (slightly embarrassing as you told me to switch to dev) and pull
```
voxl:~/voxl-uvc-server(dev)$ git pull origin dev
From https://gitlab.com/voxl-public/modal-pipe-architecture/voxl-uvc-server
 * branch            dev        -> FETCH_HEAD
Already up-to-date.
```

I made sure to install the correct libuvc ipk
 ```
voxl:~$ opkg install libuvc_1.0.2_202112182223.ipk
Collected errors:
 * opkg_prepare_file_for_install: Refusing to load file 'libuvc_1.0.2_202112182223.ipk' as it matches the installed version of libuvc (1.0.2).
```

I then built the voxl-uvc-server, ran Makefile, and tried to run 
![19c8da6a-c943-40f8-85b4-350d52459372-image.png](https://forum.modalai.com/assets/uploads/files/1640730617198-19c8da6a-c943-40f8-85b4-350d52459372-image.png)

## Reply by Eric Katzfey (ModalAI staff) · 2021-12-28 22:44:00 UTC (in reply to wilkinsaf)

@wilkinsaf Okay, interesting. Let's go back to the original camera with the incorrect size. Can you add the patch I suggested and see if you can make that camera work?

## Reply by wilkinsaf · 2021-12-28 23:03:38 UTC (in reply to Eric Katzfey)

@Eric-Katzfey ope, almost forgot. Yes, let me do that now

## Reply by wilkinsaf · 2021-12-29 16:44:13 UTC (in reply to Eric Katzfey)

@Eric-Katzfey 

For some reason now it is still struggling to find any device. I tried both cameras
![1ca5e655-0e4d-46c5-a1a7-75a232497ec7-image.png](https://forum.modalai.com/assets/uploads/files/1640796252109-1ca5e655-0e4d-46c5-a1a7-75a232497ec7-image.png)

## Reply by wilkinsaf · 2021-12-29 16:53:03 UTC (in reply to Eric Katzfey)

@Eric-Katzfey 

I know that it is there as ffmpeg picks up on it

![6daa081a-c811-465d-b76b-e9f2a8e8c107-image.png](https://forum.modalai.com/assets/uploads/files/1640796782671-6daa081a-c811-465d-b76b-e9f2a8e8c107-image.png)

## Reply by Eric Katzfey (ModalAI staff) · 2021-12-30 17:53:13 UTC (in reply to wilkinsaf)

@wilkinsaf Unfortunately, it's hard to debug this without actually having the camera in my test setup. I've never seen a camera stop being detected like that. I did order the cameras but won't have them in my possession until the 9th of January.

## Reply by wilkinsaf · 2022-01-06 01:20:00 UTC (in reply to Eric Katzfey)

@Eric-Katzfey My apologies. I thought I sent a response to this. 

Totally get it. Debugging over a message board is really hard. I believe my associate is getting some of the cameras to your offices sooner than the 9th. 

I have been continuing to try different things on our end.

## Reply by Eric Katzfey (ModalAI staff) · 2022-01-12 00:00:12 UTC (in reply to wilkinsaf)

@wilkinsaf I have both of the cameras now. I have updated libuvc to version 1.0.3 (http://voxl-packages.modalai.com/dev/) and voxl-uvc-server to version 0.0.6 (http://voxl-packages.modalai.com/dev/). The voxl-uvc-server update isn't really necessary but I cleaned up a little bit of the debug logic. There was a check that was failing in libuvc for the Blue Robotics camera (USB 32e4:9422, "H264 USB Camera") so I removed that check and then it started working. So far it has been reliable. The other camera (USB 337b:090c, "HBVCAM 5M-AF") was coming up without these changes. However, it isn't reliable. Sometimes uvc_open will fail, other times it will pass. If it passes then sometimes it will successfully start streaming and other times it will think it was successful but gets no frames. Not sure why it is having these issues so need to debug more.

## Reply by wilkinsaf · 2022-01-12 20:10:06 UTC (in reply to Eric Katzfey)

@Eric-Katzfey Awesome!

Thank you Eric. Will try that out and report back

## Reply by Eric Katzfey (ModalAI staff) · 2022-01-12 23:13:16 UTC (in reply to wilkinsaf)

@wilkinsaf A new version of voxl-uvc-server was just posted here: http://voxl-packages.modalai.com/dev/. Documentation has been updated accordingly: https://docs.modalai.com/voxl-uvc-server/. Seems to be working pretty well with your cameras but one of them will fail occasionally. The program will fail and you can try again when that happens. Still not sure why it isn't reliable on all cameras.

## Reply by wilkinsaf · 2022-01-13 16:08:28 UTC (in reply to Eric Katzfey)

@Eric-Katzfey Nice! Thank you for putting the time in to get that for us.

## Reply by wilkinsaf · 2022-01-17 18:50:41 UTC (in reply to Eric Katzfey)

@Eric-Katzfey the uvc-server appears to be working. however, the voxl-streamer does not seem to be able to connect to the pipe. is there a different voxl-streamer command than what was mentioned above?

```
voxl-streamer -f /usr/share/modalai/voxl-streamer/voxl-streamer.conf -c uvc-server
```

## Reply by wilkinsaf · 2022-01-17 19:07:01 UTC (in reply to Eric Katzfey)

@Eric-Katzfey ![547c03aa-fb6a-4705-84a4-2c26d30adbfb-image.png](https://forum.modalai.com/assets/uploads/files/1642446419371-547c03aa-fb6a-4705-84a4-2c26d30adbfb-image.png)

![6d85e44e-e168-4c9e-a548-037aca9c4731-image.png](https://forum.modalai.com/assets/uploads/files/1642446509589-6d85e44e-e168-4c9e-a548-037aca9c4731-image.png)

## Reply by Eric Katzfey (ModalAI staff) · 2022-01-17 19:27:17 UTC (in reply to wilkinsaf)

@wilkinsaf Yes, there is a newer version of voxl-streamer available that has some new configurations defined. See documenation here: https://docs.modalai.com/voxl-streamer/#streaming-uvc-cameras-from-voxl-uvc-server

## Reply by wilkinsaf · 2022-01-17 20:14:54 UTC (in reply to Eric Katzfey)

@Eric-Katzfey I am not seeing the uvc-generic in my /etc/modalai/voxl-streamer.conf file after my install of voxl-streamer_0.2.7_202111272338.ipk

Is there a repo online of these .conf files?

I found the voxl-streamer.conf file in the gitlab repo, however I do not see the uvc-generic tag in any of the branches I looked through

## Reply by Eric Katzfey (ModalAI staff) · 2022-01-17 21:11:26 UTC (in reply to wilkinsaf)

@wilkinsaf Sorry, forgot to deploy the latest one. It is there now.

## Reply by wilkinsaf · 2022-01-17 23:31:08 UTC (in reply to Eric Katzfey)

@Eric-Katzfey Got it working about 50% of the time. It seems like most of the time it is just the uvc server trying to connect. I am going to see if I can create a service file around it. Maybe restarting on fail will get it to work with a bit of delay in between. 

A bandaid for the issue, but at least it will work
