Skip to content

Latest commit

 

History

History
22 lines (12 loc) · 1.06 KB

simulator.md

File metadata and controls

22 lines (12 loc) · 1.06 KB

Simulator

Simulator requires SDL library to be installed (sudo apt install libsdl2-dev on Linux and brew install sdl2 on Mac).

Run make unix to get it. If everything goes well a micropython_unix binary will appear in the bin folder.

Start simulator using make simulate.

You should see the screen with the wallet interface. As in unixport we don't have QR code scanner or USB connector, so instead it simulates serial communication and USB on TCP ports: 5941 for QR scanner and 8789 for USB connection.

You can connect to these ports using telnet and type whatever you expect to be scanned / sent from the host.

The simulator is also printing content of the QR codes displayed on the screen to the console.

The simulator create folders in ./fs:

  • fs/flash - files that would be stored in the internal flash of the MCU
  • fs/qspi - files in external QSPI chip (untrusted, everything is stored encrypted and authenticated)
  • fs/ramdisk - files in external SPIRAM memory (work as temporary storage for host communication, untrusted)
  • fs/sd - SD card