Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

NEW!! pureXbmc V2 - New firmware for CX-921a / EXOON Power Pro 2013

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #76
    Originally posted by huniak View Post
    Flash v25 some minutes ago, but I cant get codes for buttons in terminal
    This kernel was just for testing, if your remote is working with this kernel. So can you please check your buttons?

    Walter77
    Donations are welcome and will be shared with other devs:

    DONATIONS

    CX-921 TV-Box without Bluetooth (RK3188 / RTL8188 Wifi), CX-921b TV-Box (RK3188T / AP6210 Wifi), T428 TV Stick (RK3188 / AP6330 Wifi), CX919 TV Stick (RK3188 / AP6210 Wifi)

    Comment


      #77
      Originally posted by walter77 View Post
      This kernel was just for testing, if your remote is working with this kernel. So can you please check your buttons?

      Walter77
      ok, what working:

      power
      menu (but function as a back)
      back (but function as a home)
      mute d=10ef
      key up
      key down
      key left
      key right

      not working:

      fast rewind
      cursor
      ok
      home
      volume up
      volume down
      tv button
      camera button

      Comment


        #78
        Originally posted by huniak View Post
        ok, what working:

        power
        menu (but function as a back)
        back (but function as a home)
        mute d=10ef
        key up
        key down
        key left
        key right

        not working:

        fast rewind
        cursor
        ok
        home
        volume up
        volume down
        tv button
        camera button
        OK i will compile a kernel for your to get the codes...

        Here it is...
        cx921a/kernel_cx921a_1080p_v25_LCD1_0x202.zip

        Please give me each code for the corresponding button.

        Walter77
        Donations are welcome and will be shared with other devs:

        DONATIONS

        CX-921 TV-Box without Bluetooth (RK3188 / RTL8188 Wifi), CX-921b TV-Box (RK3188T / AP6210 Wifi), T428 TV Stick (RK3188 / AP6330 Wifi), CX919 TV Stick (RK3188 / AP6210 Wifi)

        Comment


          #79
          Originally posted by walter77 View Post
          OK i will compile a kernel for your to get the codes...

          Here it is...
          cx921a/kernel_cx921a_1080p_v25_LCD1_0x202.zip

          Please give me each code for the corresponding button.

          Walter77

          ok, buttons:

          power d=b24d
          cursor d=e21d
          mute d=c23d

          key left d=8f7
          key up d=d02f
          key right d=8877
          key down d=708f

          key menu (or settings?) d=a25d
          home d=58a7
          back d=42bd

          volume up d=18e7
          volume down d=e817
          fast rewind next d=7887
          fast rewind back d=f807

          TV key d=ea15
          Camera key? d=2ad5

          Comment


            #80
            Originally posted by huniak View Post
            ok, buttons:

            power d=b24d
            cursor d=e21d
            mute d=c23d

            key left d=8f7
            key up d=d02f
            key right d=8877
            key down d=708f

            key menu (or settings?) d=a25d
            home d=58a7
            back d=42bd

            volume up d=18e7
            volume down d=e817
            fast rewind next d=7887
            fast rewind back d=f807

            TV key d=ea15
            Camera key? d=2ad5
            OK i will map this keys. Perhaps you need to edit "rkxx-remotectl.kl" but let's see...
            Donations are welcome and will be shared with other devs:

            DONATIONS

            CX-921 TV-Box without Bluetooth (RK3188 / RTL8188 Wifi), CX-921b TV-Box (RK3188T / AP6210 Wifi), T428 TV Stick (RK3188 / AP6330 Wifi), CX919 TV Stick (RK3188 / AP6210 Wifi)

            Comment


              #81
              Originally posted by walter77 View Post
              OK i will map this keys. Perhaps you need to edit "rkxx-remotectl.kl" but let's see...
              Ok, thank you for your patience

              Comment


                #82
                Originally posted by huniak View Post
                Ok, thank you for your patience
                OK/Enter Key is missing...
                Donations are welcome and will be shared with other devs:

                DONATIONS

                CX-921 TV-Box without Bluetooth (RK3188 / RTL8188 Wifi), CX-921b TV-Box (RK3188T / AP6210 Wifi), T428 TV Stick (RK3188 / AP6330 Wifi), CX919 TV Stick (RK3188 / AP6210 Wifi)

                Comment


                  #83
                  Originally posted by walter77 View Post
                  OK/Enter Key is missing...
                  Ok key d=b04f

                  Comment


                    #84
                    Originally posted by huniak View Post
                    Ok key d=b04f
                    OK, link from post 74 replaced.



                    Please test and report back.

                    Walter77
                    Donations are welcome and will be shared with other devs:

                    DONATIONS

                    CX-921 TV-Box without Bluetooth (RK3188 / RTL8188 Wifi), CX-921b TV-Box (RK3188T / AP6210 Wifi), T428 TV Stick (RK3188 / AP6330 Wifi), CX919 TV Stick (RK3188 / AP6210 Wifi)

                    Comment


                      #85
                      Originally posted by walter77 View Post
                      Super, working almost all buttons exept:

                      Cursor (arrow) - dont know how must this button work, fast rewind buttons and bottom two keys tv and camera , but this last two is not very important for me.

                      Thank you Walter

                      Comment


                        #86
                        Originally posted by huniak View Post
                        Super, working almost all buttons exept:

                        Cursor (arrow) - dont know how must this button work, fast rewind buttons and bottom two keys tv and camera , but this last two is not very important for me.

                        Thank you Walter
                        Hey huniak, a liitle bit strange.
                        The cursor button is mapped as mouse switch, this button should work. The four other buttons have to be inserted into the rkxx-remotectl.kl file. Some posts ago i wrote how to do that.

                        Here is kernel v25b:
                        kernel_cx921a_1080p_v25b_LCD1_vsync_cpu1608h_gpu60 0h_ddr720.zip

                        Walter77
                        Donations are welcome and will be shared with other devs:

                        DONATIONS

                        CX-921 TV-Box without Bluetooth (RK3188 / RTL8188 Wifi), CX-921b TV-Box (RK3188T / AP6210 Wifi), T428 TV Stick (RK3188 / AP6330 Wifi), CX919 TV Stick (RK3188 / AP6210 Wifi)

                        Comment


                          #87
                          Hey Walter,

                          I digged through the radxa source and I think I found out how to add custom remotes + mapping tables.
                          I just wanted you to confirm on my theory

                          So i went into "/kernel/drivers/input/remotectl/" and there i found "rkxx_remotectl.c".
                          Inside this file i found some structs which define button mappings inside them. One struct
                          for each remote control, is that right ?

                          A little bit further down i found another struct "remotectl_button" which holds data on the defined
                          controls(the user code, number of buttons and a pointer to the controls mapping table struct).

                          So all I have to do is find out the usercode and every buttons code, create a mapping table struct
                          and put it inside the remotectl_button struct with its usercode, or am I missing something ?

                          If that is all i could try to write a litte program, that would make it easier to add custom remote
                          controls to the input driver.

                          Hope you can answer my question

                          Comment


                            #88
                            Originally posted by huniak View Post
                            Ok, thank you for your patience
                            Originally posted by rebootix View Post
                            Hey Walter,

                            I digged through the radxa source and I think I found out how to add custom remotes + mapping tables.
                            I just wanted you to confirm on my theory

                            So i went into "/kernel/drivers/input/remotectl/" and there i found "rkxx_remotectl.c".
                            Inside this file i found some structs which define button mappings inside them. One struct
                            for each remote control, is that right ?

                            A little bit further down i found another struct "remotectl_button" which holds data on the defined
                            controls(the user code, number of buttons and a pointer to the controls mapping table struct).

                            So all I have to do is find out the usercode and every buttons code, create a mapping table struct
                            and put it inside the remotectl_button struct with its usercode, or am I missing something ?

                            If that is all i could try to write a litte program, that would make it easier to add custom remote
                            controls to the input driver.

                            Hope you can answer my question
                            Hey rebootix,
                            that's completely right. At the moment, this is my actual configuration:

                            static struct rkxx_remote_key_table remote_key_table_cx921_v1_1[] = {
                            {0x2a, KEY_1},
                            {0x12, KEY_2},
                            {0xe0, KEY_3},
                            {0xa, KEY_4},
                            {0x48, KEY_5},
                            {0x88, KEY_6},
                            {0x32, KEY_7},
                            {0x70, KEY_8},
                            {0xb0, KEY_9},
                            {0x82, KEY_SPACE},
                            {0x30, KEY_0},
                            {0xd2, KEY_BACKSPACE},
                            {0xaa, KEY_REPLY},//ok = DPAD CENTER
                            {0x2, KEY_BACK},
                            {0x62, KEY_UP},
                            {0x68, KEY_DOWN},
                            {0xe2, KEY_LEFT},
                            {0xa8, KEY_RIGHT}, ////////
                            {0x60, KEY_HOME}, //home
                            {0x8, KEY_VOLUMEUP},
                            {0x28, KEY_VOLUMEDOWN},
                            {0x18, KEY_POWER}, //power off
                            {0x10, KEY_MUTE}, //mute
                            {0x20, KEY_MENU},

                            //media ctrl
                            {0x6a, KEY_RED},
                            {0xea, KEY_GREEN},
                            {0xb8, KEY_YELLOW},

                            {0xda, KEY_SEARCH}, //blue
                            {0xe8, 388},//mouse switch

                            };

                            static struct rkxx_remote_key_table remote_key_table_cx921_v1_2[] = {
                            {0x88, KEY_1},
                            {0x48, KEY_2},
                            {0xc8, KEY_3},
                            {0x28, KEY_4},
                            {0xa8, KEY_5},
                            {0x68, KEY_6},
                            {0xe8, KEY_7},
                            {0x18, KEY_8},
                            {0x98, KEY_9},
                            {0xb2, KEY_SPACE},
                            {0x8, KEY_0},
                            {0xd8, KEY_BACKSPACE},
                            {0xf8, KEY_REPLY},//ok = DPAD CENTER
                            {0xa0, KEY_BACK},
                            {0x0, KEY_UP},
                            {0x80, KEY_DOWN},
                            {0xc0, KEY_LEFT},
                            {0x40, KEY_RIGHT}, ////////
                            {0x2, KEY_HOME}, //home
                            {0x60, KEY_VOLUMEUP},
                            {0xd0, KEY_VOLUMEDOWN},
                            {0x50, KEY_POWER}, //power off
                            {0x30, KEY_MUTE}, //mute
                            {0x38, KEY_MENU},

                            //media ctrl
                            {0x70, KEY_RED},
                            {0x78, KEY_GREEN},
                            {0x32, KEY_YELLOW},

                            {0x22, KEY_SEARCH}, //blue
                            {0xe0, 388},//mouse switch
                            };

                            static struct rkxx_remote_key_table remote_key_table_cx921_v1_4[] = {
                            {0x2a, KEY_1},
                            {0x12, KEY_2},
                            {0xe0, KEY_3},
                            {0xa, KEY_4},
                            {0x48, KEY_5},
                            {0x88, KEY_6},
                            {0x32, KEY_7},
                            {0x70, KEY_8},
                            {0xb0, KEY_9},
                            {0x82, KEY_SPACE},
                            {0x30, KEY_0},
                            {0xd2, KEY_BACKSPACE},
                            {0xaa, KEY_REPLY},//ok = DPAD CENTER
                            {0x2, KEY_BACK},
                            {0x62, KEY_UP},
                            {0x68, KEY_DOWN},
                            {0xe2, KEY_LEFT},
                            {0xa8, KEY_RIGHT}, ////////
                            {0x60, KEY_HOME}, //home
                            {0x8, KEY_VOLUMEUP},
                            {0x28, KEY_VOLUMEDOWN},
                            {0x18, KEY_POWER}, //power off
                            {0x10, KEY_MUTE}, //mute
                            {0xe8, KEY_MENU},
                            //media ctrl
                            {0x6a, KEY_RED},
                            {0xea, KEY_GREEN},
                            {0xf8, KEY_YELLOW},

                            {0xda, KEY_SEARCH}, //blue
                            {0x20, 388},//mouse switch
                            {0x6a, KEY_VIDEO_NEXT},
                            {0x6a, KEY_VIDEO_PREV},
                            {0x58, KEY_PLAYPAUSE},
                            {0xd4, KEY_STOPCD},
                            };

                            static struct rkxx_remote_key_table remote_key_table_cx921_v1_5[] = {
                            {0xb0, KEY_REPLY},//ok = DPAD CENTER
                            {0x42, KEY_BACK},
                            {0xd0, KEY_UP},
                            {0x70, KEY_DOWN},
                            {0x8, KEY_LEFT},
                            {0x88, KEY_RIGHT}, ////////
                            {0x58, KEY_HOME}, //home
                            {0x18, KEY_VOLUMEUP},
                            {0xe8, KEY_VOLUMEDOWN},
                            {0xb2, KEY_POWER}, //power off
                            {0xc2, KEY_MUTE}, //mute
                            {0xa2, KEY_MENU},
                            {0xe2, 388},//mouse switch
                            //media ctrl
                            {0xea, KEY_RED},
                            {0x2a, KEY_SEARCH},
                            {0x78, KEY_VIDEO_NEXT},
                            {0xf8, KEY_VIDEO_PREV},
                            };

                            static struct rkxx_remote_key_table remote_key_table_meiyu_202[] = {
                            {0xB0, KEY_REPLY},//ok = DPAD CENTER
                            {0xA2, KEY_BACK},
                            {0xD0, KEY_UP},
                            {0x70, KEY_DOWN},
                            {0x08, KEY_LEFT},
                            {0x88, KEY_RIGHT}, ////////
                            {0x42, KEY_HOME}, //home
                            {0xA8, KEY_VOLUMEUP},
                            {0x38, KEY_VOLUMEDOWN},
                            {0xE2, KEY_SEARCH}, //search
                            {0xB2, KEY_POWER}, //power off
                            {0xC2, KEY_MUTE}, //mute
                            {0xC8, KEY_MENU},

                            //media ctrl
                            {0x78, 0x190}, //play pause
                            {0xF8, 0x191}, //pre
                            {0x02, 0x192}, //next

                            //pic
                            {0xB8, 183}, //rorate left
                            {0x58, 184}, //rorate right
                            {0x68, 185}, //zoom out
                            {0x98, 186}, //zoom in
                            //mouse switch
                            {0xf0,388},
                            //display switch
                            {0x82, 0x175},
                            };

                            static struct rkxx_remote_key_table remote_key_table_df[] = {
                            {0xf8, KEY_REPLY},
                            {0xc0, KEY_BACK},
                            {0xf0, KEY_UP},
                            {0xd8, KEY_DOWN},
                            {0xd0, KEY_LEFT},
                            {0xe8,KEY_RIGHT}, ////////
                            {0x90, KEY_VOLUMEDOWN},
                            {0x60, KEY_VOLUMEUP},
                            {0x80, KEY_HOME}, //home
                            {0xe0, 183}, //rorate left
                            {0x10, 184}, //rorate right
                            {0x20, 185}, //zoom out
                            {0xa0, 186}, //zoom in
                            {0x70, KEY_MUTE}, //mute
                            {0x50, KEY_POWER}, //power off
                            {0x40, KEY_SEARCH}, //search
                            };

                            static struct rkxx_remote_key_table remote_key_table_sunchip_202[] = {

                            {0x60, KEY_HOME}, // home
                            {0x02, KEY_BACK}, // back
                            {0x20, KEY_MENU}, // menu
                            {0xAA, KEY_REPLY}, // ok

                            {0x62, KEY_UP},
                            {0x68, KEY_DOWN},
                            {0xE2, KEY_LEFT},
                            {0xA8, KEY_RIGHT},

                            {0x28, KEY_VOLUMEDOWN},
                            {0x08, KEY_VOLUMEUP},
                            {0x10, KEY_MUTE}, //mute

                            {0x18, KEY_POWER}, //power (RED)
                            {0x40, KEY_POWER}, //power (GREEN)

                            {0x6A, KEY_VOLUMEDOWN}, // function RED
                            {0xEA, KEY_VOLUMEDOWN}, // function GREEN
                            {0xF8, KEY_VOLUMEDOWN}, // function YELLOW
                            {0xDA, KEY_VOLUMEDOWN}, // function BLUE

                            {0x2A, 183}, // Digit 1
                            {0x12, 388}, // Digit 2
                            {0xE0, 184}, // Digit 3
                            {0x0A, 185}, // Digit 4
                            {0x48, KEY_VOLUMEDOWN}, // Digit 5
                            {0x88, 186}, // Digit 6
                            {0x32, KEY_VOLUMEDOWN}, // Digit 7
                            {0x70, KEY_VOLUMEDOWN}, // Digit 8
                            {0xB0, KEY_VOLUMEDOWN}, // Digit 9
                            {0x30, KEY_SEARCH}, // Digit 0

                            {0xD2, KEY_VOLUMEDOWN}, // Delete

                            {0xC0, 183}, // Signal source
                            {0x28, 184}, // Volume down (TOP)
                            {0x08, 184}, // Volume up (TOP)

                            {0xE8, KEY_SEARCH}, // search
                            };

                            extern suspend_state_t get_suspend_state(void);


                            static struct rkxx_remotectl_button remotectl_button[] =
                            {
                            {
                            .usercode = 0xff,
                            .nbuttons = 29,
                            .key_table = &remote_key_table_cx921_v1_1[0],
                            },
                            // {
                            // .usercode = 0xff,
                            // .nbuttons = 13,
                            // .key_table = &remote_key_table_radxa[0],
                            // },
                            {
                            .usercode = 0x12ee,
                            .nbuttons = 29,
                            .key_table = &remote_key_table_cx921_v1_2[0],
                            },
                            {
                            .usercode = 0x807f,
                            .nbuttons = 33,
                            .key_table = &remote_key_table_cx921_v1_4[0],
                            },
                            // {
                            // .usercode = 0xff,
                            // .nbuttons = 22,
                            // .key_table = &remote_key_table_sunchip_202[0],
                            // },
                            {
                            .usercode = 0x206,
                            .nbuttons = 22,
                            .key_table = &remote_key_table_meiyu_202[0],
                            },
                            {
                            .usercode = 0x12ee,
                            .nbuttons = 22,
                            .key_table = &remote_key_table_meiyu_202[0],
                            },
                            {
                            .usercode = 0x202,
                            .nbuttons = 17,
                            .key_table = &remote_key_table_cx921_v1_5[0],
                            },
                            {
                            .usercode = 0xdf,
                            .nbuttons = 16,
                            .key_table = &remote_key_table_df[0],
                            },
                            };

                            A little program would be cool, cause it takes a lot of time to add a new remote ;-)

                            Walter77
                            Donations are welcome and will be shared with other devs:

                            DONATIONS

                            CX-921 TV-Box without Bluetooth (RK3188 / RTL8188 Wifi), CX-921b TV-Box (RK3188T / AP6210 Wifi), T428 TV Stick (RK3188 / AP6330 Wifi), CX919 TV Stick (RK3188 / AP6210 Wifi)

                            Comment


                              #89
                              Cool

                              Do you have a list with all the Key Names ? (eg. KEY_HOME etc.)
                              I want to include every possible Key so that everything can be mapped

                              Comment


                                #90
                                Originally posted by rebootix View Post
                                Cool

                                Do you have a list with all the Key Names ? (eg. KEY_HOME etc.)
                                I want to include every possible Key so that everything can be mapped
                                Klar ;-)

                                It's inside this file:
                                kernel/include/linux/input.h

                                Walter77
                                Donations are welcome and will be shared with other devs:

                                DONATIONS

                                CX-921 TV-Box without Bluetooth (RK3188 / RTL8188 Wifi), CX-921b TV-Box (RK3188T / AP6210 Wifi), T428 TV Stick (RK3188 / AP6330 Wifi), CX919 TV Stick (RK3188 / AP6210 Wifi)

                                Comment

                                Working...
                                X