Andrzej Pietrasiewicz | e38eb2c | 2014-12-16 14:56:25 +0100 | [diff] [blame] | 1 | This file summarizes information on basic testing of USB functions |
| 2 | provided by gadgets. |
| 3 | |
| 4 | 1. ACM function |
Andrzej Pietrasiewicz | d5862ca | 2014-12-16 14:56:26 +0100 | [diff] [blame] | 5 | 2. ECM function |
Andrzej Pietrasiewicz | 7bfbc6e | 2014-12-16 14:56:27 +0100 | [diff] [blame] | 6 | 3. ECM subset function |
Andrzej Pietrasiewicz | 4ca560a | 2014-12-16 14:56:28 +0100 | [diff] [blame] | 7 | 4. EEM function |
Andrzej Pietrasiewicz | 2c0f62f | 2014-12-16 14:56:29 +0100 | [diff] [blame] | 8 | 5. FFS function |
Andrzej Pietrasiewicz | f7e3c3c | 2014-12-16 14:56:30 +0100 | [diff] [blame] | 9 | 6. HID function |
Andrzej Pietrasiewicz | ec91aff | 2014-12-16 14:56:31 +0100 | [diff] [blame] | 10 | 7. LOOPBACK function |
Andrzej Pietrasiewicz | cdbe287 | 2014-12-16 14:56:32 +0100 | [diff] [blame] | 11 | 8. MASS STORAGE function |
Andrzej Pietrasiewicz | 0d6be59 | 2014-12-16 14:56:33 +0100 | [diff] [blame] | 12 | 9. MIDI function |
Andrzej Pietrasiewicz | 4d0fa79 | 2014-12-16 14:56:34 +0100 | [diff] [blame] | 13 | 10. NCM function |
Andrzej Pietrasiewicz | d81b85d | 2014-12-16 14:56:35 +0100 | [diff] [blame] | 14 | 11. OBEX function |
Andrzej Pietrasiewicz | da2907d | 2014-12-16 14:56:36 +0100 | [diff] [blame] | 15 | 12. PHONET function |
Andrzej Pietrasiewicz | ddb7224 | 2014-12-16 14:56:37 +0100 | [diff] [blame^] | 16 | 13. RNDIS function |
Andrzej Pietrasiewicz | e38eb2c | 2014-12-16 14:56:25 +0100 | [diff] [blame] | 17 | |
| 18 | |
| 19 | 1. ACM function |
| 20 | =============== |
| 21 | |
| 22 | The function is provided by usb_f_acm.ko module. |
| 23 | |
| 24 | Function-specific configfs interface |
| 25 | ------------------------------------ |
| 26 | |
| 27 | The function name to use when creating the function directory is "acm". |
| 28 | The ACM function provides just one attribute in its function directory: |
| 29 | |
| 30 | port_num |
| 31 | |
| 32 | The attribute is read-only. |
| 33 | |
| 34 | There can be at most 4 ACM/generic serial/OBEX ports in the system. |
| 35 | |
| 36 | |
| 37 | Testing the ACM function |
| 38 | ------------------------ |
| 39 | |
| 40 | On the host: cat > /dev/ttyACM<X> |
| 41 | On the device : cat /dev/ttyGS<Y> |
| 42 | |
| 43 | then the other way round |
| 44 | |
| 45 | On the device: cat > /dev/ttyGS<Y> |
| 46 | On the host: cat /dev/ttyACM<X> |
Andrzej Pietrasiewicz | d5862ca | 2014-12-16 14:56:26 +0100 | [diff] [blame] | 47 | |
| 48 | 2. ECM function |
| 49 | =============== |
| 50 | |
| 51 | The function is provided by usb_f_ecm.ko module. |
| 52 | |
| 53 | Function-specific configfs interface |
| 54 | ------------------------------------ |
| 55 | |
| 56 | The function name to use when creating the function directory is "ecm". |
| 57 | The ECM function provides these attributes in its function directory: |
| 58 | |
| 59 | ifname - network device interface name associated with this |
| 60 | function instance |
| 61 | qmult - queue length multiplier for high and super speed |
| 62 | host_addr - MAC address of host's end of this |
| 63 | Ethernet over USB link |
| 64 | dev_addr - MAC address of device's end of this |
| 65 | Ethernet over USB link |
| 66 | |
| 67 | and after creating the functions/ecm.<instance name> they contain default |
| 68 | values: qmult is 5, dev_addr and host_addr are randomly selected. |
| 69 | Except for ifname they can be written to until the function is linked to a |
| 70 | configuration. The ifname is read-only and contains the name of the interface |
| 71 | which was assigned by the net core, e. g. usb0. |
| 72 | |
| 73 | Testing the ECM function |
| 74 | ------------------------ |
| 75 | |
| 76 | Configure IP addresses of the device and the host. Then: |
| 77 | |
| 78 | On the device: ping <host's IP> |
| 79 | On the host: ping <device's IP> |
Andrzej Pietrasiewicz | 7bfbc6e | 2014-12-16 14:56:27 +0100 | [diff] [blame] | 80 | |
| 81 | 3. ECM subset function |
| 82 | ====================== |
| 83 | |
| 84 | The function is provided by usb_f_ecm_subset.ko module. |
| 85 | |
| 86 | Function-specific configfs interface |
| 87 | ------------------------------------ |
| 88 | |
| 89 | The function name to use when creating the function directory is "geth". |
| 90 | The ECM subset function provides these attributes in its function directory: |
| 91 | |
| 92 | ifname - network device interface name associated with this |
| 93 | function instance |
| 94 | qmult - queue length multiplier for high and super speed |
| 95 | host_addr - MAC address of host's end of this |
| 96 | Ethernet over USB link |
| 97 | dev_addr - MAC address of device's end of this |
| 98 | Ethernet over USB link |
| 99 | |
| 100 | and after creating the functions/ecm.<instance name> they contain default |
| 101 | values: qmult is 5, dev_addr and host_addr are randomly selected. |
| 102 | Except for ifname they can be written to until the function is linked to a |
| 103 | configuration. The ifname is read-only and contains the name of the interface |
| 104 | which was assigned by the net core, e. g. usb0. |
| 105 | |
| 106 | Testing the ECM subset function |
| 107 | ------------------------------- |
| 108 | |
| 109 | Configure IP addresses of the device and the host. Then: |
| 110 | |
| 111 | On the device: ping <host's IP> |
| 112 | On the host: ping <device's IP> |
Andrzej Pietrasiewicz | 4ca560a | 2014-12-16 14:56:28 +0100 | [diff] [blame] | 113 | |
| 114 | 4. EEM function |
| 115 | =============== |
| 116 | |
| 117 | The function is provided by usb_f_eem.ko module. |
| 118 | |
| 119 | Function-specific configfs interface |
| 120 | ------------------------------------ |
| 121 | |
| 122 | The function name to use when creating the function directory is "eem". |
| 123 | The EEM function provides these attributes in its function directory: |
| 124 | |
| 125 | ifname - network device interface name associated with this |
| 126 | function instance |
| 127 | qmult - queue length multiplier for high and super speed |
| 128 | host_addr - MAC address of host's end of this |
| 129 | Ethernet over USB link |
| 130 | dev_addr - MAC address of device's end of this |
| 131 | Ethernet over USB link |
| 132 | |
| 133 | and after creating the functions/eem.<instance name> they contain default |
| 134 | values: qmult is 5, dev_addr and host_addr are randomly selected. |
| 135 | Except for ifname they can be written to until the function is linked to a |
| 136 | configuration. The ifname is read-only and contains the name of the interface |
| 137 | which was assigned by the net core, e. g. usb0. |
| 138 | |
| 139 | Testing the EEM function |
| 140 | ------------------------ |
| 141 | |
| 142 | Configure IP addresses of the device and the host. Then: |
| 143 | |
| 144 | On the device: ping <host's IP> |
| 145 | On the host: ping <device's IP> |
Andrzej Pietrasiewicz | 2c0f62f | 2014-12-16 14:56:29 +0100 | [diff] [blame] | 146 | |
| 147 | 5. FFS function |
| 148 | =============== |
| 149 | |
| 150 | The function is provided by usb_f_fs.ko module. |
| 151 | |
| 152 | Function-specific configfs interface |
| 153 | ------------------------------------ |
| 154 | |
| 155 | The function name to use when creating the function directory is "ffs". |
| 156 | The function directory is intentionally empty and not modifiable. |
| 157 | |
| 158 | After creating the directory there is a new instance (a "device") of FunctionFS |
| 159 | available in the system. Once a "device" is available, the user should follow |
| 160 | the standard procedure for using FunctionFS (mount it, run the userspace |
| 161 | process which implements the function proper). The gadget should be enabled |
| 162 | by writing a suitable string to usb_gadget/<gadget>/UDC. |
| 163 | |
| 164 | Testing the FFS function |
| 165 | ------------------------ |
| 166 | |
| 167 | On the device: start the function's userspace daemon, enable the gadget |
| 168 | On the host: use the USB function provided by the device |
Andrzej Pietrasiewicz | f7e3c3c | 2014-12-16 14:56:30 +0100 | [diff] [blame] | 169 | |
| 170 | 6. HID function |
| 171 | =============== |
| 172 | |
| 173 | The function is provided by usb_f_hid.ko module. |
| 174 | |
| 175 | Function-specific configfs interface |
| 176 | ------------------------------------ |
| 177 | |
| 178 | The function name to use when creating the function directory is "hid". |
| 179 | The HID function provides these attributes in its function directory: |
| 180 | |
| 181 | protocol - HID protocol to use |
| 182 | report_desc - data to be used in HID reports, except data |
| 183 | passed with /dev/hidg<X> |
| 184 | report_length - HID report length |
| 185 | subclass - HID subclass to use |
| 186 | |
| 187 | For a keyboard the protocol and the subclass are 1, the report_length is 8, |
| 188 | while the report_desc is: |
| 189 | |
| 190 | $ hd my_report_desc |
| 191 | 00000000 05 01 09 06 a1 01 05 07 19 e0 29 e7 15 00 25 01 |..........)...%.| |
| 192 | 00000010 75 01 95 08 81 02 95 01 75 08 81 03 95 05 75 01 |u.......u.....u.| |
| 193 | 00000020 05 08 19 01 29 05 91 02 95 01 75 03 91 03 95 06 |....).....u.....| |
| 194 | 00000030 75 08 15 00 25 65 05 07 19 00 29 65 81 00 c0 |u...%e....)e...| |
| 195 | 0000003f |
| 196 | |
| 197 | Such a sequence of bytes can be stored to the attribute with echo: |
| 198 | |
| 199 | $ echo -ne \\x05\\x01\\x09\\x06\\xa1..... |
| 200 | |
| 201 | Testing the HID function |
| 202 | ------------------------ |
| 203 | |
| 204 | Device: |
| 205 | - create the gadget |
| 206 | - connect the gadget to a host, preferably not the one used |
| 207 | to control the gadget |
| 208 | - run a program which writes to /dev/hidg<N>, e.g. |
| 209 | a userspace program found in Documentation/usb/gadget_hid.txt: |
| 210 | |
| 211 | $ ./hid_gadget_test /dev/hidg0 keyboard |
| 212 | |
| 213 | Host: |
| 214 | - observe the keystrokes from the gadget |
Andrzej Pietrasiewicz | ec91aff | 2014-12-16 14:56:31 +0100 | [diff] [blame] | 215 | |
| 216 | 7. LOOPBACK function |
| 217 | ==================== |
| 218 | |
| 219 | The function is provided by usb_f_ss_lb.ko module. |
| 220 | |
| 221 | Function-specific configfs interface |
| 222 | ------------------------------------ |
| 223 | |
| 224 | The function name to use when creating the function directory is "Loopback". |
| 225 | The LOOPBACK function provides these attributes in its function directory: |
| 226 | |
| 227 | qlen - depth of loopback queue |
| 228 | bulk_buflen - buffer length |
| 229 | |
| 230 | Testing the LOOPBACK function |
| 231 | ----------------------------- |
| 232 | |
| 233 | device: run the gadget |
| 234 | host: test-usb |
| 235 | |
| 236 | http://www.linux-usb.org/usbtest/testusb.c |
Andrzej Pietrasiewicz | cdbe287 | 2014-12-16 14:56:32 +0100 | [diff] [blame] | 237 | |
| 238 | 8. MASS STORAGE function |
| 239 | ======================== |
| 240 | |
| 241 | The function is provided by usb_f_mass_storage.ko module. |
| 242 | |
| 243 | Function-specific configfs interface |
| 244 | ------------------------------------ |
| 245 | |
| 246 | The function name to use when creating the function directory is "mass_storage". |
| 247 | The MASS STORAGE function provides these attributes in its directory: |
| 248 | files: |
| 249 | |
| 250 | stall - Set to permit function to halt bulk endpoints. |
| 251 | Disabled on some USB devices known not to work |
| 252 | correctly. You should set it to true. |
| 253 | num_buffers - Number of pipeline buffers. Valid numbers |
| 254 | are 2..4. Available only if |
| 255 | CONFIG_USB_GADGET_DEBUG_FILES is set. |
| 256 | |
| 257 | and a default lun.0 directory corresponding to SCSI LUN #0. |
| 258 | |
| 259 | A new lun can be added with mkdir: |
| 260 | |
| 261 | $ mkdir functions/mass_storage.0/partition.5 |
| 262 | |
| 263 | Lun numbering does not have to be continuous, except for lun #0 which is |
| 264 | created by default. A maximum of 8 luns can be specified and they all must be |
| 265 | named following the <name>.<number> scheme. The numbers can be 0..8. |
| 266 | Probably a good convention is to name the luns "lun.<number>", |
| 267 | although it is not mandatory. |
| 268 | |
| 269 | In each lun directory there are the following attribute files: |
| 270 | |
| 271 | file - The path to the backing file for the LUN. |
| 272 | Required if LUN is not marked as removable. |
| 273 | ro - Flag specifying access to the LUN shall be |
| 274 | read-only. This is implied if CD-ROM emulation |
| 275 | is enabled as well as when it was impossible |
| 276 | to open "filename" in R/W mode. |
| 277 | removable - Flag specifying that LUN shall be indicated as |
| 278 | being removable. |
| 279 | cdrom - Flag specifying that LUN shall be reported as |
| 280 | being a CD-ROM. |
| 281 | nofua - Flag specifying that FUA flag |
| 282 | in SCSI WRITE(10,12) |
| 283 | |
| 284 | Testing the MASS STORAGE function |
| 285 | --------------------------------- |
| 286 | |
| 287 | device: connect the gadget, enable it |
| 288 | host: dmesg, see the USB drives appear (if system configured to automatically |
| 289 | mount) |
Andrzej Pietrasiewicz | 0d6be59 | 2014-12-16 14:56:33 +0100 | [diff] [blame] | 290 | |
| 291 | 9. MIDI function |
| 292 | ================ |
| 293 | |
| 294 | The function is provided by usb_f_midi.ko module. |
| 295 | |
| 296 | Function-specific configfs interface |
| 297 | ------------------------------------ |
| 298 | |
| 299 | The function name to use when creating the function directory is "midi". |
| 300 | The MIDI function provides these attributes in its function directory: |
| 301 | |
| 302 | buflen - MIDI buffer length |
| 303 | id - ID string for the USB MIDI adapter |
| 304 | in_ports - number of MIDI input ports |
| 305 | index - index value for the USB MIDI adapter |
| 306 | out_ports - number of MIDI output ports |
| 307 | qlen - USB read request queue length |
| 308 | |
| 309 | Testing the MIDI function |
| 310 | ------------------------- |
| 311 | |
| 312 | There are two cases: playing a mid from the gadget to |
| 313 | the host and playing a mid from the host to the gadget. |
| 314 | |
| 315 | 1) Playing a mid from the gadget to the host |
| 316 | host) |
| 317 | |
| 318 | $ arecordmidi -l |
| 319 | Port Client name Port name |
| 320 | 14:0 Midi Through Midi Through Port-0 |
| 321 | 24:0 MIDI Gadget MIDI Gadget MIDI 1 |
| 322 | $ arecordmidi -p 24:0 from_gadget.mid |
| 323 | |
| 324 | gadget) |
| 325 | |
| 326 | $ aplaymidi -l |
| 327 | Port Client name Port name |
| 328 | 20:0 f_midi f_midi |
| 329 | |
| 330 | $ aplaymidi -p 20:0 to_host.mid |
| 331 | |
| 332 | 2) Playing a mid from the host to the gadget |
| 333 | gadget) |
| 334 | |
| 335 | $ arecordmidi -l |
| 336 | Port Client name Port name |
| 337 | 20:0 f_midi f_midi |
| 338 | |
| 339 | $ arecordmidi -p 20:0 from_host.mid |
| 340 | |
| 341 | host) |
| 342 | |
| 343 | $ aplaymidi -l |
| 344 | Port Client name Port name |
| 345 | 14:0 Midi Through Midi Through Port-0 |
| 346 | 24:0 MIDI Gadget MIDI Gadget MIDI 1 |
| 347 | |
| 348 | $ aplaymidi -p24:0 to_gadget.mid |
| 349 | |
| 350 | The from_gadget.mid should sound identical to the to_host.mid. |
| 351 | The from_host.id should sound identical to the to_gadget.mid. |
| 352 | |
| 353 | MIDI files can be played to speakers/headphones with e.g. timidity installed |
| 354 | |
| 355 | $ aplaymidi -l |
| 356 | Port Client name Port name |
| 357 | 14:0 Midi Through Midi Through Port-0 |
| 358 | 24:0 MIDI Gadget MIDI Gadget MIDI 1 |
| 359 | 128:0 TiMidity TiMidity port 0 |
| 360 | 128:1 TiMidity TiMidity port 1 |
| 361 | 128:2 TiMidity TiMidity port 2 |
| 362 | 128:3 TiMidity TiMidity port 3 |
| 363 | |
| 364 | $ aplaymidi -p 128:0 file.mid |
| 365 | |
| 366 | MIDI ports can be logically connected using the aconnect utility, e.g.: |
| 367 | |
| 368 | $ aconnect 24:0 128:0 # try it on the host |
| 369 | |
| 370 | After the gadget's MIDI port is connected to timidity's MIDI port, |
| 371 | whatever is played at the gadget side with aplaymidi -l is audible |
| 372 | in host's speakers/headphones. |
Andrzej Pietrasiewicz | 4d0fa79 | 2014-12-16 14:56:34 +0100 | [diff] [blame] | 373 | |
| 374 | 10. NCM function |
| 375 | ================ |
| 376 | |
| 377 | The function is provided by usb_f_ncm.ko module. |
| 378 | |
| 379 | Function-specific configfs interface |
| 380 | ------------------------------------ |
| 381 | |
| 382 | The function name to use when creating the function directory is "ncm". |
| 383 | The NCM function provides these attributes in its function directory: |
| 384 | |
| 385 | ifname - network device interface name associated with this |
| 386 | function instance |
| 387 | qmult - queue length multiplier for high and super speed |
| 388 | host_addr - MAC address of host's end of this |
| 389 | Ethernet over USB link |
| 390 | dev_addr - MAC address of device's end of this |
| 391 | Ethernet over USB link |
| 392 | |
| 393 | and after creating the functions/ncm.<instance name> they contain default |
| 394 | values: qmult is 5, dev_addr and host_addr are randomly selected. |
| 395 | Except for ifname they can be written to until the function is linked to a |
| 396 | configuration. The ifname is read-only and contains the name of the interface |
| 397 | which was assigned by the net core, e. g. usb0. |
| 398 | |
| 399 | Testing the NCM function |
| 400 | ------------------------ |
| 401 | |
| 402 | Configure IP addresses of the device and the host. Then: |
| 403 | |
| 404 | On the device: ping <host's IP> |
| 405 | On the host: ping <device's IP> |
Andrzej Pietrasiewicz | d81b85d | 2014-12-16 14:56:35 +0100 | [diff] [blame] | 406 | |
| 407 | 11. OBEX function |
| 408 | ================= |
| 409 | |
| 410 | The function is provided by usb_f_obex.ko module. |
| 411 | |
| 412 | Function-specific configfs interface |
| 413 | ------------------------------------ |
| 414 | |
| 415 | The function name to use when creating the function directory is "obex". |
| 416 | The OBEX function provides just one attribute in its function directory: |
| 417 | |
| 418 | port_num |
| 419 | |
| 420 | The attribute is read-only. |
| 421 | |
| 422 | There can be at most 4 ACM/generic serial/OBEX ports in the system. |
| 423 | |
| 424 | Testing the OBEX function |
| 425 | ------------------------- |
| 426 | |
| 427 | On device: seriald -f /dev/ttyGS<Y> -s 1024 |
| 428 | On host: serialc -v <vendorID> -p <productID> -i<interface#> -a1 -s1024 \ |
| 429 | -t<out endpoint addr> -r<in endpoint addr> |
| 430 | |
| 431 | where seriald and serialc are Felipe's utilities found here: |
| 432 | |
| 433 | https://git.gitorious.org/usb/usb-tools.git master |
Andrzej Pietrasiewicz | da2907d | 2014-12-16 14:56:36 +0100 | [diff] [blame] | 434 | |
| 435 | 12. PHONET function |
| 436 | =================== |
| 437 | |
| 438 | The function is provided by usb_f_phonet.ko module. |
| 439 | |
| 440 | Function-specific configfs interface |
| 441 | ------------------------------------ |
| 442 | |
| 443 | The function name to use when creating the function directory is "phonet". |
| 444 | The PHONET function provides just one attribute in its function directory: |
| 445 | |
| 446 | ifname - network device interface name associated with this |
| 447 | function instance |
| 448 | |
| 449 | Testing the PHONET function |
| 450 | --------------------------- |
| 451 | |
| 452 | It is not possible to test the SOCK_STREAM protocol without a specific piece |
| 453 | of hardware, so only SOCK_DGRAM has been tested. For the latter to work, |
| 454 | in the past I had to apply the patch mentioned here: |
| 455 | |
| 456 | http://www.spinics.net/lists/linux-usb/msg85689.html |
| 457 | |
| 458 | These tools are required: |
| 459 | |
| 460 | git://git.gitorious.org/meego-cellular/phonet-utils.git |
| 461 | |
| 462 | On the host: |
| 463 | |
| 464 | $ ./phonet -a 0x10 -i usbpn0 |
| 465 | $ ./pnroute add 0x6c usbpn0 |
| 466 | $./pnroute add 0x10 usbpn0 |
| 467 | $ ifconfig usbpn0 up |
| 468 | |
| 469 | On the device: |
| 470 | |
| 471 | $ ./phonet -a 0x6c -i upnlink0 |
| 472 | $ ./pnroute add 0x10 upnlink0 |
| 473 | $ ifconfig upnlink0 up |
| 474 | |
| 475 | Then a test program can be used: |
| 476 | |
| 477 | http://www.spinics.net/lists/linux-usb/msg85690.html |
| 478 | |
| 479 | On the device: |
| 480 | |
| 481 | $ ./pnxmit -a 0x6c -r |
| 482 | |
| 483 | On the host: |
| 484 | |
| 485 | $ ./pnxmit -a 0x10 -s 0x6c |
| 486 | |
| 487 | As a result some data should be sent from host to device. |
| 488 | Then the other way round: |
| 489 | |
| 490 | On the host: |
| 491 | |
| 492 | $ ./pnxmit -a 0x10 -r |
| 493 | |
| 494 | On the device: |
| 495 | |
| 496 | $ ./pnxmit -a 0x6c -s 0x10 |
Andrzej Pietrasiewicz | ddb7224 | 2014-12-16 14:56:37 +0100 | [diff] [blame^] | 497 | |
| 498 | 13. RNDIS function |
| 499 | ================== |
| 500 | |
| 501 | The function is provided by usb_f_rndis.ko module. |
| 502 | |
| 503 | Function-specific configfs interface |
| 504 | ------------------------------------ |
| 505 | |
| 506 | The function name to use when creating the function directory is "rndis". |
| 507 | The RNDIS function provides these attributes in its function directory: |
| 508 | |
| 509 | ifname - network device interface name associated with this |
| 510 | function instance |
| 511 | qmult - queue length multiplier for high and super speed |
| 512 | host_addr - MAC address of host's end of this |
| 513 | Ethernet over USB link |
| 514 | dev_addr - MAC address of device's end of this |
| 515 | Ethernet over USB link |
| 516 | |
| 517 | and after creating the functions/rndis.<instance name> they contain default |
| 518 | values: qmult is 5, dev_addr and host_addr are randomly selected. |
| 519 | Except for ifname they can be written to until the function is linked to a |
| 520 | configuration. The ifname is read-only and contains the name of the interface |
| 521 | which was assigned by the net core, e. g. usb0. |
| 522 | |
| 523 | By default there can be only 1 RNDIS interface in the system. |
| 524 | |
| 525 | Testing the RNDIS function |
| 526 | -------------------------- |
| 527 | |
| 528 | Configure IP addresses of the device and the host. Then: |
| 529 | |
| 530 | On the device: ping <host's IP> |
| 531 | On the host: ping <device's IP> |