Project

General

Profile

Keenetic Linear » History » Version 1

laforge, 12/16/2022 12:06 PM

1 1 laforge
h1. Keenetic Linear
2
3
The _Keenetic Linear_ is a two-port FXS adapter with a USB interface.  It allows you to interface two analog telephones with a soft switch or VoIP device.  The vendor originally intends this device to be used with one of their own Router/CPE.
4
5
h2. Hardware
6
7
The hardware is based around the "Skyworks Si32287 Single-chip Dual Channel ProSLIC":https://www.skyworksinc.com/en/Products/Voice/Si3228x-Dual-Channel-ProSLIC/Si32287 attached to an "EFM32HG310F64G":https://www.silabs.com/mcu/32-bit-microcontrollers/efm32-happy-gecko/device.efm32hg310f64g-qfn32 (Cortex-M0+) microcontroller.
8
9
* Skyworks Si32287 attachment:Si3228x-datasheet.pdf
10
* EFM32HG310F64G attachment:efm32hg-datasheet.pdf
11
12
h2. USB interface
13
14
_of course_ the vendor couldn't bother to implement a standard USB-Audio interface or similar.  Instead, a custom CDC-ACM based interface is exposed by the device:
15
16
<pre>
17
Bus 001 Device 124: ID 31b7:0002 Keenetic, Ltd. USB CDC serial port device
18
Device Descriptor:
19
  bLength                18
20
  bDescriptorType         1
21
  bcdUSB               2.00
22
  bDeviceClass            2 Communications
23
  bDeviceSubClass         0 
24
  bDeviceProtocol         0 
25
  bMaxPacketSize0        64
26
  idVendor           0x31b7 
27
  idProduct          0x0002 
28
  bcdDevice            0.00
29
  iManufacturer           1 Keenetic, Ltd.
30
  iProduct                2 USB CDC serial port device
31
  iSerial                 3 S2145NS000558
32
  bNumConfigurations      1
33
  Configuration Descriptor:
34
    bLength                 9
35
    bDescriptorType         2
36
    wTotalLength       0x0043
37
    bNumInterfaces          2
38
    bConfigurationValue     1
39
    iConfiguration          0 
40
    bmAttributes         0xc0
41
      Self Powered
42
    MaxPower              100mA
43
    Interface Descriptor:
44
      bLength                 9
45
      bDescriptorType         4
46
      bInterfaceNumber        0
47
      bAlternateSetting       0
48
      bNumEndpoints           1
49
      bInterfaceClass         2 Communications
50
      bInterfaceSubClass      2 Abstract (modem)
51
      bInterfaceProtocol      0 
52
      iInterface              0 
53
      CDC Header:
54
        bcdCDC               1.20
55
      CDC Call Management:
56
        bmCapabilities       0x00
57
        bDataInterface          1
58
      CDC ACM:
59
        bmCapabilities       0x02
60
          line coding and serial state
61
      CDC Union:
62
        bMasterInterface        0
63
        bSlaveInterface         1 
64
      Endpoint Descriptor:
65
        bLength                 7
66
        bDescriptorType         5
67
        bEndpointAddress     0x82  EP 2 IN
68
        bmAttributes            3
69
          Transfer Type            Interrupt
70
          Synch Type               None
71
          Usage Type               Data
72
        wMaxPacketSize     0x0040  1x 64 bytes
73
        bInterval             255
74
    Interface Descriptor:
75
      bLength                 9
76
      bDescriptorType         4
77
      bInterfaceNumber        1
78
      bAlternateSetting       0
79
      bNumEndpoints           2
80
      bInterfaceClass        10 CDC Data
81
      bInterfaceSubClass      0 
82
      bInterfaceProtocol      0 
83
      iInterface              0 
84
      Endpoint Descriptor:
85
        bLength                 7
86
        bDescriptorType         5
87
        bEndpointAddress     0x81  EP 1 IN
88
        bmAttributes            2
89
          Transfer Type            Bulk
90
          Synch Type               None
91
          Usage Type               Data
92
        wMaxPacketSize     0x0040  1x 64 bytes
93
        bInterval               0
94
      Endpoint Descriptor:
95
        bLength                 7
96
        bDescriptorType         5
97
        bEndpointAddress     0x01  EP 1 OUT
98
        bmAttributes            2
99
          Transfer Type            Bulk
100
          Synch Type               None
101
          Usage Type               Data
102
        wMaxPacketSize     0x0040  1x 64 bytes
103
        bInterval               0
104
Device Status:     0x0001
105
  Self Powered
106
</pre>
Add picture from clipboard (Maximum size: 48.8 MB)