Skip to content

Trying to connect to POE cameras remotely through 4G router #1230

Open
@GuillaumeHupi

Description

@GuillaumeHupi

Hello,

We are using OAK-1 PoE cameras. They are deployed on site and connected via a 4G router. This all works, but if we need to do a software update, for now we go on site, connect to the router to be on the same network as the camera and run the python script to flash a firmware in standalone mode.

We will have to deploy the solution on sites quite far away and we are looking for a way to be able to make updates remotely. Our telephone operator provides us with VPN access and the IP of our SIM card once connected to them in VPN in the format 10.X.X.X. Thus, we can for example connect to the router remotely using this IP.

On our router we can also configure a port redirection, So for example, if we connect a computer to the router and if we configure a port redirection for port 22 on the computer's IP. Then, we can remotely access this computer in ssh using the SIM IP. For example if the IP of my SIM is 10.10.10.25. If I connect to the operator's VPN and I run a command "ssh root@10.10.10.25", I am well connected in ssh to my computer connected by ethernet to the 4G router.

So we were able to validate that the port redirection works well. We then wanted to see if it was possible to access the POE camera with the same method.

In doubt, on the router we configured port forwarding for all ports (0-65535) to the camera IP. Because we analyzed the requests made and several ports are used (at least 90 for ping and 11490 for firmware flash).

And then, we just tried to launch the command

dai.DeviceBootloader.getFirstAvailableDevice()

But it could not find a device. We thought it was related to the fact that the camera IP is not on the same network mask as the computer on which we are running the program (camera in 10.X.X.X, while the computer is in 192.168.1.X). So we wanted to specify the IP through this command:

bootloader = depthai.DeviceBootloader(ip_address, False)

But remotely, it is impossible to detect the camera:

bootloader = depthai.DeviceBootloader(ip_address, False)
RuntimeError: Specified device not found

But we are able to ping the camera on the 10.X.X.X IP so I don't uderstand why the python script is not able to find it.

Do you have any idea what causes this behavior? For example, does the python library encounter a problem when we try to use an IP that is on a different address range than the computer on which the script is executed? Or is there a particular setting that we should use on our router?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions