Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Static IP configuration doesn't work #2543

Closed
micheljung opened this issue Jun 5, 2023 · 2 comments · Fixed by #2544
Closed

[Bug]: Static IP configuration doesn't work #2543

micheljung opened this issue Jun 5, 2023 · 2 comments · Fixed by #2544
Labels
bug Something isn't working

Comments

@micheljung
Copy link
Contributor

Category

Other

Hardware

Rak4631

Firmware Version

2.1.11

Description

Connect a RAK with an ethernet module and DHCP enabled, it will successfully get an IP address (e. g. 192.168.1.223) and can be pinged.

Switch to the static IP configuration, set the exact same IP address (192.168.1.223) and appropriate subnet mask (255.255.255.0) and you can no longer ping the device.

Relevant log output

No response

@micheljung micheljung added the bug Something isn't working label Jun 5, 2023
@garthvh
Copy link
Member

garthvh commented Jun 5, 2023

Are you converting the ip address to an integer?

@micheljung
Copy link
Contributor Author

No, I'm setting the IP address via Android App and it enforces x.x.x.x

In the debug panel of the app, it correctly shows the IP configuration in decimal values.

micheljung added a commit to zso-pfhr/firmware that referenced this issue Jun 6, 2023
With static ethernet config, `status` stayed `0` which let the function return
without setting `ethEvent`. Therefore, `reconnectETH` was never called and network services were never started.

Fixes meshtastic#2543
micheljung added a commit to zso-pfhr/firmware that referenced this issue Jun 6, 2023
With static ethernet config, `status` stayed `0` which let the function return
without setting `ethEvent`. Therefore, `reconnectETH` was never called and network services were never started.

Fixes meshtastic#2543
micheljung added a commit to zso-pfhr/firmware that referenced this issue Jun 6, 2023
With static ethernet config, `status` stayed `0` which let the function return
without setting `ethEvent`. Therefore, `reconnectETH` was never called and network services were never started.

Also, the RAK4631 uses little endian, which is why the IP addresses need to be
converted before setting them.

Fixes meshtastic#2543
micheljung added a commit to zso-pfhr/firmware that referenced this issue Jun 6, 2023
With static ethernet config, `status` stayed `0` which let the function return
without setting `ethEvent`. Therefore, `reconnectETH` was never called and network services were never started.

Also, the RAK4631 uses little endian, which is why the IP addresses need to be
converted before setting them.

Fixes meshtastic#2543
micheljung added a commit to zso-pfhr/firmware that referenced this issue Jun 6, 2023
With static ethernet config, `status` stayed `0` which let the function return
without setting `ethEvent`. Therefore, `reconnectETH` was never called and network services were never started.

Also, the RAK4631 uses little endian, which is why the IP addresses need to be
converted before setting them.

Fixes meshtastic#2543
micheljung added a commit to zso-pfhr/firmware that referenced this issue Jun 6, 2023
With static ethernet config, `status` stayed `0` which let the function return
without setting `ethEvent`. Therefore, `reconnectETH` was never called and network services were never started.

Also, the RAK4631 uses little endian, which is why the IP addresses need to be
converted before setting them.

Fixes meshtastic#2543
thebentern pushed a commit that referenced this issue Jun 7, 2023
With static ethernet config, `status` stayed `0` which let the function return
without setting `ethEvent`. Therefore, `reconnectETH` was never called and network services were never started.

Also, the RAK4631 uses little endian, which is why the IP addresses need to be
converted before setting them.

Fixes #2543
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants