irplus-remote / irplus-codes.github.io

Code updates for irplus
72 stars 45 forks source link

Support USB-Blaster Bus 001 Device 002: ID 045c:0134 #640

Open irplus-remote opened 8 months ago

irplus-remote commented 8 months ago

Purchaseable at https://de.aliexpress.com/item/1005005417256299.html?gatewayAdapt=glo2deu


Bus 001 Device 003: ID 045c:0134 SMTCTL SMART
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.10
  bDeviceClass            2 Communications
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x045c
  idProduct          0x0134
  bcdDevice            2.00
  iManufacturer           1 SMTCTL
  iProduct                2 SMART
  iSerial                 3 2017-2-25
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0033
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         2 Communications
      bInterfaceSubClass      2 Abstract (modem)
      bInterfaceProtocol      1 AT-commands (v.25ter)
      iInterface              0
      CDC Header:
        bcdCDC               1.10
      CDC Call Management:
        bmCapabilities       0x00
        bDataInterface          0
      CDC ACM:
        bmCapabilities       0x02
          line coding and serial state
      CDC Union:
        bMasterInterface        0
        bSlaveInterface         1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
Device Status:     0x0000
  (Bus Powered)
itstermoh commented 8 months ago

Purchaseable at https://de.aliexpress.com/item/1005005417256299.html?gatewayAdapt=glo2deu


Bus 001 Device 003: ID 045c:0134 SMTCTL SMART
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.10
  bDeviceClass            2 Communications
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x045c
  idProduct          0x0134
  bcdDevice            2.00
  iManufacturer           1 SMTCTL
  iProduct                2 SMART
  iSerial                 3 2017-2-25
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0033
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         2 Communications
      bInterfaceSubClass      2 Abstract (modem)
      bInterfaceProtocol      1 AT-commands (v.25ter)
      iInterface              0
      CDC Header:
        bcdCDC               1.10
      CDC Call Management:
        bmCapabilities       0x00
        bDataInterface          0
      CDC ACM:
        bmCapabilities       0x02
          line coding and serial state
      CDC Union:
        bMasterInterface        0
        bSlaveInterface         1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
Device Status:     0x0000
  (Bus Powered)

To communicate with these blasters you need to take a look at ocrustar code, there is an sdk into it made for this. Also the app was made in kotlin and I think it's an old version of it, I tried to remake an app in java but only thing I could do was request permission to the device, bulktransfer should make the led light up. I decompiled it and have clear code without decompiler exceptions.

itstermoh commented 6 months ago

Hey @irplus-remote , I have just figured out how to send ir codes using the usb blaster. Basically you need to ask permission for the device and to send the data you need to convert the ir code (ex: 2,7,0,7,9,0, etc) from integer[] to an ubyte I suppose. I'll try to make this in java (repo: https://github.com/itstermoh/Ocrublaster) and see if it works.

wasiliysoft commented 3 months ago

Hi @irplus-remote , "it's been a long time" so I'm here now))) Is there any news about Ocrustar support? I ordered their device because I found the source code from @itstermoh , but I don't seem to understand how I should form an INT set like ConsumerIrManager

seeya commented 2 months ago

Hey @irplus-remote , I have just figured out how to send ir codes using the usb blaster. Basically you need to ask permission for the device and to send the data you need to convert the ir code (ex: 2,7,0,7,9,0, etc) from integer[] to an ubyte I suppose. I'll try to make this in java (repo: https://github.com/itstermoh/Ocrublaster) and see if it works.

@itstermoh Did you managed to get it working with your codes? I cloned your project and did manage to connect the USB device. However when I clicked on MANDA IR, nothing happens. I suppose there should be a light on the IR Blaster if the code was sent correctly like how it is in Ocrustar