ryan-brazeal-ufl / OpenPyLivox

Python3 driver for Livox lidar sensors
GNU General Public License v3.0
85 stars 44 forks source link

Error on demo.py #32

Closed ManChrys closed 1 year ago

ManChrys commented 3 years ago

Hello guys,

when im running the demo script i have the followin error!! Any help would be appreciated.

geo@geo-V530-15ICB:~/OpenPyLivox$ python livox_controller_demo.py 

Using computer IP address: XXXXXXXx

   *** Discovered a Livox sensor ***
           Type: Mid-40 
         Serial: XXXXXXXXXXXXXXXX
          IP(s): XXXXXX  (ID: 1)

Attempting to auto-connect to the Livox Mid-40  with S/N: XXXXXXXXXXxx
Traceback (most recent call last):
  File "livox_controller_demo.py", line 264, in <module>
    singleSensorDemo()
  File "livox_controller_demo.py", line 46, in singleSensorDemo
    connected = sensor.auto_connect()
  File "/home/geo/OpenPyLivox/openpylivox/openpylivox.py", line 2219, in auto_connect
    numFound = self.connect(self._computerIP, lidarSensorIPs[0], 0, 0, 0)
  File "/home/geo/OpenPyLivox/openpylivox/openpylivox.py", line 2079, in connect
    self._cmdSocket.sendto(connect_request, (self._sensorIP, 65000))
OSError: [Errno 22] Invalid argument
ryan-brazeal-ufl commented 3 years ago

Hello, Can you provide any further information on this? Can you adjust the demo script to attempt a manual connection vs. the auto-connection? Happy to help, just need some more information. Ryan

ManChrys commented 3 years ago

Hello @ryan-brazeal-ufl !!

Sorry for the late reply. I tried the manual connection and i had the following result.

Screenshot from 2021-07-26 10-08-28