[Solved] No data from nodes after reboot
I have no data coming through the jeenodes, or the other receiver nodes.
I can see the data from the nodes via xap-serial and I know plugboard is running as I can still control the dim level on my lights via a plugboard script but I see no data being parsed by the jeenode, current cost, or weather station applets.
Any pointers to what I should be looking at? I've got a little rusty on this.
Data showing via xap-serial
xap-header
{
v=12
hop=1
uid=FF00D500
class=Serial.Comms
source=dbzoo.beaglebone.Serial
}
Serial.Received
{
port=/dev/ttyUSB2
data=OK 8 0 0 206 0
}
Oh and hello everybody, not been on for a while
And your jeeNodeApplet.lua is listening for this xap-serial data originating from this location?
function init()
monitor({ target="dbzoo.beaglebone.Serial", port="/dev/ttyUSB2" },
...
[ If the plugboard script and xap-serial are on the same host you can omit the target="" param and the lua code will figure this out for itself ]
ref: /usr/share/lua/5.1/xap/jeenode.lua
if target == nil then
-- Target an xap-serial on the host we are running on.
target = xap.buildXapAddress{instance="serial"}
end
I presume so as xap-serial would not have opened its comms channel otherwise.
Plugboard tells xap-serial to do this via the monitor(.... defn you see above.
Is plugboard running it didn't crash out did it?
See /var/log/xap-plugboard.log for a reason why if it did.
Best to debug before you reboot as these files would all be lost on reboot.
Brett
Good you got it sorted!
as for port addressing, I hear what your saying about unplugging but certainly on the pi I found them to switch just on reboot sometimes. They generally tended to be consistent about 90% of the time but would just switch every now and then and confuse the hell out of me.
anyhow, your all sorted now and good to have you back.. Must be the dark nights bringing everyone back on board :)
The filters should be case insensitive. I will look but that code has not changed for a very long time.
Brett
I caused a regression in the last change that I did to the portable branch when I added support for the graphite applet. This means that xap sections where not having their keys stored and access case insensitive.
The graphite applet truely does rock if you've not played with Graphite yet check it out
http://www.dbzoo.com/livebox/graphite
Brett
As my livebox power supply died I had to move everything to my beaglebone and in doing so I found their was indeed a bug with the filters in that they where not being case insensitive as they should have been. This same problem is in the livebox code too. I've push the changes for the portable release and will correct the livebox build in due course.
This happened when I made a change to allow the xap packets to be stored in their original case sensitive form and to make their accesses case-insensitive.
Brett
Hi Garry, Mark,
Not a linux guru here .. but when had similar issues with usb ports getting reordered found that udev rules can help out in such case. One can (re)name devices almost as you like. Newer/better approach seems to be adding symlink with extra name - linking to usual kernel devices like ttyUSB1. These (descriptive?) link names you then can use in configuration instead, e.g. /dev/ttyUSBcc for Current Cost.
Below /etc/udev/rules.d/hah-usb.rules from my hah Pi for inspiration.
Br, Aivo
SUBSYSTEMS=="usb", ATTRS{idVendor}=="067b", ATTRS{idProduct}=="2303", SYMLINK+="ttyUSBcc"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ATTRS{serial}=="A601F4R3", SYMLINK+="ttyUSBjn"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ATTRS{serial}=="A9014XUE", SYMLINK+="ttyUSBjl"
Hi Mark,
has your usb2 / usb1 been switched round? I had this a lot when I moved to the pi.
I had to fix the adresses somehow, can't remember quite how just now. If this is your problem I'll find out how I did it!
garry