Device Settings
Moderators: grovkillen, Stuntteam, TD-er
Device Settings
I have a NEO7M gps unit I have had setup with a Wemos D1 Mini. I am moving it over to an esp32 XIAO C3 module. When I first configure the device, there are options for the hw serial 1, 0 etc and options to pick the pins that I want to use them on. Once selected and submitted, the rx, tx pin settings are no longer there. The only way I can get to those settings again, is to delete the device and start over. The settings are there until I select them and then submit, then they are gone. I am running into trouble finding the right pin for the tx line from this gps module. I didnt know if this is an issue or something that was meant to be like that.
I am using the build ESP_Easy_mega_20241222_collection_G_ESP32c3_4M316k_CDC Dec 22 2024
Robby
I am using the build ESP_Easy_mega_20241222_collection_G_ESP32c3_4M316k_CDC Dec 22 2024
Robby
Re: Device Settings
Do you have JavaScript disabled in your browser settings?
Or maybe some conflicting extension?
Can you also try another browser?
Do you have some ESP with another type available for testing, like some ESP8266?
You don't need to connect anything, just add the GPS task (or any other task for a device with serial, like Senseair, PMSx003, etc) and see if it shows the same behavior as it should all be the same code.
Or maybe some conflicting extension?
Can you also try another browser?
Do you have some ESP with another type available for testing, like some ESP8266?
You don't need to connect anything, just add the GPS task (or any other task for a device with serial, like Senseair, PMSx003, etc) and see if it shows the same behavior as it should all be the same code.
Re: Device Settings
Sure, I will try a few things and post back with my findings.
Robby
Robby
Re: Device Settings
I think I have narrowed it down. The device setting for the serial port will be there until I set the remote unit to 255. I set the remote unit to 255 & submit and the serial port setup will disappear when the page refreshes. I can set the remote unit back to 0, submit it and the serial port settings will reappear back on the page. I accessed the module with firefox and edge. I tried it on a xiao esp32-c3 and a esp8266 d1 mini.
Robby
Robby
Re: Device Settings
Ah why do you change the 'remote unit' settings anyway?
That's for syncing with another node via ESPEasy p2p.
Maybe I should hide this option when no p2p controller is selected/enabled to make it more clear and cannot be set to a faulty state.
That's for syncing with another node via ESPEasy p2p.
Maybe I should hide this option when no p2p controller is selected/enabled to make it more clear and cannot be set to a faulty state.
Re: Device Settings
I use the p2p setup to sync the time with my other units from the gps unit.
Robby
Robby
Re: Device Settings
There are 2 levels of P2P communication and configuration.
The basic level is setting the P2P port on all units to the same value (8266 by default, the IANA registered port number for ESP P2P communication), that allows to send and receive basic data and commands across the units, and also contains current date/time of a unit.
The more advanced level is the use of the P2P Controller, that allows to share Device configurations in the P2P network, and automatically transmit that data from the device that collects the data, to all receiver/slave P2P devices. That's when that Remote Unit value is (automatically) configured.
Setting that Remote Unit field manually has some (unexpected? for the user) side-effects, that you already discovered
The basic level is setting the P2P port on all units to the same value (8266 by default, the IANA registered port number for ESP P2P communication), that allows to send and receive basic data and commands across the units, and also contains current date/time of a unit.
The more advanced level is the use of the P2P Controller, that allows to share Device configurations in the P2P network, and automatically transmit that data from the device that collects the data, to all receiver/slave P2P devices. That's when that Remote Unit value is (automatically) configured.
Setting that Remote Unit field manually has some (unexpected? for the user) side-effects, that you already discovered

/Ton (PayPal.me)
Re: Device Settings
So to use the gps module to set the time on my other espeasy devices, I do not need to configure the P2P on the controller configuration page? I just need to have the ESPEasy p2p UDP port set correctly on the advanced settings page?
The remote unit configuration is always on the device settings page regardless if I have the P2P controller configured. But now I am understanding that I just need to leave this as 0.
I will read up on the P2P and the P2P controller to get a little more familiar with them.
I thank you for the help!
Robby
The remote unit configuration is always on the device settings page regardless if I have the P2P controller configured. But now I am understanding that I just need to leave this as 0.
I will read up on the P2P and the P2P controller to get a little more familiar with them.
I thank you for the help!
Robby
Re: Device Settings
That's correct, the UDP configuration is enough to get the units to time-sync.
And I will hide the remote unit ID field when no p2p controller is enabled for a task. (for future builds)
And I will hide the remote unit ID field when no p2p controller is enabled for a task. (for future builds)
Re: Device Settings
Thanks again for the help!
Robby
Robby
Who is online
Users browsing this forum: No registered users and 0 guests