-
Notifications
You must be signed in to change notification settings - Fork 47
/
LINKTYPE_ZBOSS_NCP.html
129 lines (120 loc) · 3.78 KB
/
LINKTYPE_ZBOSS_NCP.html
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<!DOCTYPE html>
<html lang="en">
<!-- HEAD -->
<head>
<meta charset="utf-8">
<title>LINKTYPE_ZBOSS_NCP | TCPDUMP & LIBPCAP</title>
<meta name="description" content="Web site of Tcpdump and Libpcap">
<link href="../style.css" rel="stylesheet" type="text/css" media="screen">
<link href="../images/T-32x32.png" rel="shortcut icon" type="image/png">
</head>
<!-- END OF HTML HEAD -->
<!-- BODY -->
<body>
<!-- TOP MENU -->
<div id="menu">
<ul>
<li><a href="../index.html">Home</a></li>
<li><a href="../security.html">Security</a></li>
<li><a href="../faq.html">FAQ</a></li>
<li><a href="../manpages/">Man Pages</a></li>
<li><a href="../ci.html">CI</a></li>
<li><a href="../linktypes.html">Link-Layer Header Types</a></li>
<li><a href="../bpfexam/">BPF Exam</a></li>
<li><a href="../related.html">See Also</a></li>
<li><a href="../old_releases.html">Old Releases</a></li>
</ul>
</div>
<!-- END OF TOP MENU -->
<!-- PAGE HEADER -->
<div id="splash">
<br><img src="../images/logo.png" alt="">
</div>
<div id="logo">
<hr>
</div>
<!-- END OF PAGE HEADER -->
<!-- PAGE CONTENTS -->
<div id="page">
<!-- Start of LINKTYPE_ZBOSS_NCP section -->
<div class="post">
<h2 class="title">
LINKTYPE_ZBOSS_NCP
</h2>
<div class="entry">
<h3>Packet structure</h3>
<pre>
+---------------------------+
| Signature |
| (5 Octets) |
+---------------------------+
| Version |
| (1 Octet) |
+---------------------------+
| Type |
| (1 Octet) |
+---------------------------+
| Options |
| (1 Octet, bitfield) |
+---------------------------+
| Payload |
| (Variable length) |
+---------------------------+
</pre>
<h3>Description</h3>
<p>
The Signature field contains ASCII string "ZBNCP".
</p>
<p>
The Version field is set to 0 (only this value is defined now).
</p>
<p>
The Type field is set to 6.
</p>
<h4>Options bitfield</h4>
<pre>
7 6 5 4 3 2 1 0
. . . . . . . . .
0 +---+---+---+---+---+---+---+---+
| reserved |b02|b01|b00|
+1 +---+---+---+---+---+---+---+---+
</pre>
<ul>
<li>
<code>b00</code> is set to 1 if transmitting from device to host, else 0
</li>
<li>
<code>b01</code> is set to 1 if host interrupt occurs
</li>
<li>
<code>b02</code> is set to 1 if both sides are transmitting at the same time
</li>
<li>
<code>b03</code>–<code>b07</code> are reserved for future use
</li>
</ul>
<h4>Payload</h4>
<p>
The payload begins with the "Low-level protocol" header, as described in
section 3.2 of
<a href="https://cloud.dsr-corporation.com/index.php/s/BAn4LtRWbJjFiAm">ZBOSS
NCP Serial Protocol</a>, so that the first two bytes of the payload are
<code>0xde</code> <code>0xad</code>, in order.
</p>
</div>
<!-- End of LINKTYPE_ZBOSS_NCP section -->
</div>
</div>
<!-- END OF PAGE CONTENTS -->
<!-- FOOTER -->
<div id="footer">
<p>
This web site is © 1999–2024 The Tcpdump Group
(<a href="https://github.com/the-tcpdump-group/tcpdump-htdocs/blob/master/README.md">more
information</a>).
</p>
</div>
<!-- END OF FOOTER -->
</body>
<!-- END OF HTML BODY -->
</html>