-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommands.html
277 lines (273 loc) · 18.4 KB
/
commands.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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1251"/>
<title></title>
<meta name="generator" content="LibreOffice 7.2.0.4 (Windows)"/>
<meta name="created" content="2021-10-14T14:01:42.580000000"/>
<meta name="changed" content="2021-10-14T15:45:21.904000000"/>
<style type="text/css">
@page { size: 21cm 29.7cm; margin: 2cm }
p { line-height: 115%; margin-bottom: 0.25cm; background: transparent }
td p { orphans: 0; widows: 0; background: transparent }
pre { background: transparent }
pre.western { font-family: "Liberation Mono", monospace; font-size: 10pt }
pre.cjk { font-family: "NSimSun", monospace; font-size: 10pt }
pre.ctl { font-family: "Liberation Mono", monospace; font-size: 10pt }
</style>
</head>
<body lang="pl-PL" link="#000080" vlink="#800000" dir="ltr"><p style="line-height: 100%; margin-bottom: 0cm">
<br/>
</p>
<table width="643" cellpadding="2" cellspacing="0" bgcolor="#ffffff" style="background: #ffffff">
<col width="154"/>
<col width="479"/>
<tr>
<td width="154" style="border: 1px solid #dddddd; padding: 0.05cm"><p>
<font face="Courier New, monospace"><b>Command</b></font></p>
</td>
<td width="479" style="border: 1px solid #dddddd; padding: 0.05cm"><p>
<font face="Arial, sans-serif"><b>Description</b></font></p>
</td>
</tr>
<tr>
<td width="154" style="border: 1px solid #dddddd; padding: 0.05cm"><p>
<font face="Courier New, monospace">O</font></p>
</td>
<td width="479" style="border: 1px solid #dddddd; padding: 0.05cm"><p>
<font face="Arial, sans-serif">Enables frame reception.</font></p>
</td>
</tr>
<tr>
<td width="154" style="border: 1px solid #dddddd; padding: 0.05cm"><p>
<font face="Courier New, monospace">C</font></p>
</td>
<td width="479" style="border: 1px solid #dddddd; padding: 0.05cm"><p>
<font face="Arial, sans-serif">Close CAN port on device, frame
will not be received.</font></p>
</td>
</tr>
<tr>
<td width="154" style="border: 1px solid #dddddd; padding: 0.05cm"><p>
<font face="Courier New, monospace">Sx</font></p>
</td>
<td width="479" style="border: 1px solid #dddddd; padding: 0.05cm"><p>
<font face="Arial, sans-serif">Sets baudrate<br/>
x: Bitrate id
(3-8)<br/>
S3 = 100 kBaud<br/>
S4 = 125 kBaud<br/>
S5 = 250
kBaud<br/>
S6 = 500 kBaud<br/>
S7 = 800 kBaud<br/>
S8 = 1 MBaud</font></p>
</td>
</tr>
<tr>
<td width="154" style="border: 1px solid #dddddd; padding: 0.05cm"><p>
<font face="Courier New, monospace">V</font></p>
</td>
<td width="479" style="border: 1px solid #dddddd; padding: 0.05cm"><p>
<font face="Arial, sans-serif">Get hardware version.</font></p>
</td>
</tr>
<tr>
<td width="154" style="border: 1px solid #dddddd; padding: 0.05cm"><p>
<font face="Courier New, monospace">v</font></p>
</td>
<td width="479" style="border: 1px solid #dddddd; padding: 0.05cm"><p>
<font face="Arial, sans-serif">Get firmware version.</font></p>
</td>
</tr>
<tr>
<td width="154" style="border: 1px solid #dddddd; padding: 0.05cm"><p>
<font face="Courier New, monospace">N</font></p>
</td>
<td width="479" style="border: 1px solid #dddddd; padding: 0.05cm"><p>
<font face="Arial, sans-serif">Get serial number.</font></p>
</td>
</tr>
<tr>
<td width="154" style="border: 1px solid #dddddd; padding: 0.05cm"><p>
<font face="Courier New, monospace">l</font></p>
</td>
<td width="479" style="border: 1px solid #dddddd; padding: 0.05cm"><p>
<font face="Arial, sans-serif">Open device in loop back mode.</font></p>
</td>
</tr>
<tr>
<td width="154" style="border: 1px solid #dddddd; padding: 0.05cm"><p>
<font face="Courier New, monospace">L</font></p>
</td>
<td width="479" style="border: 1px solid #dddddd; padding: 0.05cm"><p>
<font face="Arial, sans-serif">Open device in silent, listen-only
mode.</font></p>
</td>
</tr>
<tr>
<td width="154" style="border: 1px solid #dddddd; padding: 0.05cm"><p>
<font face="Courier New, monospace"><span style="font-variant: normal"><font color="#484848"><font face="Liberation Sans, Arial, Helvetica, sans-serif"><font size="2" style="font-size: 10pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="font-weight: normal">tiiildd..[CR]</span></span></span></font></font></font></span>
</font>
</p>
</td>
<td width="479" style="border: 1px solid #dddddd; padding: 0.05cm"><p>
<font face="Arial, sans-serif"><span style="font-variant: normal"><font color="#484848"><font face="Liberation Sans, Arial, Helvetica, sans-serif"><font size="2" style="font-size: 10pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="font-weight: normal">Transmit
standard (11 bit) frame.</span></span></span></font></font></font></span><br/>
<span style="font-variant: normal"><font color="#484848"><font face="Liberation Sans, Arial, Helvetica, sans-serif"><font size="2" style="font-size: 10pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="font-weight: normal">iii:
Identifier in hexadecimal format (000-7FF)</span></span></span></font></font></font></span><br/>
<span style="font-variant: normal"><font color="#484848"><font face="Liberation Sans, Arial, Helvetica, sans-serif"><font size="2" style="font-size: 10pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="font-weight: normal">l:
Data length (0-8)</span></span></span></font></font></font></span><br/>
<span style="font-variant: normal"><font color="#484848"><font face="Liberation Sans, Arial, Helvetica, sans-serif"><font size="2" style="font-size: 10pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="font-weight: normal">dd:
Data byte value in hexadecimal format (00-FF)</span></span></span></font></font></font></span>
</font>
</p>
</td>
</tr>
<tr>
<td width="154" style="border: 1px solid #dddddd; padding: 0.05cm"><p>
<font face="Courier New, monospace"><span style="font-variant: normal"><font color="#484848"><font face="Liberation Sans, Arial, Helvetica, sans-serif"><font size="2" style="font-size: 10pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="font-weight: normal">Tiiiiiiiildd..[CR]</span></span></span></font></font></font></span>
</font>
</p>
</td>
<td width="479" style="border: 1px solid #dddddd; padding: 0.05cm"><p>
<font face="Arial, sans-serif"><span style="font-variant: normal"><font color="#484848"><font face="Liberation Sans, Arial, Helvetica, sans-serif"><font size="2" style="font-size: 10pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="font-weight: normal">Transmit
extended (29 bit) frame.</span></span></span></font></font></font></span><br/>
<span style="font-variant: normal"><font color="#484848"><font face="Liberation Sans, Arial, Helvetica, sans-serif"><font size="2" style="font-size: 10pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="font-weight: normal">iiiiiiii:
Identifier in hexadecimal format (0000000-1FFFFFFF)</span></span></span></font></font></font></span><br/>
<span style="font-variant: normal"><font color="#484848"><font face="Liberation Sans, Arial, Helvetica, sans-serif"><font size="2" style="font-size: 10pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="font-weight: normal">l:
Data length (0-8)</span></span></span></font></font></font></span><br/>
<span style="font-variant: normal"><font color="#484848"><font face="Liberation Sans, Arial, Helvetica, sans-serif"><font size="2" style="font-size: 10pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="font-weight: normal">dd:
Data byte value in hexadecimal format (00-FF)</span></span></span></font></font></font></span>
</font>
</p>
</td>
</tr>
<tr>
<td width="154" style="border: 1px solid #dddddd; padding: 0.05cm"><p>
<font face="Courier New, monospace"><span style="font-variant: normal"><font color="#484848"><font face="Liberation Sans, Arial, Helvetica, sans-serif"><font size="2" style="font-size: 10pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="font-weight: normal">riiil[CR]</span></span></span></font></font></font></span>
</font>
</p>
</td>
<td width="479" style="border: 1px solid #dddddd; padding: 0.05cm"><p>
<font face="Arial, sans-serif"><span style="font-variant: normal"><font color="#484848"><font face="Liberation Sans, Arial, Helvetica, sans-serif"><font size="2" style="font-size: 10pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="font-weight: normal">Transmit
standard RTR (11 bit) frame.</span></span></span></font></font></font></span><br/>
<span style="font-variant: normal"><font color="#484848"><font face="Liberation Sans, Arial, Helvetica, sans-serif"><font size="2" style="font-size: 10pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="font-weight: normal">iii:
Identifier in hexadecimal format (000-7FF)</span></span></span></font></font></font></span><br/>
<span style="font-variant: normal"><font color="#484848"><font face="Liberation Sans, Arial, Helvetica, sans-serif"><font size="2" style="font-size: 10pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="font-weight: normal">l:
Data length (0-8)</span></span></span></font></font></font></span>
</font>
</p>
</td>
</tr>
<tr>
<td width="154" style="border: 1px solid #dddddd; padding: 0.05cm"><p>
<font face="Courier New, monospace"><span style="font-variant: normal"><font color="#484848"><font face="Liberation Sans, Arial, Helvetica, sans-serif"><font size="2" style="font-size: 10pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="font-weight: normal">Riiiiiiiil[CR]</span></span></span></font></font></font></span>
</font>
</p>
</td>
<td width="479" style="border: 1px solid #dddddd; padding: 0.05cm"><p>
<font face="Arial, sans-serif"><span style="font-variant: normal"><font color="#484848"><font face="Liberation Sans, Arial, Helvetica, sans-serif"><font size="2" style="font-size: 10pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="font-weight: normal">Transmit
extended RTR (29 bit) frame.</span></span></span></font></font></font></span><br/>
<span style="font-variant: normal"><font color="#484848"><font face="Liberation Sans, Arial, Helvetica, sans-serif"><font size="2" style="font-size: 10pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="font-weight: normal">iiiiiiii:
Identifier in hexadecimal format (0000000-1FFFFFFF)</span></span></span></font></font></font></span><br/>
<span style="font-variant: normal"><font color="#484848"><font face="Liberation Sans, Arial, Helvetica, sans-serif"><font size="2" style="font-size: 10pt"><span style="letter-spacing: normal"><span style="font-style: normal"><span style="font-weight: normal">l:
Data length (0-8)</span></span></span></font></font></font></span>
</font>
</p>
</td>
</tr>
<tr>
<td width="154" style="border: 1px solid #dddddd; padding: 0.05cm"><p>
<font face="Courier New, monospace">F</font></p>
</td>
<td width="479" style="border: 1px solid #dddddd; padding: 0.05cm"><p>
<font face="Arial, sans-serif">Read status/error flag of can
controller<br/>
Return: Fxx[CR] with xx as hexadecimal byte with
following error flags:<br/>
Bit 0 - not used<br/>
Bit 1 - not
used<br/>
Bit 2 - Error warning (Bit EWARN of MCP2515)<br/>
Bit 3
- Data overrun (Bit RX1OVR or RX0OVR of MCP2515)<br/>
Bit 4 - not
used<br/>
Bit 5 - Error-Passive (Bit TXEP or RXEP of MCP2515)<br/>
Bit
6 - not used<br/>
Bit 7 - Bus error (Bit TXBO of MCP2515) </font>
</p>
</td>
</tr>
<tr>
<td width="154" style="border: 1px solid #dddddd; padding: 0.05cm"><p>
<font face="Courier New, monospace">MnnbbfiiiiiiiiI<br/>
mmmmmmmmF</font></p>
</td>
<td width="479" style="border: 1px solid #dddddd; padding: 0.05cm"><p>
<font face="Arial, sans-serif">M: Set acceptance filter mask.<br/>
nn:
filter number 0-1B<br/>
bb: bank number 0-1B<br/>
f: filter flags</font></p>
<ul>
<li><p><font face="Arial, sans-serif">Filter Activation</font></p>
</ul>
<ul>
<li><p><font face="Arial, sans-serif">Mode: Mask or Filter</font></p>
</ul>
<ul>
<li><p><font face="Arial, sans-serif">Scale: 2x16 bit or 1x32 bit</font></p>
</ul>
<ul>
<li><p><font face="Arial, sans-serif">FIFO selection set as
0iiiiiiii: depends on Scale one 32 bit id or two 16 bit CAN frame
id for filtering<br/>
I: id flags</font></p>
</ul>
<ul>
<li><p><font face="Arial, sans-serif">RTR1: filter for
retransmission flag</font></p>
</ul>
<ul>
<li><p><font face="Arial, sans-serif">EX1: filter for extended
flag</font></p>
</ul>
<ul>
<li><p><font face="Arial, sans-serif">RTR2: filter for
retransmission flag (for 16 bit filtering)</font></p>
</ul>
<ul>
<li><p><font face="Arial, sans-serif">EX2: filter for extended
flagmmmmmmmm: If mode set to MASK, mask value, else as
iiiiiiii<br/>
F: flags for mask same as I</font></p>
</ul>
</td>
</tr>
</table>
<pre class="western" style="font-variant: normal; letter-spacing: normal; font-style: normal; font-weight: normal; line-height: 142%; orphans: 2; widows: 2; margin-bottom: 0.26cm; border-top: 1px solid #cccccc; border-bottom: 1px solid #cccccc; border-left: 1px solid #cccccc; border-right: none; padding-top: 0.24cm; padding-bottom: 0.24cm; padding-left: 0.24cm; padding-right: 0cm; background: #f5f5f5"><font color="#333333"><font face="Menlo, Monaco, Consolas, Courier New, monospace"><font size="2" style="font-size: 9pt">t00181122334455667788 (transmit frame type standard id = 1 length 8 bytes)</font></font></font>
<font color="#333333"><font face="Menlo, Monaco, Consolas, Courier New, monospace"><font size="2" style="font-size: 9pt">t0890</font></font></font>
<font color="#333333"><font face="Menlo, Monaco, Consolas, Courier New, monospace"><font size="2" style="font-size: 9pt">M00007000000010000000010 (set id filter for ID=1 and ID=1)</font></font></font>
</pre><p style="font-variant: normal; letter-spacing: normal; font-style: normal; font-weight: normal; line-height: 142%; orphans: 2; widows: 2; margin-bottom: 0.26cm; border-top: 1px solid #cccccc; border-bottom: 1px solid #cccccc; border-left: 1px solid #cccccc; border-right: none; padding-top: 0.24cm; padding-bottom: 0.24cm; padding-left: 0.24cm; padding-right: 0cm; background: #f5f5f5">
<font color="#333333"><font face="Merriweather, Helvetica Neue, Arial, sans-serif"><font size="2" style="font-size: 10pt">Example
1, ignore all extended CAN packets</font></font></font></p>
<pre class="western" style="font-variant: normal; letter-spacing: normal; font-style: normal; font-weight: normal; line-height: 142%; orphans: 2; widows: 2; margin-bottom: 0.26cm; border-top: 1px solid #cccccc; border-bottom: 1px solid #cccccc; border-left: 1px solid #cccccc; border-right: none; padding-top: 0.24cm; padding-bottom: 0.24cm; padding-left: 0.24cm; padding-right: 0cm; background: #f5f5f5"><font color="#333333"><font face="Menlo, Monaco, Consolas, Courier New, monospace"><font size="2" style="font-size: 9pt">M0000500000000000000000F</font></font></font></pre><p style="font-variant: normal; letter-spacing: normal; font-style: normal; font-weight: normal; orphans: 2; widows: 2">
<font color="#333333"><font face="Merriweather, Helvetica Neue, Arial, sans-serif"><font size="2" style="font-size: 10pt">Example
2, delete all filters</font></font></font></p>
<pre class="western" style="font-variant: normal; letter-spacing: normal; font-style: normal; font-weight: normal; line-height: 142%; orphans: 2; widows: 2; margin-bottom: 0.26cm; border-top: 1px solid #cccccc; border-bottom: 1px solid #cccccc; border-left: 1px solid #cccccc; border-right: none; padding-top: 0.24cm; padding-bottom: 0.24cm; padding-left: 0.24cm; padding-right: 0cm; background: #f5f5f5"><font color="#333333"><font face="Menlo, Monaco, Consolas, Courier New, monospace"><font size="2" style="font-size: 9pt">Md</font></font></font></pre><p style="font-variant: normal; letter-spacing: normal; font-style: normal; font-weight: normal; orphans: 2; widows: 2">
<font color="#333333"><font face="Merriweather, Helvetica Neue, Arial, sans-serif"><font size="2" style="font-size: 10pt">Example
3, If You would like to have ids from 0x600-0x7FF then : You need two
separate filters one for 0x600 (in bank 0 )2nd for 0x700 ( in bank 1)
so enter two command like this</font></font></font></p>
<pre class="western" style="font-variant: normal; letter-spacing: normal; line-height: 142%; orphans: 2; widows: 2; margin-bottom: 0.26cm; border-top: 1px solid #cccccc; border-bottom: 1px solid #cccccc; border-left: 1px solid #cccccc; border-right: none; padding-top: 0.24cm; padding-bottom: 0.24cm; padding-left: 0.24cm; padding-right: 0cm; background: #f5f5f5"><font color="#333333"> <font face="Menlo, Monaco, Consolas, Courier New, monospace"><font size="2" style="font-size: 9pt"><span style="font-style: normal"><span style="font-weight: normal">M0000500000600000000F000</span></span></font></font></font>
<font color="#333333"> <font face="Menlo, Monaco, Consolas, Courier New, monospace"><font size="2" style="font-size: 9pt"><span style="font-style: normal"><span style="font-weight: normal">M0100500000700000000F000</span></span></font></font></font></pre><p style="font-variant: normal; letter-spacing: normal; font-style: normal; font-weight: normal; orphans: 2; widows: 2">
<font color="#333333"><font face="Merriweather, Helvetica Neue, Arial, sans-serif"><font size="2" style="font-size: 10pt">If
only 0x600 - 0x6FF then</font></font></font></p>
<pre class="western" style="font-variant: normal; letter-spacing: normal; line-height: 142%; orphans: 2; widows: 2; margin-bottom: 0.26cm; border-top: 1px solid #cccccc; border-bottom: 1px solid #cccccc; border-left: 1px solid #cccccc; border-right: none; padding-top: 0.24cm; padding-bottom: 0.24cm; padding-left: 0.24cm; padding-right: 0cm; background: #f5f5f5"><font color="#333333"> <font face="Menlo, Monaco, Consolas, Courier New, monospace"><font size="2" style="font-size: 9pt"><span style="font-style: normal"><span style="font-weight: normal">M0000500000600000000F000 </span></span></font></font></font></pre><p style="line-height: 100%; margin-bottom: 0cm">
<br/>
</p>
</body>
</html>