-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathwpan-radio-spec.txt
107 lines (60 loc) · 1.58 KB
/
wpan-radio-spec.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
ieee802154 wpan radio protocol over USB
Overview
========
The document describes protocol between 802.15.4 physical radio and Linux
kernel driver over USB. Protocol is based on atusb Linux driver protocol
found inside Linux kernel: drivers/net/ieee802154/atusb.h
Packet structure
================
Command opcodes are inside bRequest field. bRequest and wIndex are one octet
long.
Commands from Host to Device
============================
USB command endpoint
Opcode 0x00 - Reset bRequest
Reset the Radio
Opcode 0x01 - Transmit bRequest
Sequence number wIndex
Data length wLength
Transmit data from Host to Device
Opcode 0x02 - Transmit Async bRequest
TBD
Opcode 0x03 - ED bRequest
TBD
Opcode 0x04 - Set Channel bRequest
Set ieee802154 channel
Page 1 octet
Channel 1 octet
Opcode 0x05 - Start bRequest
Start ieee802154 device
Opcode 0x06 - Stop bRequest
Stop ieee802154 device
Opcode 0x07 - Set Short address bRequest
Set ieee802154 Short address
Short address 2 octets
Opcode 0x08 - Set PAN ID bRequest
Set ieee802154 PAN ID
PAN ID 2 octets
Opcode 0x09 - Set address bRequest
Set ieee802154 address
address 8 octets
Opcode 0x0A - Set TX Power bRequest
TBD
Opcode 0x0B - Set CCA Mode bRequest
TBD
Opcode 0x0C - Set CCA ED level bRequest
TBD
Opcode 0x0D - Set CSMA Params bRequest
TBD
Opcode 0x0E - Set Promisc mode bRequest
TBD
Data from Device to Host
========================
USB BULK IN endpoint
Transmit ACK
Length 1 octet
Data Sequence number
Data
Length 1 octet
Data Data
LQI 1 octet