Stange values like 21845 from all sensors

I installed a second emontx3.
But I’m getting strange values as measurements.
What can be wrong?

21855, 21845, 21841, 2402.95, 218.45, 2184.5, 2184.5, 2184.5, 2184.5, 2184.5, 2184.5, 2184.5, 2184.5, 2184.5, 2184.5, 2129.1, 2143.1, 2147, 2184.4, 2184.5

The config is as follows:
[[14]]
nodename = emontx1
[[[rx]]]
names = P1, P2, P3, P4, batt, temp1, temp2, temp3, temp4, temp5, temp6,temp7,temp8,temp9,temp10,temp11,temp12,temp13,temp14,temp15,temp16,temp17,temp18,temp19,temp20,temp21,temp22,temp23,temp24,pulse
datacode = h
scales = 1,1,1, 0.11, 0.01, 0.1,0.1,0.1,0.1,0.1, 0.1,0.1,0.1,0.1,0.1, 0.1,0.1,0.1,0.1,0.1, 0.1,0.1,0.1,0.1,0.1, 0.1,0.1,0.1,0.1, 1
units = W,W,W,W, V, C,C,C,C,C, C,C,C,C,C, C,C,C,C,C, C,C,C,C,C, C,C,C,C, N

[[15]]
nodename = emontx2
[[[rx]]]
names = P5, P6, P7, P8, batt, temp25, temp26, temp27, temp28, temp29, temp30, temp31, temp32, temp33,temp34,temp35,temp36,temp37,temp38,temp39,temp40,temp41,temp42,temp43,temp44,temp45,temp46,temp47,temp48,pulse
datacode = h
scales = 1,1,1, 0.11, 0.01, 0.1,0.1,0.1,0.1,0.1, 0.1,0.1,0.1,0.1,0.1, 0.1,0.1,0.1,0.1,0.1, 0.1,0.1,0.1,0.1,0.1, 0.1,0.1,0.1,0.1, 1
units = W,W,W,W, V, C,C,C,C,C, C,C,C,C,C, C,C,C,C,C, C,C,C,C,C, C,C,C,C, N

It looks as if you have a new emonTx V3.4 purchased after 18/10/2019 and this uses the new ‘continuous monitoring’ sketch with a new data format; and you are using an old emonhub.conf that does not have the necessary node definition.

Replace the definitions for the node it is using - change [[15]] to the correct ID - with this:

[[15]]
    nodename = emontx3cm15
    [[[rx]]]
       names = MSG, Vrms, P1, P2, P3, P4, E1, E2, E3, E4, T1, T2, T3, pulse
       datacodes = L,h,h,h,h,h,L,L,L,L,h,h,h,L
       scales = 1,0.01,1,1,1,1,1,1,1,1,0.01,0.01,0.01,1
       units = n,V,W,W,W,W,Wh,Wh,Wh,Wh,C,C,C,p
       whitening = 1

You might also need to update emonCMS (or at least emonHub) for it to be able to handle the way the data is encoded.

Thx, I received the new emontx today.

Will this influence the older one that’s running as [[14]] ?
Can they work together on the same emonCMS ?

Yes - in exactly the same way that (say) an emonTH can work with an emonTx. The clue to the data encoding is
whitening = 1
If you don’t have that, you are back to the way the old “Discrete Sample” sketch works.

(In the new sketch, a long stream of unchanging data bits may allow the radios to lose synchronism. Therefore we ‘XOR’ each data byte with 0x55 before transmission and the same after reception to restore the original data. 0x5555 (two bytes, one integer) is 21845 decimal.)

I tried several ways to update the emonhub.
But they all failed.
And the emonhub is not measuring anymore because of “MainThread RFM2Pi thread is dead”.

This happend after an attempt to update by SSH. But this stopped after 443 not authorised error.
Deleting the new lines in the CONF file doesn’t solves this and is still reporting “MainThread RFM2Pi thread is dead”.

