Beta V0_6b1

5 years 6 months ago #84 by EasyIoT

PupazzoGnappo wrote: No way.
Tried to reboot, shutdown and boot, unplug, format sd card and the burn the image again.
Nothing to do. When adding a node( MySensor), it crashes


I noticed, that you send sketch name. Remove it from Arduino program, because it's not needed. Maybe this text is too long.
The topic has been locked.
5 years 6 months ago - 5 years 6 months ago #85 by PupazzoGnappo
Just found the problem. Nothing relative to cache ( that was clean) or sketch. I noticed that there was a problem with a dirty bit in raspbian start up . Solved that, solved (quite) all. Now system is working fine but does not start up at system boot anymore

Another problem i noticed is that , if i start my server after all my nodes are running, server has no problems. if i power a node while the system is running, system crashes

Contact me at : This email address is being protected from spambots. You need JavaScript enabled to view it.
Plain is smart. Smart is plain
The topic has been locked.
5 years 5 months ago - 5 years 5 months ago #87 by EasyIoT

PupazzoGnappo wrote: Just found the problem. Nothing relative to cache ( that was clean) or sketch. I noticed that there was a problem with a dirty bit in raspbian start up . Solved that, solved (quite) all. Now system is working fine but does not start up at system boot anymore

Another problem i noticed is that , if i start my server after all my nodes are running, server has no problems. if i power a node while the system is running, system crashes


I've checked. The server crashes if you send string longer than 24 characters. In your case you are sending gw.sendSketchInfo with longer text. The problem is actually bug in MySensors library, which send message length 31 instead of 24. I've added additional checks in my code and now works ok. It will be available in next release. For now you can shorten string messages and it will work without problems.

See forum.mysensors.org/topic/829/string-message-length/2
The topic has been locked.
5 years 5 months ago - 5 years 5 months ago #88 by PupazzoGnappo
Ok, thank you, gonna test is asap

UPDATE: Tested and working without issues

Contact me at : This email address is being protected from spambots. You need JavaScript enabled to view it.
Plain is smart. Smart is plain
The topic has been locked.
5 years 5 months ago #89 by leone2805
Hi,
I'm testing an S_DIMMER type sensor.
The sensor is correctly recognized as you can see here:

2015-01-17T09:30:20.8399210+01:00	DEBUG	MySensors				Rx: Sensor presentation NodeId:7,SensorId:0,type:S_DIMMER,data:1.4.1

But when I send a command it give me this error:

2015-01-17T09:38:04.6541190+01:00	DEBUG	MySensors	Send address:N7S0, property:Sensor.DimmerLevel, value:71
write
true
2015-01-17T09:38:04.6653260+01:00	DEBUG	MySensors				Send: 0-0-7-7s=0,c=1,t2,pt=0,l=2,st=ok:71
2015-01-17T09:38:04.6703260+01:00	DEBUG	MySensors				Read: 7-7-0 s=0,c=1,t=2,pt=0,l=2:71
2015-01-17T09:38:04.6778590+01:00	ERROR	MySensors				Invalid DataType(V_LIGHT), DeviceType (S_DIMMER) combination

It looks like you are sending a sensor type 2 (t=2, V_LIGHT) instead of a sensor type 3 (t=3, V_DIMMER) and Arduino node aknowledges with this wrong type.

Do you think this error can be corrected?

Thanks for your good work. I love this project :)
The topic has been locked.
5 years 5 months ago #90 by EasyIoT

leone2805 wrote: Hi,
I'm testing an S_DIMMER type sensor.
The sensor is correctly recognized as you can see here:

2015-01-17T09:30:20.8399210+01:00	DEBUG	MySensors				Rx: Sensor presentation NodeId:7,SensorId:0,type:S_DIMMER,data:1.4.1

But when I send a command it give me this error:

2015-01-17T09:38:04.6541190+01:00	DEBUG	MySensors	Send address:N7S0, property:Sensor.DimmerLevel, value:71
write
true
2015-01-17T09:38:04.6653260+01:00	DEBUG	MySensors				Send: 0-0-7-7s=0,c=1,t2,pt=0,l=2,st=ok:71
2015-01-17T09:38:04.6703260+01:00	DEBUG	MySensors				Read: 7-7-0 s=0,c=1,t=2,pt=0,l=2:71
2015-01-17T09:38:04.6778590+01:00	ERROR	MySensors				Invalid DataType(V_LIGHT), DeviceType (S_DIMMER) combination

It looks like you are sending a sensor type 2 (t=2, V_LIGHT) instead of a sensor type 3 (t=3, V_DIMMER) and Arduino node aknowledges with this wrong type.

Do you think this error can be corrected?

Thanks for your good work. I love this project :)


Hi, thx.

I've made update. Repalce existing MySensorsDriver.dll on Raspberry Pi with this one MySensorsDriver.dll

Pleas report if now is ok.
The topic has been locked.
Time to create page: 0.208 seconds

Forum latest

  • No posts to display.