ouster-lidar / ouster-sdk

Ouster, Inc. sample code
Other
464 stars 438 forks source link

[Question] Possibility of setting Ouster IP static #15

Closed YoshuaNava closed 5 years ago

YoshuaNava commented 6 years ago

Dear developers, I have some time using your sensor, and wondered if it is possible to go over the DHCP setup and just set the Ouster IP static? I have looked at the Software manual, and I can't find any info on this matter.

It would be interesting to be able to do this, in order to ease integration into robotics platforms that have static IPs in place for other sensors/modules.

Thank you.

dsb6063 commented 6 years ago

Hook your OS1 up to a router in dhcp mode. It will assign the address automatically, and should have a name OS1- or OS…

Turn off firewalls, and ping the IP address to test for connectivity.

That is the easiest way to get started while you configure the static settings.

Hi, Is it possible to go over the DHCP setup and just set the Ouster IP static? I have looked at the Software manual, and I can't find any info on this matter.

Thank you.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ouster-lidar/ouster_example/issues/15 , or mute the thread https://github.com/notifications/unsubscribe-auth/AY4ZQbDDc6QSK6aMml_1M7v5G9zcXFuZks5unynggaJpZM4X1umW . https://github.com/notifications/beacon/AY4ZQWPu990o42qs4XDLPZylWOt2Y3mpks5unynggaJpZM4X1umW.gif

YoshuaNava commented 6 years ago

Hey @dsb6063, Thank your for your feedback. However, I meant setting the IP static on the Ouster, not allowing it to get an address dynamically. Having a DHCP server always on is an overhead that I would like to skip, if possible.

dsb6063 commented 6 years ago

I can describe a few steps I used.

My initial environment was also challenging to setup for testing. I have a VMWare virtual machine, which required a network bridge configuration to work with the OS1. Having difficulty, I established a private network between two computers (using a local static ip address) verified that connection was working. Then, plugged one network end to the OS1 and powered up. The OS1 is another hardware device and will obtain any IP address assigned to it. Once powered up, you should be able to ping and http://ip address into the OS1 hardware device.

Once you get it working, then you can start the static configuration. I setup on several machines (ubuntu 14,16,and18 and Win 10). There is a dhcp service that I used to assist with one of my setups.

I did use a few software helpers:

dsb6063 commented 5 years ago

Querying the ouster OS1 by TPC by name (os1-991827000128) stopped responding. I had to use the ip address directly. I am adding this information as I have just encountered and forgot the simple solution.

For example, nc os1-991827000128 7501 did not respond with any commands get_config_txt, get_sensor_info. I had to use nc ip-address 7501.

Dashboard

System Information

boot_id

2154dafc-9b9c-4456-b632-039f4849a81a

ethaddr

BC:0F:A7:00:01:35

fw

ousteros-image-prod-aries-v1.7.0-20180907234232

hostname

os1-991827000128

keeper

v1.7.0

pn

840-101396-03

sn

991827000128

dmitrig commented 5 years ago

Currently the OS-1 only supports network configuration via DHCP.

The easiest way to connect directly to a client machine is to configure your ethernet interface with a static IP (e.g. enp0s31f6 with 192.168.100.1) and run dnsmasq from the command line:

$ sudo dnsmasq -C /dev/null -kd -F 192.168.100.50,192.168.100.200 -i enp0s31f6 --bind-dynamic

Hope that helps!

mrgransky commented 4 years ago

My system:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.6 LTS
Release:        16.04
Codename:       xenial

assign static IP address:

Network Connections -->  Wired Connection 1 --> Edit --> IPv4 Settings --> Methods: Manual:
    Address: 10.5.5.1
    Netmask: 255.255.255.0
    GateWay: 10.5.5.1
    Apply --> DONE!!!

Sensor works fine!

Problem: Whenever I turn on the sensor, my internet from WIFI disconnects! What am I doing wrong?

snakehaihai commented 3 years ago

My system:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.6 LTS
Release:        16.04
Codename:       xenial

assign static IP address:

Network Connections -->  Wired Connection 1 --> Edit --> IPv4 Settings --> Methods: Manual:
  Address: 10.5.5.1
  Netmask: 255.255.255.0
  GateWay: 10.5.5.1
  Apply --> DONE!!!

Sensor works fine!

Problem: Whenever I turn on the sensor, my internet from WIFI disconnects! What am I doing wrong?

DO NOT ENTER anything in the gate way. that allows you to use both LIDAR and wifi for global internet.

snakehaihai commented 3 years ago

NC method does not work for me as well. Any 1 has any solution? image

snakehaihai commented 3 years ago

found the solution

sudo arp-scan --interface=enp59s0 --localnet

will reveal where ouster is hidden at

image

This ouster is really good at making people suffer