What is the best way to update?
For instance: make a backup, create a new SD card and than importing the backup?
And if so, where can I read how to create a new SD card with the latest software?

I’m not an emonCMS expert, so I’m afraid I can’t help. I think Brian’s about to come to your rescue.

From what version?

Can you click on the button Copy as Markdown next to Server Information on the Admin page and paste here please (no further formatting required).

My advice is to upgrade to the lastest version. emonSD-17Oct19 release

But look here first…

Emoncms Version low-write 9.8.3 2017.04.18

Yes update by SSH is not a good idea!

Best idea, Start with new SD card.

I installed the image on a 16GB SD card.
The emonhub started.
But I can’t do the update under admin. (http://emonpi/admin/view)
How can I perform the update?

Starting update via service-runner-update.sh (v3.0) >

Do you mean you downloaded a new EmonSD image from the link and flashed it to a new Card?

I have started a new Updating Guide here Updating with new SD Card · openenergymonitor/emonpi Wiki · GitHub

Yes, I downloaded the stable version and burned it with win32diskImager on the 16 GB SD card.
Besides this error I also have the following two errors.

The second one is showing after reading the backup from the previous SD card.

**Notice** : Trying to get property 'gravatar' of non-object in **/var/www/emoncms/Theme/basic/menu_view.php** on line **144**

The thrid one occures when I look at the graphs in the graphs edit screen and shows the following error:

**Warning** : Illegal string offset 'path' in  **/var/www/emoncms/Theme/basic/sidebar_view.php**  on line  **210**
**Warning** : Illegal string offset 'href' in  **/var/www/emoncms/Theme/basic/sidebar_view.php**  on line  **211**
**Warning** : Cannot assign an empty string to a string offset in  **/var/www/emoncms/Theme/basic/sidebar_view.php**  on line  **211**
**Warning** : Illegal string offset 'path' in  **/var/www/emoncms/Theme/basic/sidebar_view.php**  on line  **213**
**Warning** : Cannot assign an empty string to a string offset in  **/var/www/emoncms/Theme/basic/sidebar_view.php**  on line  **213**
**Warning** : Illegal string offset 'href' in  **/var/www/emoncms/Theme/basic/sidebar_view.php**  on line  **215**

You must have a bad ‘flash’. Is it a new card?

Download a new image and try again following this guide Updating with new SD Card · openenergymonitor/emonpi Wiki · GitHub

Thx, I will try the new build.
And yes, the SD card is a new Scandisk Ultra 16 GB card.

1 Like

Remember to wait a good while for the updates to complete, that is where most folk fall down on initial startup.

I’m already waiting more than one hour for the initial update.
The photo is showing what is shown the last hour.
The cursor is blinking (about 2 or three times per second).

Can I proceed now to import the data from the backup file or do I have to wait longer?

Hereby the outcome of the import with a Permission denied error:
Perhaps this was the reason?

Emoncms MYSQL database import...
Import feed meta data..
Restore phpfina and phptimeseries data folders...
Import emonhub.conf > /etc/emonhub/old.emohub.conf
mv: cannot move '/opt/openenergymonitor/data/import/emonhub.conf' to '/etc/emonhub/old.emonhub.conf': Permission denied
emonhub.conf files restored as old.emonhub.conf, original file not modified. Please merge manually.
Start with fresh config: copy NEW default emonpi.emonhub.conf:
cp /opt/openenergymonitor/emonhub/conf/emonpi.default.emonhub.conf /etc/emonhub/emonhub.conf
OK
Restarting emonhub...
Restarting feedwriter...
2019-10-17-12:30:37

Could be.

Is it all working now?

No, nothing seems to help yet.

Is it possible to use the new purchased emonTx V3 with the older emonhub?
For instance by substracting or deviding the values with 21845?
Or is there an another alternative to update the emonhub for the old an new emonTx V3?