We have Luxonis OAK 1 Camera. These camera goes not connected status when probe via phyon code. But the Camera is pingable from network. When we bounce the network and re-run the phyton code its displaying as it is connected.

We have ran wireshark between camera port and Server end . The packet is reaching the camera and it returning the packet to server stating as destination is unreachable.

We know from these that is not a network issue but we did not know how to proceed further any suggestion from these forum.

Hi. What camera do you have? USB or POE Model?

What connected status do you mean? Connected to Luxonis Hub?

What python code do you use for monitoring?

Thanks, M.

What camera do you have? USB or POE Model?

Luxonis OAK-1-PoE

What connected status do you mean? Connected to Luxonis Hub?

TO check the connection status our camera engineer use a python code to check connected status of the individual camera.

What python code do you use for monitoring?

He uses below Python code to check the status.

import sys, subprocess

try:

import depthai as dai

except ModuleNotFoundError:

subprocess.run([sys.executable, '-m', 'pip', 'install', 'depthai'])

import depthai as dai

def getPipeline():

pipeline = dai.Pipeline()

cam_rgb = pipeline.create(dai.node.ColorCamera)

cam_rgb.setBoardSocket(dai.CameraBoardSocket.CAM_A)

cam_rgb.setResolution(dai.ColorCameraProperties.SensorResolution.THE_1080_P)

cam_rgb.setPreviewSize(1920, 1080)

cam_rgb.setFps(25)

xout_rgb = pipeline.create(dai.node.XLinkOut)

xout_rgb.setStreamName('rgb')

cam_rgb.preview.link(xout_rgb.input)

return pipeline

'Change False to True if you want to test if all 48 cameras are discoverable'

if False:

device_infos = dai.Device.getAllAvailableDevices()

while len(device_infos) < 48:

    device_infos = dai.Device.getAllAvailableDevices()

    print('Searching for DepthAI Devices.....found {:>2d} devices'.format(len(device_infos)), end='\\r')

print('Searching for DepthAI Devices.....found {:>2d} devices'.format(len(device_infos)))

print('found all devices!')

ip_addresses = [

'\*.\*.\*.160', '\*.\*.\*.161', '\*.\*.\*.162', '\*.\*.\*.163', '\*.\*.\*.164', '\*.\*.\*.165', '\*.\*.\*.166', '\*.\*.\*.167', '\*.\*.\*.168', '\*.\*.\*.169', '\*.\*.\*.170', '\*.\*.\*.171',

'\*.\*.\*.148', '\*.\*.\*.149', '\*.\*.\*.150', '\*.\*.\*.151', '\*.\*.\*.152', '\*.\*.\*.153', '\*.\*.\*.154', '\*.\*.\*.155', '\*.\*.\*.156', '\*.\*.\*.157', '\*.\*.\*.158', '\*.\*.\*.159',

'\*.\*.\*.113', '\*.\*.\*.114', '\*.\*.\*.115', '\*.\*.\*.119', '\*.\*.\*.120', '\*.\*.\*.121', '\*.\*.\*.122', '\*.\*.\*.126', '\*.\*.\*.128', '\*.\*.\*.132', '\*.\*.\*.134', '\*.\*.\*.135',

'\*.\*.\*.136', '\*.\*.\*.137', '\*.\*.\*.138', '\*.\*.\*.139', '\*.\*.\*.140', '\*.\*.\*.141', '\*.\*.\*.142', '\*.\*.\*.143', '\*.\*.\*.144', '\*.\*.\*.145', '\*.\*.\*.146', '\*.\*.\*.147',

]

disconnected = []

for ip in ip_addresses:

device_info = dai.DeviceInfo(ip)

try:

    device = dai.Device(device_info)

except RuntimeError:

    disconnected.append(ip)

print(disconnected)

There is any software available to upgrade the IP camera software?

There is any way we can login into the individual camera and check the respective hardware logs?

How to resolve such issue.. May i get ant contact to reach their support?

    It is not a single device , It problem for the entire cameras pool. Both server and Camera are in same subnets and there is no firewall in between.

    Hi @krishnakumar

    krishnakumar device_infos = dai.Device.getAllAvailableDevices()

    Does this return a list of devices? Could you also post the terminal output of the script you are running?
    Is this perhaps run inside a docker container or a similar virtualization software?

    Thanks,
    Jaka

    *********************************************************************************************************************

    [2024-04-04 02:37:58]

    "RuntimeError: Communication exception - possible device error/misconfiguration. Original message 'Couldn't read data from stream: '1080p' (X_LINK_ERROR)'"

    From what I have found this is a general use error. Possibly unable to establish connection or power issues.

    *********************************************************************************************************************

    [2024-04-04 02:37:58]

    camera disconnected -- specific camera unknown

    *********************************************************************************************************************

    [2024-04-04 02:38:11]

    camera disconnected -- specific camera unknown

    *********************************************************************************************************************

    [2024-04-04 02:38:35]

    camera disconnected -- specific camera unknown

    *********************************************************************************************************************

    [2024-04-04 02:49:45]

    camera disconnected -- specific camera unknown

    *********************************************************************************************************************

    [2024-04-04 02:49:47]

    camera disconnected -- specific camera unknown

    *********************************************************************************************************************

    [2024-04-04 02:49:52]

    camera disconnected -- specific camera unknown

    *********************************************************************************************************************

    [2024-04-04 02:50:21]

    camera disconnected -- specific camera unknown

    *********************************************************************************************************************

    [2024-04-04 08:46:54]

    "RuntimeError: Failed to find device after booting, error message: X_LINK_DEVICE_NOT_FOUND"

    Device connection was dropped during bootup

    *********************************************************************************************************************

    [2024-04-04 08:48:52]

    "RuntimeError: Failed to find device after booting, error message: X_LINK_DEVICE_NOT_FOUND"

    Device connection was dropped during bootup

    *********************************************************************************************************************

    [2024-04-04 08:49:12]

    "RuntimeError: Failed to find device after booting, error message: X_LINK_DEVICE_NOT_FOUND"

    Device connection was dropped during bootup

    *********************************************************************************************************************

    [2024-04-04 08:53:32]

    camera disconnected -- specific camera unknown

    *********************************************************************************************************************

    [2024-04-04 08:53:44]

    camera disconnected -- specific camera unknown

    *********************************************************************************************************************

    [2024-04-04 08:53:49]

    camera disconnected -- specific camera unknown

    *********************************************************************************************************************

    [2024-04-04 08:54:12]

    camera disconnected -- specific camera unknown

      krishnakumar "RuntimeError: Failed to find device after booting, error message: X_LINK_DEVICE_NOT_FOUND"

      This is usually a power issue.

      krishnakumar "RuntimeError: Communication exception - possible device error/misconfiguration. Original message 'Couldn't read data from stream: '1080p' (X_LINK_ERROR)'"

      This is a pipeline issue. Possibly could also be related to bandwidth limitations.

      Hi @krishnakumar
      Have you checked and ensured possible causes I listed above are not the issue?
      I want to make sure we get at least one device working first.

      Thanks,
      Jaka