2024-06-19, 11:20 PM
Hello, here is my configuration:
- a Raspberry Pi 4 with OpenPlotter starts an AccessPoint (IP 10.10.10.1)
- a Raspberry Pi Zero W with TinyPilot, connects as a client to the OpenPlotter AP with a fixed IP address (10.10.10.2)
- a Windows PC also connects to the OpenPlotter AP with a dynamic IP address (DHCP)
OpenPlotter sees Pypilot (ping OK).
But the PC does not see Pypilot (ping KO).
I believe the problem is linked to the network mask which is different between OpenPlotter and the PC on the one hand (255.255.255.0) and Pypilot on the other hand (255.0.0.0).
I tried to modify the Pypilot mask by running the command :
and it worked: the PC saw Pypilot immediately. But on reboot, the config is lost, the problem returns.
I see that in the /opt/networking.sh file there is no network mask specified:
Would it be possible that by default Pypilot uses the same netmask as OpenPlotter? Or failing that, that the network mask be configurable in the same way as the fixed IP address?
Unless there is another option to solve my problem?
NB: I do not want to associate an IP address with TinyPilot from its Mac address, in the OpenPlotter config
On the other hand, I have a question: my understanding of the "AP and client" option is that Pypilot first attempts to connect as a client to the configured AP. And if he doesn't succeed, he starts his own AP.
Is this really how it works?
Thanks !
- a Raspberry Pi 4 with OpenPlotter starts an AccessPoint (IP 10.10.10.1)
- a Raspberry Pi Zero W with TinyPilot, connects as a client to the OpenPlotter AP with a fixed IP address (10.10.10.2)
- a Windows PC also connects to the OpenPlotter AP with a dynamic IP address (DHCP)
OpenPlotter sees Pypilot (ping OK).
But the PC does not see Pypilot (ping KO).
I believe the problem is linked to the network mask which is different between OpenPlotter and the PC on the one hand (255.255.255.0) and Pypilot on the other hand (255.0.0.0).
I tried to modify the Pypilot mask by running the command :
Code:
sudo ifconfig wlan0 10.10.10.2 netmask 255.255.255.0
I see that in the /opt/networking.sh file there is no network mask specified:
Code:
ifconfig wlan0 $CLIENT_ADDRESS
Would it be possible that by default Pypilot uses the same netmask as OpenPlotter? Or failing that, that the network mask be configurable in the same way as the fixed IP address?
Unless there is another option to solve my problem?
NB: I do not want to associate an IP address with TinyPilot from its Mac address, in the OpenPlotter config
On the other hand, I have a question: my understanding of the "AP and client" option is that Pypilot first attempts to connect as a client to the configured AP. And if he doesn't succeed, he starts his own AP.
Is this really how it works?
Thanks !