@jkandasa
OHHHH wonderfull !!! I will try this !
Many thanks !
Posts made by Tetnobic
-
RE: Send Payload but NACK
-
RE: Many Hearbeat request at the same time
@jkandasa Thanks for your response
I already use "aliveCheckInterval" propreties with value 7 (minutes)
(you have create this after my request : http://forum.mycontroller.org/topic/109/best-way-to-check-status-of-mysensors-sleeping-node/3 , many thanks for this)
But my Smart Sleep nodes have a particular way of doing his jobs :
They sleep during X seconds for an number of loop without Smart Sleep (so no heartbeat sended, no wait for response) and after T (threshold) loops , do a smart sleep, then restart his cycle...
For example :
My Node do normal sleep during 300 seconds (X) with threshold 10, so after 10 loop of normal sleep, it makes a smart sleep (heartbeat send + wait 2 seconds).I do this for battery saving (less wait time).
Maybe I'm wrong and I should always do smart sleep....
Or set aliveCheckInterval to 50 minutes (300*10) -
Many Hearbeat request at the same time
Hi,
My nodes are only Smart sleep enabled with sleep duration of 60 minutes
When they wake up, nodes do job and send heartbeat response before sleep.
At this moment, MyController ask many Heartbeat request (I think they are queud during 60 minutes).
Sample log :mysgw: TSF:MSG:READ,4-4-0,s=255,c=3,t=22,pt=5,l=4,sg=0:206897 mysgw: TSF:MSG:SEND,0-0-4-4,s=255,c=3,t=18,pt=0,l=0,sg=0,ft=0,st=OK: mysgw: TSF:MSG:READ,4-4-0,s=255,c=3,t=22,pt=5,l=4,sg=0:207241 mysgw: TSF:MSG:SEND,0-0-4-4,s=255,c=3,t=18,pt=0,l=0,sg=0,ft=0,st=OK: mysgw: TSF:MSG:READ,4-4-0,s=255,c=3,t=22,pt=5,l=4,sg=0:207291 mysgw: TSF:MSG:SEND,0-0-4-4,s=255,c=3,t=18,pt=0,l=0,sg=0,ft=0,st=OK: mysgw: TSF:MSG:READ,4-4-0,s=255,c=3,t=22,pt=5,l=4,sg=0:207438 mysgw: TSF:MSG:SEND,0-0-4-4,s=255,c=3,t=18,pt=0,l=0,sg=0,ft=0,st=OK: mysgw: TSF:MSG:READ,4-4-0,s=255,c=3,t=22,pt=5,l=4,sg=0:207471
Here they a way to remove duplicate call in queue ?
Thanks -
RE: Send Payload but NACK
Hi,
I have only Nodes with Smart sleep enabled. So when I send payloads, they are queued until nodes heartbeat back.
Is there a way to see this queue ?
Thanks in advance -
RE: Send Payload but NACK
@jkandasa
Yes it's practically fixed with 2000ms
99% of payload are send and ACK, sometimes payload are NACK , I think it's my gateway (Raspberry Pi with NRF24L01+ on serial with mycontroller on it too)
So I still have a way of knowing if payload is ACK (other than show in Mysensors LOG ?) -
Send Payload but NACK
Hi,
I have a battery node with Option "Smart sleep" enabled. (I use NRF24L01+ with auto ack)
So my sensor wake up, does his job, send heartbeat wait for smart sleep wait duration (in mysensors/myconfig.h : MY_SMART_SLEEP_WAIT_DURATION_MS (500ul)) then sleepDuring this sleep wait, mycontroller try to send payload (for change status : Message Type:V_STATUS to 1) and sometimes is not fast enought
I see this log in mysensors :mysgw: !TSF:MSG:SEND,0-0-1-1,s=1,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=NACK:1
We see that send status is : st=NACK:1, so my node not receive this payload
But mycontroller keep the new value of this var (1) instead of keep 0 (because NACK)
Is there a solution for this case ?Thanks
-
RE: Grouped sensors graph
@jkandasa I test the latest SNAPSHOT and it works like a charm !!!
Thanks a lot -
RE: Grouped sensors graph
@jkandasa Unfortunately, I just tried the latest build with this feature, and it does not work for me,
my sensors and nodes have exactly the same name (It's the same source code).....
-
RE: Best Way to check Status of MySensors Sleeping Node
@jkandasa Ohhh wonderfull !
You are incredible !!Many Thanks ! I will test this when I have time
Tanks !!! -
RE: Best Way to check Status of MySensors Sleeping Node
@jkandasa
No problem, I understand that this is really a specific request
I will continue to use my script, it worksThanks for your response
-
RE: Best Way to check Status of MySensors Sleeping Node
@jkandasa
Thanks for your response
I see thisNodes alive check interval
settings but it's for "all the nodes", is there a way to configure this by node ? because I have several nodes that do not sleep the same duration, some 5 minutes, some 1 hour,....
And even more, the duration of sleep can be dynamic (for exemple every 5 minutes during daylight, 1 hour during nights...)
I know it is a bit complicated -
Best Way to check Status of MySensors Sleeping Node
Hi,
I have a MySensors Temperature/Humidity Sleeping Node.
When start, it send Temerature/Humidity values, then sleep for XXX seconds, wake up , send values and sleep....
The XXX seconds is a config var in my node and sended to controller at start.Sometimes for many reasons (interference, xxxx...), my node send data but mycontroller don't receive....
I would like to check this...when after XXX seconds, no data from my node is receive....How can I do this ?
Actually I use this condition script : (with Script bindings :{"sbNodeEUI":1}
)var myImports = new JavaImporter(java.util, java.util.Calendar, java.lang, java.text); with(myImports) { nodesFilters = new HashMap(); nodesFilters.put("eui", sbNodeEUI); node = mcApi.node().getAll(nodesFilters).data[0]; sensorsFilters = new HashMap(); sensorsFilters.put("nodeId", node.id); sensorsFilters.put("sensorId", "1"); refreshTime = Long.parseLong(mcApi.sensor().getAll(sensorsFilters).data[0].getVariables()[1].value); // LastSeen + SleepDuration + Gap var estimedTime = Long.parseLong(node.lastSeen) + (refreshTime*1000) + 20000; var currentTime = Calendar.getInstance().getTime().getTime(); mcResult = currentTime > estimedTime; }
Is there a best way ?
With "status" of node ? But what's the mycontroller condition that set this status to down?Thanks
-
RE: 0.0.3.Final pre-release - volunteers required to test
@jkandasa
I try your last SNAPSHOT
It works !!2017-01-17 11:21:22,144 INFO [Acme.Utils.ThreadPool(4)-PooledThread: Acme.Serve.Serve$ServeConnection@1084a4e] [org.mycontroller.standalone.api.BackupApi:219] Restore triggered. 2017-01-17 11:21:25,163 INFO [Thread-15] [org.mycontroller.standalone.backup.Restore:69] About to restore a backup, BackupFile(name=on-demand_mc_backup_h2db_embedded-2017_01_17-09_35_06.zip, canonicalPath=/home/pi/workspace_domotic/MyController/mycontroller/backup/on-demand_mc_backup_h2db_embedded-2017_01_17-09_35_06.zip, timestamp=1484648459000, size=65615) [Tue Jan 17 11:21:25 CET 2017] Accept: java.net.SocketException: Socket closed 2017-01-17 11:21:25,524 INFO [Thread-15] [org.mycontroller.standalone.mqttbroker.MoquetteMqttBroker:66] MQTT Broker has been stopped successfully 2017-01-17 11:21:28,259 WARN [MyController.org Shutdown-Hook] [org.knowm.sundial.SundialJobScheduler:140] Scheduler has not yet been created!!! Call "createScheduler" first. 2017-01-17 11:21:28,290 INFO [MyController.org Shutdown-Hook] [org.mycontroller.standalone.AppShutdownHook:36] Bye, Have a nice day! See you soon 2017-01-17 11:21:35,797 INFO [Thread-15] [org.mycontroller.standalone.db.DataBaseUtils:285] Database restore completed. Database url:jdbc:h2:file:../conf/mycontroller;MVCC=TRUE, Restored file name:/home/pi/workspace_domotic/MyController/mycontroller/bin/tmp/on-demand_mc_backup_h2db_embedded-2017_01_17-09_35_06/database_backup.zip 2017-01-17 11:21:35,817 INFO [Thread-15] [org.mycontroller.standalone.backup.Restore:153] Restore completed successfully. Start 'MyController.org' server manually
Data retore complete log message is show 7 seconds after shutdown message log, but it works
Sorry for the inconvenience
And many thanks for your reactivity -
RE: 0.0.3.Final pre-release - volunteers required to test
If I backup the "empty" new release, and try to restore, same problem....
I think the problem not comes from my backup file -
RE: 0.0.3.Final pre-release - volunteers required to test
@jkandasa
Problem with mail, you can download the backup file here :
**.... -
RE: 0.0.3.Final pre-release - volunteers required to test
With the last release : Application information: [Version:0.0.3.Final-SNAPSHOT, Database version:1.03.05 - 2016 Nov 18, Built on:2017-01-16T22:09:06+0530, Git commit:21d0b3a52ab32e475afb53e0a832146ca678b015:development]
when I try to restore database, I have this in log :
2017-01-17 09:52:35,950 INFO [main] [org.mycontroller.standalone.StartApp:108] MyController.org server started in [54734] ms 2017-01-17 09:57:45,673 INFO [Acme.Utils.ThreadPool(5)-PooledThread: Acme.Serve.Serve$ServeConnection@197cc8d] [org.mycontroller.standalone.api.BackupApi:219] Restore triggered. 2017-01-17 09:57:48,682 INFO [Thread-15] [org.mycontroller.standalone.backup.Restore:69] About to restore a backup, BackupFile(name=on-demand_mc_backup_h2db_embedded-2017_01_17-09_35_06.zip, canonicalPath=/mycontroller/backup/on-demand_mc_backup_h2db_embedded-2017_01_17-09_35_06.zip, timestamp=1484642759000, size=65615) [Tue Jan 17 09:57:48 CET 2017] Accept: java.net.SocketException: Socket closed 2017-01-17 09:57:49,097 WARN [MyController.org Shutdown-Hook] [org.knowm.sundial.SundialJobScheduler:140] Scheduler has not yet been created!!! Call "createScheduler" first. 2017-01-17 09:57:49,117 INFO [MyController.org Shutdown-Hook] [org.mycontroller.standalone.AppShutdownHook:36] Bye, Have a nice day! See you soon
And nothing is restored...
Do you have an idea ?
Thanks -
RE: Grouped sensors graph
@jkandasa Ticket created !
Many thanks to you for spend time on our problems -
RE: Grouped sensors graph
@jkandasa oh oh indeed when I change Sensor Name (from "Temperature" to "Temperature2") :
it works !!!!
But a bit annoying because all my node use exactly the same code ("sketch")...., so the same :
....
present(NODE_CHILD_ID_TEMP, S_TEMP, "Temperature", false);
..... -
RE: Grouped sensors graph
@jkandasa No error on browser console, I use Google Chrome too
I supposed it's because the values of the 2 temperature sensor are always nears...
In graph point overlay, I have this :But with more difference,
No Orange graph