K7MDL2 / RF-Power-Meter-V1

RF wattmeter and Band Decoder on Arduino or PSoC5 modules with Python desktop monitoring and control app. Remote operation via USB Serial or Ethernet (new).
MIT License
27 stars 1 forks source link

Configurable IP Addresses #11

Open K7MDL2 opened 1 year ago

K7MDL2 commented 1 year ago

Currently the desktop target IP is hard coded. Change this to store the IP address in EEPROM. Add new remote command to remote store the address Add new remote command to read it by remote app.
Read and use the address on each bootup and use if Enet enabled.

K7MDL2 commented 1 year ago

Code added to store last 2 bytes into EEPROM. There are 2 IP Addresses. Destination for reporting and the units own assigned static IP (can be set for DHCP also). All are defaulted to $define values which are copied to variables and stored in EEPROM. It is possible to use the standard remote command process to update the last 2 bytes. The 3rd byte is common to both unit and remote, so this implies they are on the same subnet of 255 addresses. This is only because I had 3 unused bytes left in the 3rd row of EEPROM without major relocation and wipe and reload of existing field units EEPROM which impacts stored calibration data.

Next step is to test it which I have not had a chance to do yet.