Plugboard crashing after adding another node

Since I've added my WH1080 node to the HAH I seem to be getting plugboard crashes due to receiving data from the wrong serial ports.

Sometimes plugboard just stops, other times I do actually get an error like this...

lua: /usr/share/lua/5.1/xap/init.lua:395:

Member for

14 years 5 months

mark_baldwin

12 years 11 months ago

As you can see from the above post, the data that is being received is a combination of a roomnode and the code from the WH1080

data=OK 2 41 0 19WH1080:2619:2 0 port=/dev/ttyUSB0

The WH1080 is on /dev/ttyUSB2 so why does it appear here?

Member for

15 years 1 month

allanayr

12 years 11 months ago

I know nothing, but just a quick observation, why is it using the plugboard.lua from /etc_ro_fs/plugboard rather than the one in /etc/plugboard ?

Member for

14 years 5 months

mark_baldwin

12 years 11 months ago

Hello Allan

All I can say is I run xap-plugboard to debug

Here is the latest crash.....

lua: /usr/share/lua/5.1/xap/init.lua:395: /usr/share/lua/5.1/xap/jeenode.lua:51: invalid value (nil) at index 1 in table for 'concat'

xAP Message being processed.

xap-header

{

uid=FF00D500

source=dbzoo.livebox.Serial

hop=1

class=Serial.Comms

v=12

}

serial.received

{

data=<msg><src>CC128-v0.12</src><dsb>01238</dsb><time>19:15:04</time><tmpr>19.8</tmpr><sensor>0</sensor><id>03596</id><type>1</OK 3 18type><ch1><watts>00 0 188 0

port=/dev/ttyUSB0

 

}

Member for

14 years 5 months

mark_baldwin

12 years 11 months ago

I don't have a local copy of jeenode.lua and only have one HAH

The first one is looking at port 0 but getting data from the WH1080 which is on port 2

The second one is looking at port 0 but getting data from the CC128 which is connected to port 1

On the plus side, plugboard has been running for almost 24hrs now