@@ -167,7 +167,8 @@ To make the above more clear let’s show an example with the `serial_discovery`
167
167
"properties" : {
168
168
"pid" : " 0x804e" ,
169
169
"vid" : " 0x2341" ,
170
- "serialNumber" : " EBEABFD6514D32364E202020FF10181E"
170
+ "serialNumber" : " EBEABFD6514D32364E202020FF10181E" ,
171
+ "name" : " ttyACM0"
171
172
}
172
173
}
173
174
]
@@ -197,7 +198,8 @@ The `add` event looks like the following:
197
198
"properties" : {
198
199
"pid" : " 0x804e" ,
199
200
"vid" : " 0x2341" ,
200
- "serialNumber" : " EBEABFD6514D32364E202020FF10181E"
201
+ "serialNumber" : " EBEABFD6514D32364E202020FF10181E" ,
202
+ "name" : " ttyACM0"
201
203
},
202
204
"protocol" : " serial" ,
203
205
"protocolLabel" : " Serial Port (USB)"
@@ -306,7 +308,8 @@ Let’s see an example to clarify things a bit, let's suppose that we have the f
306
308
"properties" : {
307
309
"pid" : " 0x804e" ,
308
310
"vid" : " 0x2341" ,
309
- "serialNumber" : " EBEABFD6514D32364E202020FF10181E"
311
+ "serialNumber" : " EBEABFD6514D32364E202020FF10181E" ,
312
+ "name" : " ttyACM0"
310
313
}
311
314
[...CUT... ]
312
315
```
@@ -458,7 +461,8 @@ For example, the following port metadata coming from a pluggable discovery:
458
461
"properties": {
459
462
"pid": "0x804e",
460
463
"vid": "0x2341",
461
- "serialNumber": "EBEABFD6514D32364E202020FF10181E"
464
+ "serialNumber": "EBEABFD6514D32364E202020FF10181E",
465
+ "name": "ttyACM0"
462
466
},
463
467
"identificationPrefs": {
464
468
"pid": "0x804e",
@@ -476,6 +480,7 @@ will be available on the recipe as the variables:
476
480
{upload.port.pid} = 0x8043
477
481
{upload.port.vid} = 0x2341
478
482
{upload.port.serialNumber} = EBEABFD6514D32364E202020FF10181E
483
+ {upload.port.name} = ttyACM0
479
484
{serial.port} = ttyACM0 # for backward compatibility
480
485
{serial.port.file} = /dev/ttyACM0 # only because protocol=serial
481
486
```
0 commit comments