No contact with Mysensors anymore

6 years 8 months ago #181 by Olov
:( Hi,
After update of RPI to latest version IoT v0.6 i cannot get contact with sensors.
Se logfiles. ( i have emptied the cash in Google chrome.
Please have a look and point me in some direction.
/olov
Attachments:

Please Log in or Create an account to join the conversation.

6 years 8 months ago #182 by EasyIoT

Olov wrote: :( Hi,
After update of RPI to latest version IoT v0.6 i cannot get contact with sensors.
Se logfiles. ( i have emptied the cash in Google chrome.
Please have a look and point me in some direction.
/olov


Hi, I've just double checked. Downloaded latest version and installed on my production server. Everything works OK.
Did you check in console mode? Enable MySensors debug and stop server (config->general settings->server shutdown) and then try to run in console mode: sudo mono EasyIoT.exe

You should see something like this:

Please Log in or Create an account to join the conversation.

6 years 8 months ago #195 by Olov
Hello, I have reinstalled both the RPI and EasyIot but with no sucess please see attached files.
It seems like the radio on the RPI cant recieve any data.
The webinterface seems to talk alright to the RPI but thats all that happens.
Best regards Olov
Attachments:

Please Log in or Create an account to join the conversation.

6 years 8 months ago #196 by EasyIoT

Olov wrote: Hello, I have reinstalled both the RPI and EasyIot but with no sucess please see attached files.
It seems like the radio on the RPI cant recieve any data.
The webinterface seems to talk alright to the RPI but thats all that happens.
Best regards Olov


Hmm. It looks like NRF was properly initialized. Are you sure that NRF channel or baud rate are correct?
One more idea. Try to download RPi image. It for sure works on my development system.

Please Log in or Create an account to join the conversation.

6 years 8 months ago #206 by Olov
Hello,
I have now downloaded the image but it still doesnot work, though it now seems to get some messages 1 old sensor tested and one unconfigured but no one accepted.
Se below
pi@raspberrypi ~/easyiot $ sudo mono EasyIoT.exe
2015-01-31T08:59:17.1087280+01:00 INFO System System started
31-01-2015-08-59-22 Web service started
31-01-2015-08-59-24 Listening on port(s):80, 1301
2015-01-31T08:59:24.1339930+01:00 DEBUG MySensors MySensors Connect
================ SPI Configuration ================
CSN Pin = CE0 (PI Hardware Driven)
CE Pin = Custom GPIO25
Clock Speed = 8 Mhz
================ NRF Configuration ================
STATUS = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
RX_ADDR_P0-1 = 0xa8a8e1fc00 0xa8a8e1fc00
RX_ADDR_P2-5 = 0xff 0xc4 0xc5 0xc6
TX_ADDR = 0xa8a8e1fcff
RX_PW_P0-6 = 0x20 0x20 0x20 0x00 0x00 0x00
EN_AA = 0x3b
EN_RXADDR = 0x07
RF_CH = 0x5a
RF_SETUP = 0x27
CONFIG = 0x0e
DYNPD/FEATURE = 0x3f 0x06
Data Rate = 250KBPS
Model = nRF24L01+
CRC Length = 16 bits
PA Power = PA_MAX
2015-01-31T08:59:24.3097870+01:00 DEBUG MySensors Mysensors Start driver.
2015-01-31T08:59:25.0428360+01:00 DEBUG Esp8266 ESP8266 Connect
2015-01-31T08:59:25.0997160+01:00 DEBUG Esp8266 Server Started
31-01-2015-08-59-31 [192.168.0.5] user:[admin] authentication success: authentication success
2015-01-31T08:59:36.5213910+01:00 INFO EasyIoTWebinterface EasyIoTConfig Module List /Api/EasyIoT/Config/Module/List//?_=1422691216348
2015-01-31T08:59:36.9534860+01:00 INFO EasyIoTWebinterface EasyIoTConfig Group List /Api/EasyIoT/Config/Group/List/?_=1422691216349
2015-01-31T08:59:42.8688790+01:00 INFO EasyIoTWebinterface EasyIoTConfig Webinterface IsAdmin /Api/EasyIoT/Config/Webinterface/IsAdmin//?_=1422691216350
2015-01-31T08:59:50.6902110+01:00 INFO EasyIoTWebinterface EasyIoTConfig Driver MySensors /Api/EasyIoT/Config/Driver/MySensors/GetIsEnabled//?_=1422691216351
2015-01-31T08:59:50.7187540+01:00 INFO EasyIoTWebinterface EasyIoTConfig Driver MySensors /Api/EasyIoT/Config/Driver/MySensors/GetChannel//?_=1422691216352
2015-01-31T08:59:50.7393050+01:00 INFO EasyIoTWebinterface EasyIoTConfig Driver MySensors /Api/EasyIoT/Config/Driver/MySensors/GetBaseRadioId//?_=1422691216353
2015-01-31T08:59:50.7675640+01:00 INFO EasyIoTWebinterface EasyIoTConfig Driver MySensors /Api/EasyIoT/Config/Driver/MySensors/GetDataRate//?_=1422691216354
2015-01-31T08:59:50.7876710+01:00 INFO EasyIoTWebinterface EasyIoTConfig Driver MySensors /Api/EasyIoT/Config/Driver/MySensors/GetPowerAmplifierLevel//?_=1422691216355
2015-01-31T08:59:50.8072290+01:00 INFO EasyIoTWebinterface EasyIoTConfig Driver MySensors /Api/EasyIoT/Config/Driver/MySensors/GetDebugMode//?_=1422691216356
2015-01-31T08:59:58.0298990+01:00 INFO EasyIoTWebinterface EasyIoTConfig Driver MySensors /Api/EasyIoT/Config/Driver/MySensors/AddNode//
2015-01-31T09:01:04.0823260+01:00 INFO EasyIoTWebinterface EasyIoTConfig Module List /Api/EasyIoT/Config/Module/List//?_=1422691216357
2015-01-31T09:02:16.2337980+01:00 INFO EasyIoTWebinterface EasyIoTConfig Driver MySensors /Api/EasyIoT/Config/Driver/MySensors/AddNode//
2015-01-31T09:02:54.1043200+01:00 INFO EasyIoTWebinterface EasyIoTConfig Driver MySensors /Api/EasyIoT/Config/Driver/MySensors/AddNode//
2015-01-31T09:03:34.1663280+01:00 INFO EasyIoTWebinterface EasyIoTConfig Driver MySensors /Api/EasyIoT/Config/Driver/MySensors/AddNode//
2015-01-31T09:03:39.0191900+01:00 DEBUG MySensors Read: 5-5-0 s=255,c=0,t=17,pt=0,l=5:1.4.1
2015-01-31T09:03:41.0649110+01:00 DEBUG MySensors Read: 5-5-0 s=255,c=3,t=11,pt=0,l=15:Temp, Pin, Batt
2015-01-31T09:03:43.3126220+01:00 DEBUG MySensors Read: 5-5-0 s=1,c=1,t=16,pt=2,l=2:1
2015-01-31T09:03:43.3200070+01:00 ERROR MySensors Rx: invalid node id. Node:5 ,sensor:1
2015-01-31T09:04:24.2490150+01:00 INFO EasyIoTWebinterface EasyIoTConfig Driver MySensors /Api/EasyIoT/Config/Driver/MySensors/AddNode//
2015-01-31T09:04:54.6766080+01:00 DEBUG MySensors Read: 255-255-0 s=255,c=3,t=3,pt=0,l=0:
2015-01-31T09:04:54.6837120+01:00 DEBUG MySensors Requesr for new node Id
2015-01-31T09:04:54.6888620+01:00 DEBUG MySensors Incuson mode disabled
2015-01-31T09:05:37.7863320+01:00 INFO EasyIoTWebinterface EasyIoTConfig Driver MySensors /Api/EasyIoT/Config/Driver/MySensors/AddNode//
2015-01-31T09:06:32.3767180+01:00 INFO EasyIoTWebinterface EasyIoTConfig General ShutdownServer /Api/EasyIoT/Config/General/ShutdownServer/
2015-01-31T09:06:33.4006690+01:00 INFO System System shutdown
31-01-2015-09-06-34HttpGateway: The object was used after being disposed. at System.Net.ListenerAsyncResult.GetContext () [0x00000] in <filename unknown>:0
at System.Net.HttpListener.EndGetContext (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0
at WebGateway.WebGateway.ListenerCallback (IAsyncResult result) [0x00000] in <filename unknown>:0
pi@raspberrypi ~/easyiot $

Please Log in or Create an account to join the conversation.

6 years 8 months ago #207 by EasyIoT

Olov wrote: Hello,
I have now downloaded the image but it still doesnot work, though it now seems to get some messages 1 old sensor tested and one unconfigured but no one accepted.
Se below
pi@raspberrypi ~/easyiot $ sudo mono EasyIoT.exe
2015-01-31T08:59:17.1087280+01:00 INFO System System started
31-01-2015-08-59-22 Web service started
31-01-2015-08-59-24 Listening on port(s):80, 1301
2015-01-31T08:59:24.1339930+01:00 DEBUG MySensors MySensors Connect
================ SPI Configuration ================
CSN Pin = CE0 (PI Hardware Driven)
CE Pin = Custom GPIO25
Clock Speed = 8 Mhz
================ NRF Configuration ================
STATUS = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
RX_ADDR_P0-1 = 0xa8a8e1fc00 0xa8a8e1fc00
RX_ADDR_P2-5 = 0xff 0xc4 0xc5 0xc6
TX_ADDR = 0xa8a8e1fcff
RX_PW_P0-6 = 0x20 0x20 0x20 0x00 0x00 0x00
EN_AA = 0x3b
EN_RXADDR = 0x07
RF_CH = 0x5a
RF_SETUP = 0x27
CONFIG = 0x0e
DYNPD/FEATURE = 0x3f 0x06
Data Rate = 250KBPS
Model = nRF24L01+
CRC Length = 16 bits
PA Power = PA_MAX
2015-01-31T08:59:24.3097870+01:00 DEBUG MySensors Mysensors Start driver.
2015-01-31T08:59:25.0428360+01:00 DEBUG Esp8266 ESP8266 Connect
2015-01-31T08:59:25.0997160+01:00 DEBUG Esp8266 Server Started
31-01-2015-08-59-31 [192.168.0.5] user:[admin] authentication success: authentication success
2015-01-31T08:59:36.5213910+01:00 INFO EasyIoTWebinterface EasyIoTConfig Module List /Api/EasyIoT/Config/Module/List//?_=1422691216348
2015-01-31T08:59:36.9534860+01:00 INFO EasyIoTWebinterface EasyIoTConfig Group List /Api/EasyIoT/Config/Group/List/?_=1422691216349
2015-01-31T08:59:42.8688790+01:00 INFO EasyIoTWebinterface EasyIoTConfig Webinterface IsAdmin /Api/EasyIoT/Config/Webinterface/IsAdmin//?_=1422691216350
2015-01-31T08:59:50.6902110+01:00 INFO EasyIoTWebinterface EasyIoTConfig Driver MySensors /Api/EasyIoT/Config/Driver/MySensors/GetIsEnabled//?_=1422691216351
2015-01-31T08:59:50.7187540+01:00 INFO EasyIoTWebinterface EasyIoTConfig Driver MySensors /Api/EasyIoT/Config/Driver/MySensors/GetChannel//?_=1422691216352
2015-01-31T08:59:50.7393050+01:00 INFO EasyIoTWebinterface EasyIoTConfig Driver MySensors /Api/EasyIoT/Config/Driver/MySensors/GetBaseRadioId//?_=1422691216353
2015-01-31T08:59:50.7675640+01:00 INFO EasyIoTWebinterface EasyIoTConfig Driver MySensors /Api/EasyIoT/Config/Driver/MySensors/GetDataRate//?_=1422691216354
2015-01-31T08:59:50.7876710+01:00 INFO EasyIoTWebinterface EasyIoTConfig Driver MySensors /Api/EasyIoT/Config/Driver/MySensors/GetPowerAmplifierLevel//?_=1422691216355
2015-01-31T08:59:50.8072290+01:00 INFO EasyIoTWebinterface EasyIoTConfig Driver MySensors /Api/EasyIoT/Config/Driver/MySensors/GetDebugMode//?_=1422691216356
2015-01-31T08:59:58.0298990+01:00 INFO EasyIoTWebinterface EasyIoTConfig Driver MySensors /Api/EasyIoT/Config/Driver/MySensors/AddNode//
2015-01-31T09:01:04.0823260+01:00 INFO EasyIoTWebinterface EasyIoTConfig Module List /Api/EasyIoT/Config/Module/List//?_=1422691216357
2015-01-31T09:02:16.2337980+01:00 INFO EasyIoTWebinterface EasyIoTConfig Driver MySensors /Api/EasyIoT/Config/Driver/MySensors/AddNode//
2015-01-31T09:02:54.1043200+01:00 INFO EasyIoTWebinterface EasyIoTConfig Driver MySensors /Api/EasyIoT/Config/Driver/MySensors/AddNode//
2015-01-31T09:03:34.1663280+01:00 INFO EasyIoTWebinterface EasyIoTConfig Driver MySensors /Api/EasyIoT/Config/Driver/MySensors/AddNode//
2015-01-31T09:03:39.0191900+01:00 DEBUG MySensors Read: 5-5-0 s=255,c=0,t=17,pt=0,l=5:1.4.1
2015-01-31T09:03:41.0649110+01:00 DEBUG MySensors Read: 5-5-0 s=255,c=3,t=11,pt=0,l=15:Temp, Pin, Batt
2015-01-31T09:03:43.3126220+01:00 DEBUG MySensors Read: 5-5-0 s=1,c=1,t=16,pt=2,l=2:1
2015-01-31T09:03:43.3200070+01:00 ERROR MySensors Rx: invalid node id. Node:5 ,sensor:1
2015-01-31T09:04:24.2490150+01:00 INFO EasyIoTWebinterface EasyIoTConfig Driver MySensors /Api/EasyIoT/Config/Driver/MySensors/AddNode//
2015-01-31T09:04:54.6766080+01:00 DEBUG MySensors Read: 255-255-0 s=255,c=3,t=3,pt=0,l=0:
2015-01-31T09:04:54.6837120+01:00 DEBUG MySensors Requesr for new node Id
2015-01-31T09:04:54.6888620+01:00 DEBUG MySensors Incuson mode disabled
2015-01-31T09:05:37.7863320+01:00 INFO EasyIoTWebinterface EasyIoTConfig Driver MySensors /Api/EasyIoT/Config/Driver/MySensors/AddNode//
2015-01-31T09:06:32.3767180+01:00 INFO EasyIoTWebinterface EasyIoTConfig General ShutdownServer /Api/EasyIoT/Config/General/ShutdownServer/
2015-01-31T09:06:33.4006690+01:00 INFO System System shutdown
31-01-2015-09-06-34HttpGateway: The object was used after being disposed. at System.Net.ListenerAsyncResult.GetContext () [0x00000] in <filename unknown>:0
at System.Net.HttpListener.EndGetContext (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0
at WebGateway.WebGateway.ListenerCallback (IAsyncResult result) [0x00000] in <filename unknown>:0
pi@raspberrypi ~/easyiot $



In debug info you can see, that driver received messages from your node, but your node is not added to server. You've pressed add node after node requested id - you can see this in debug:

2015-01-31T09:04:54.6766080+01:00 DEBUG MySensors Read: 255-255-0 s=255,c=3,t=3,pt=0,l=0:
2015-01-31T09:04:54.6837120+01:00 DEBUG MySensors Requesr for new node Id
2015-01-31T09:04:54.6888620+01:00 DEBUG MySensors Incuson mode disabled
2015-01-31T09:05:37.7863320+01:00 INFO EasyIoTWebinterface EasyIoTConfig Driver MySensors /Api/EasyIoT/Config/Driver/MySensors/AddNode//

Right procedure is to first press add new node and THEN switch on node. Try this and you will see it will works.

Please Log in or Create an account to join the conversation.

Time to create page: 0.259 seconds

Forum latest

  • No posts to display.