Heater Meter (R Pi) loses wireless config on every reboot


 

Matt Fine

TVWBB Member
I am in the process of setting up a new heater meter and for the life of me, I cannot get the Raspberry Pi to stay on my wifi network. [NOTE: I am just playing with the R Pi now, there is no Heater Meter board plugged into it yet, just in case that matters.] I have tried configuring it through the web interface and also through SSH. With the correct settings it connects to my network and gets an IP from DHCP. Then, when I reboot, it comes back up in ap mode with 192.168.200.1 as its static IP. I tried the norestore thing and also set the permissions on the /etc/config/wireless file to read only. On reboot, the file remains read only yet somehow the contents have changed back to the default. same with the network file. see the time time stamps on the files below:


root@HeaterMeter1:/etc/config# ls -la
drwxrwxr-x 2 root root 1024 Jan 3 10:20 .
drwxrwxr-x 13 root root 1024 May 20 00:36 ..
-rw-r--r-- 1 root root 647 May 22 17:36 dhcp
-rw-r--r-- 1 root root 62 May 20 00:36 dropbear
-rw-r--r-- 1 root root 451 May 22 17:36 linkmeter
-rw-r--r-- 1 root root 646 Jan 3 10:20 luci
-rw-r--r-- 1 root root 1457 May 22 17:36 lucid
-r--r--r-- 1 root root 400 May 22 17:54 network
-rw-rw-r-- 1 root root 352 May 20 00:47 system
-rw-r--r-- 1 root root 680 Jan 3 10:20 ucitrack
-r--r--r-- 1 root root 349 May 22 17:51 wireless
root@HeaterMeter1:/etc/config# reboot
root@HeaterMeter1:/etc/config#
login as: root
root@192.168.1.116's password:


BusyBox v1.19.4 (2016-02-26 10:23:59 EST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
ATTITUDE ADJUSTMENT (Attitude Adjustment, r36422)
-----------------------------------------------------
* 1/4 oz Vodka Pour all ingredients into mixing
* 1/4 oz Gin tin with ice, strain into glass.
* 1/4 oz Amaretto
* 1/4 oz Triple sec
* 1/4 oz Peach schnapps
* 1/4 oz Sour mix
* 1 splash Cranberry juice
-----------------------------------------------------
root@HeaterMeter1:~# cd ../etc/config
root@HeaterMeter1:/etc/config# ls -la
drwxrwxr-x 2 root root 1024 Jan 3 10:20 .
drwxrwxr-x 13 root root 1024 May 20 00:36 ..
-rw-r--r-- 1 root root 647 May 22 17:55 dhcp
-rw-r--r-- 1 root root 62 May 20 00:36 dropbear
-rw-r--r-- 1 root root 451 May 22 17:55 linkmeter
-rw-r--r-- 1 root root 646 Jan 3 10:20 luci
-rw-r--r-- 1 root root 1457 May 22 17:55 lucid
-r--r--r-- 1 root root 465 May 22 17:55 network
-rw-rw-r-- 1 root root 352 May 20 00:47 system
-rw-r--r-- 1 root root 680 Jan 3 10:20 ucitrack
-r--r--r-- 1 root root 414 May 22 17:55 wireless
root@HeaterMeter1:/etc/config#



Anyone have any ideas or solutions?

BTW, Hardware is an old B with an Edimax connecting to a Linksys WRT 1900 ACS.
 
Could very easily be an SD card that isn't happy in the RasPi. Trying a new SD card would be the first and easiest thing to try.
 
I am just playing with the R Pi now, there is no Heater Meter board plugged into it yet, just in case that matters.
Actually I just ran into this mystery problem last week. There is a bug in the initialization of a new install that causes the configuration to be reset if there is no HeaterMeter installed on bootup. It is fixed in git, but you can work around it by deleting /etc/uci-defaults/linkmeter which is the script that is supposed to be deleted after the first bootup's config occurs but doesn't because it can't flash the avr.
 
Nevermind, I was able to remote in and try it. Looks like it worked!

I figured there might be a script running so I made the files read only thinking it would error out and I could find the culprit. Strange that the script was still able to write to the files.

Thanks for the help!
 
For now this seems to have solved many of my problems too.

Perhaps this should be a sticky post or make one noting this issue?

A huge thanks for all that have helped me out with their knowledge and input!
 

 

Back
Top