Skip to content

Instantly share code, notes, and snippets.

@symm
Last active September 5, 2023 12:11
Show Gist options
  • Select an option

  • Save symm/f33368e49c7be50202edae3cbe68d113 to your computer and use it in GitHub Desktop.

Select an option

Save symm/f33368e49c7be50202edae3cbe68d113 to your computer and use it in GitHub Desktop.

Revisions

  1. symm revised this gist Sep 5, 2023. 1 changed file with 0 additions and 0 deletions.
    Binary file added ttl.jpg
    Loading
    Sorry, something went wrong. Reload?
    Sorry, we cannot display this file.
    Sorry, this file is invalid so it cannot be displayed.
  2. symm revised this gist Sep 5, 2023. 1 changed file with 18 additions and 0 deletions.
    18 changes: 18 additions & 0 deletions ui.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    ┌───────────────────────────────────────────────────────┐
    │ Service: RUNNING │
    │ Last scan: 2023-09-05 13:00:04 │
    │ Tag UID: 04:5E:92:C2:08:3C:80 │
    │ Tag text: │
    ├───────────────────────────────────────────────────────┤
    │ 12:59:05 opened connection: pn532_uart:/dev/ttyUSB0 p │
    │ n532_uart:/dev/ttyUSB0 │
    │ 12:59:05 polling for 20 times with 300ms delay │
    │ 13:00:04 card UID: 045e92c2083c80 │
    │ 13:00:04 card type: NTAG213 │
    │ 13:00:04 WARN no text NDEF found │
    │ 13:00:04 ERR error launching card: no text NDEF found │
    │ in card or database │
    │ 13:00:16 card removed │
    ├───────────────────────────────────────────────────────┤
    │ <Stop> <Exit> │
    └───────────────────────────────────────────────────────┘
  3. symm revised this gist Sep 5, 2023. 2 changed files with 2 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,2 +0,0 @@
    mkdir -p /etc/nfc/
    echo 'device.connstring = "pn532_uart:/dev/ttyUSB0"' > /etc/nfc/libnfc.conf
    2 changes: 2 additions & 0 deletions nfc.ini
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    [nfc]
    connection_string="pn532_uart:/dev/ttyUSB0"
  4. symm created this gist Sep 5, 2023.
    2 changes: 2 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    mkdir -p /etc/nfc/
    echo 'device.connstring = "pn532_uart:/dev/ttyUSB0"' > /etc/nfc/libnfc.conf
    6 changes: 6 additions & 0 deletions gistfile2.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    dmesg log:
    [ 273.098663] usb 1-1.2: new full-speed USB device number 6 using dwc2
    [ 273.187435] usb 1-1.2: New USB device found, idVendor=1a86, idProduct=5523, bcdDevice= 3.04
    [ 273.187472] usb 1-1.2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    [ 273.190084] ch341 1-1.2:1.0: ch341-uart converter detected
    [ 273.192037] usb 1-1.2: ch341-uart converter now attached to ttyUSB0