OpenMarine

Full Version: wlan scanner
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I have 4 sensor controllers attached to the AP of OP3/64bit.
Data is viewed and analyzed by SignalK and InfluxDB.

After updates (SignalK/OP/Raspbian) their IPs tend to change.

Is there any idea to create or attach an IP-scanner for example in the "Addresses and Ports"-section of the "Network"-app ?

wbr,
tjm
With esp32's I set a fixed I address as the device connects to the Pi AP. Is that possible? What sets up the wifi in the sensors?
(2022-12-04, 07:35 PM)PaddyB Wrote: [ -> ]With esp32's I set a fixed I address as the device connects to the Pi AP. Is that possible? What sets up the wifi in the sensors?

Thanks for your answer PaddyB !

The sensors are controlled by Wemos D1 mini-controller, the program of the Wemos is coded by me in C using Platormio-IDE.
The libraries of the IDE establish the wifi connection, the connection function takes SSID and password as parameters.

There is also the possibility to send the IP of the Wemos-controller via SignalK, so my suggestion is not a life or death question.

Just a suggestion, but maybe I am just lazy... Big Grin .

Now I use wifi scanner of my Android phone to check the IPs of the controllers after updates.
And the IPs I need to send control commands via udp to them.

wbr,
tjm
(2022-12-04, 09:35 PM)tjm Wrote: [ -> ]The sensors are controlled by Wemos D1 mini-controller, the program of the Wemos is coded by me in C using Platormio-IDE.
The libraries of the IDE establish the wifi connection, the connection function takes SSID and password as parameters.

sorry , I use micropython now, been a while since I used C. In micropython there's a command to set a fixed IP address. Just one line

self.sta_if.ifconfig((config["IP_Address"], '255.255.255.0', '10.10.10.1', '10.10.10.1'))

guessing it's likely the C library will have similar?
If I were you I would either configure the DHCP server to assign the sensors persistent addresses or have the sensors use unique and persistent mdns hostnames and connect to them via those.

Scanning the network and reassigning their identities manually is not very handy, as you’d have to do that every time addresses change.
(2022-12-05, 07:35 AM)tkurki Wrote: [ -> ]If I were you I would either configure the DHCP server to assign the sensors persistent addresses or have the sensors use unique and persistent mdns hostnames and connect to them via those.

Scanning the network and reassigning their identities manually is not very handy, as you’d have to do that every time addresses change.

OK, thank you both for your advice. 
wbr, 
tjm