Project

General

Profile

Keenetic Linear » History » Version 3

laforge, 12/16/2022 12:10 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 2 laforge
{{thumbnail(20221216_125606.jpg)}}
6
{{thumbnail(20221216_125617.jpg)}}
7
{{thumbnail(20221216_125629.jpg)}}
8
9 1 laforge
h2. Hardware
10
11
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.
12
13
* Skyworks Si32287 attachment:Si3228x-datasheet.pdf
14
* EFM32HG310F64G attachment:efm32hg-datasheet.pdf
15 2 laforge
16
{{thumbnail(20221216_130144.jpg)}}
17
{{thumbnail(20221216_130152.jpg)}}
18
{{thumbnail(20221216_130317.jpg)}}
19 3 laforge
{{thumbnail(20221216_124809.jpg)}}
20
{{thumbnail(20221216_124803.jpg)}}
21 1 laforge
22
h2. USB interface
23
24
_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:
25
26
<pre>
27
Bus 001 Device 124: ID 31b7:0002 Keenetic, Ltd. USB CDC serial port device
28
Device Descriptor:
29
  bLength                18
30
  bDescriptorType         1
31
  bcdUSB               2.00
32
  bDeviceClass            2 Communications
33
  bDeviceSubClass         0 
34
  bDeviceProtocol         0 
35
  bMaxPacketSize0        64
36
  idVendor           0x31b7 
37
  idProduct          0x0002 
38
  bcdDevice            0.00
39
  iManufacturer           1 Keenetic, Ltd.
40
  iProduct                2 USB CDC serial port device
41
  iSerial                 3 S2145NS000558
42
  bNumConfigurations      1
43
  Configuration Descriptor:
44
    bLength                 9
45
    bDescriptorType         2
46
    wTotalLength       0x0043
47
    bNumInterfaces          2
48
    bConfigurationValue     1
49
    iConfiguration          0 
50
    bmAttributes         0xc0
51
      Self Powered
52
    MaxPower              100mA
53
    Interface Descriptor:
54
      bLength                 9
55
      bDescriptorType         4
56
      bInterfaceNumber        0
57
      bAlternateSetting       0
58
      bNumEndpoints           1
59
      bInterfaceClass         2 Communications
60
      bInterfaceSubClass      2 Abstract (modem)
61
      bInterfaceProtocol      0 
62
      iInterface              0 
63
      CDC Header:
64
        bcdCDC               1.20
65
      CDC Call Management:
66
        bmCapabilities       0x00
67
        bDataInterface          1
68
      CDC ACM:
69
        bmCapabilities       0x02
70
          line coding and serial state
71
      CDC Union:
72
        bMasterInterface        0
73
        bSlaveInterface         1 
74
      Endpoint Descriptor:
75
        bLength                 7
76
        bDescriptorType         5
77
        bEndpointAddress     0x82  EP 2 IN
78
        bmAttributes            3
79
          Transfer Type            Interrupt
80
          Synch Type               None
81
          Usage Type               Data
82
        wMaxPacketSize     0x0040  1x 64 bytes
83
        bInterval             255
84
    Interface Descriptor:
85
      bLength                 9
86
      bDescriptorType         4
87
      bInterfaceNumber        1
88
      bAlternateSetting       0
89
      bNumEndpoints           2
90
      bInterfaceClass        10 CDC Data
91
      bInterfaceSubClass      0 
92
      bInterfaceProtocol      0 
93
      iInterface              0 
94
      Endpoint Descriptor:
95
        bLength                 7
96
        bDescriptorType         5
97
        bEndpointAddress     0x81  EP 1 IN
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
      Endpoint Descriptor:
105
        bLength                 7
106
        bDescriptorType         5
107
        bEndpointAddress     0x01  EP 1 OUT
108
        bmAttributes            2
109
          Transfer Type            Bulk
110
          Synch Type               None
111
          Usage Type               Data
112
        wMaxPacketSize     0x0040  1x 64 bytes
113
        bInterval               0
114
Device Status:     0x0001
115
  Self Powered
116
</pre>
Add picture from clipboard (Maximum size: 48.8 MB)