souliss / soulissapp

SoulissApp is an Android Application for Souliss Framework
https://play.google.com/store/apps/details?id=it.angelic.soulissclient
MIT License
33 stars 33 forks source link

Sleep command for T16 isn't working #58

Closed plinioseniore closed 4 years ago

plinioseniore commented 9 years ago

The SLEEP command for the T16 isn't working, this is assumed to run once the input value is greater than Souliss_T1n_Timed (0x30) and runs for the difference in cycles between the input value and Souliss_T1n_Timed.

So if the input value is 0x31, the lamp will sleep after 1 execution cycle of the timer associated to T16.

Actually from the code I can't understand which value is transmitted while pressing the SLEEP command. In the souliss Typicals.h file has been included the Souliss_T1n_Timed_StdVal as 0x40 so that 10 execution cycle will expire between the press of the SLEEP and the real OFF of the light.

shineangelic commented 9 years ago

The button command depends on the associated android TAG:

btSleep.setTag(it.angelic.soulissclient.model.typicals.Constants.Souliss_T_related);

so, in this case, the sent command is 0xFF (Constants.Souliss_T_related)

plinioseniore commented 9 years ago

Ok, I will have a one more try.

Dario.

From Mobile.

shineangelic commented 9 years ago

can this be closed?

plinioseniore commented 9 years ago

Haven't yet tested, I'm closing the issue and will reopen it in case.

plinioseniore commented 9 years ago

SoulissApp sends 0xFF,0xFF,0xFF,0xFF, where only the 0xFF command was expected. The output value goes to GoodNight, but this is not shown in SoulissApp.

shineangelic commented 9 years ago

the goodnight is not shown, this is a missing feature.

But I believe the command to be correct, 2nd,3rd and 4th bytes represent the color chosen at the moment of the sleep command

plinioseniore commented 9 years ago

The node knows the last color, is enough just a single 0xff.

From Mobile.