Typical 15 - Android Buttons Crossed (PROBLEM)

81 views
Skip to first unread message

Juan Pinto

unread,
Dec 10, 2013, 8:17:54 PM12/10/13
to sou...@googlegroups.com
Hola, intentare explicarlo en Español, el Italiano lo entiendo pero soy incapaz de atreverme a escribir :( :P

-He utilizado el ejemplo ssExtra_ex01_AndroidRGBLamp.ino OK
-He modificado el archivo RGB_LedLamp.cpp modificando los codigos leyendolos con IRrecvDemo.pde de la libreria IrRemote. OK

El problema es el siguiente: 
   Android                       -                              Efecto

-BrightUp:                                      enciende en Rojo -->Souliss_T1n_RGBLamp_R:
-BrightDown:                                 enciende en Verde-->Souliss_T1n_RGBLamp_G:

-Rojo (Red)                                 Souliss_T1n_RGBLamp_OffCmd:
-Azul (Blue)                                  Souliss_T1n_RGBLamp_OnCmd:

-OffCmd:                                      Souliss_T1n_RGBLamp_W:

-OnCmd, Verde (Green) y Blanco (White)  No hacen nada.

He leido con el irRemote una vez cargado el Souliss y efectivamente emite los codigos correctos, pero no asociados a los botones correspondientes.

El problema creo que es por los comandos que se reciben de la aplicacion de Android.

Un saludo

Juan Pinto

unread,
Dec 10, 2013, 8:28:46 PM12/10/13
to sou...@googlegroups.com
I'll try to explain in English, but not's my natural language. Sorry I understand Italian but don't write.

Starting with ssExtra_ex01_AndroidRGBLamp.ino I modified RGB_LedLamp.cpp with the codes readed with IrRemote library using the example IRrecvDemo.pde

The buttons Crossed are:
   Android                       -                              Effect

-BrightUp:                                      Souliss_T1n_RGBLamp_R:
-BrightDown:                                 Souliss_T1n_RGBLamp_G:

-Rojo (Red)                                 Souliss_T1n_RGBLamp_OffCmd:
-Azul (Blue)                                  Souliss_T1n_RGBLamp_OnCmd:

-OffCmd:                                      Souliss_T1n_RGBLamp_W:

-OnCmd, Verde (Green) y Blanco (White)  do nothing

I readed the codes again from Arduino with Souliss sketch loaded with another arduino and IRrecvDemo.pde and when I press for example BrightUp in Android the led Strip become to Red, when I press BrightDown goes to Green :x :(

Any help?

Ty


Di Maio, Dario

unread,
Dec 11, 2013, 3:32:53 AM12/11/13
to sou...@googlegroups.com

I guess that in your case you have a lamp with a different IR encoding. Basically the IR example just give out a code, that for your IR lamp has a different meaning.

You should capture the codes from your remote control and insert them in Souliss.

Let me know.

Regards,
Dario.

From mobile.

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Juan Pinto

unread,
Dec 11, 2013, 8:38:26 PM12/11/13
to sou...@googlegroups.com
No, that's not the problem, I coded correctly the file RGB_LedLamp.cpp with my codes, readed from IrRemote Library. 

Seems to be a problem with the Android App, when I touch ON, White or Green not send any Command and others be crossed. 

In android:
When i touch -Red sends ON command 0xFFE01F (file RGB_LedLamp.cpp) 
                       -Green sends 0xFF609F, 
                       -Bright UP sends 0xFF906F
                       -Bright Down sends 0xFF10EF
                       -OFF sends 0xFFD02F


Strobe Flash Fade Smooth and other colors are Ok.

Seems to be a bug in Android App, buttons and Hex Codes in T1n.cpp are right? I don't know

Salu2

Di Maio, Dario

unread,
Dec 12, 2013, 6:10:56 PM12/12/13
to sou...@googlegroups.com

Could be that in the time codes are changed, may you have a cross check?

Alessandro developed SoulissApp and is now busy with other activities and isn't following the forum.

On Saturday I may have a look.

Let me know.

Regards,
Dario.

From mobile.

Juan Pinto

unread,
Dec 12, 2013, 7:34:19 PM12/12/13
to sou...@googlegroups.com
OK, Problem Solved!! It's a problem with codes sended by Android APP. 
In file TypicalIrRGBLight.cpp 
http://sourceforge.net/p/veseo-souliss/code/HEAD/tree/trunk/SoulissExtraTypical/TypicalIrRGBLight.cpp#l17

Lines Between 13-23 not are equal to Typicals.h file in arduino library, lines between 78-86

I modified that file to receive codes OK, 

#define Souliss_T1n_RGBLamp_OnCmd 0x01  //0x02 // ON Command
#define Souliss_T1n_RGBLamp_OffCmd 0x09  //0x04 // OFF Command
#define Souliss_T1n_RGBLamp_RstCmd 0x00 // Reset Command
#define Souliss_T1n_RGBLamp_R 0x2    //0x06 // Red Color
#define Souliss_T1n_RGBLamp_G 0x3    //0x07 // Green Color
#define Souliss_T1n_RGBLamp_B 0x4    //0x08 // Blue Color
#define Souliss_T1n_RGBLamp_W 0x5    //0x09 // White Color
#define Souliss_T1n_RGBLamp_BrightUp         0x6    //0x10 
#define Souliss_T1n_RGBLamp_BrightDown 0x7    //0x20 

File modified added :)

Suggest. Add a Tag to Google Group "SOLVED"  :))

Salu2
Typicals_modified.h

Di Maio, Dario

unread,
Dec 13, 2013, 8:10:11 AM12/13/13
to sou...@googlegroups.com
That's great, may I ask you to open an issue on Google Code and include your solution. So that once back, I will be able to track and include those changes in the final release.

Basically, the codes was changed in order to have control bit-wise, this was useful at time of Modus and wasn't updated in SoulissApp. Now Modbus is no longer used, so we can reverse back to the old values.

Thanks,
Dario.

Juan Pinto

unread,
Dec 13, 2013, 5:58:18 PM12/13/13
to sou...@googlegroups.com
Ok, issue opened and solution included :)

Salu2

Di Maio, Dario

unread,
Dec 14, 2013, 7:23:19 AM12/14/13
to sou...@googlegroups.com

Thanks,
Dario.

From mobile.

Reply all
Reply to author
Forward
0 new messages