mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-07-02 04:59:21 +00:00
Updated usb serial console (markdown)
parent
8d6a8f7e9d
commit
8b60cfc315
@ -1,47 +1,38 @@
|
|||||||
# USB Serial Console
|
# USB Serial Console
|
||||||
|
|
||||||
The PortaPack Mayhem firmware exposes a serial console via USB when connected to a Computer.
|
The PortaPack Mayhem firmware exposes a serial console via USB when connected to a computer.
|
||||||
|
|
||||||
https://hackrf.app/
|

|
||||||
|
|
||||||

|

|
||||||

|
|
||||||
|
|
||||||
|
|
||||||
Any serial terminal client can be used to connect like PuTTY, minicom, screen, etc. There are even web based ones (Chrome&Edge, no Firefox): https://www.serialterminal.com/ or use https://hackrf.app/
|
|
||||||
|
Any serial terminal client can be used to connect like PuTTY, minicom, screen, [HTerm](https://www.der-hammer.info/). There are even web based ones (Chrome&Edge, no Firefox): https://www.serialterminal.com/ or **https://hackrf.app/**
|
||||||
|
|
||||||
The terminal exposes the ChibiOS/RT Shell:
|
The terminal exposes the ChibiOS/RT Shell:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
# Available Commands
|
# Available Commands
|
||||||
* help
|
* `help`: lists all available commands.
|
||||||
* lists all available commands.
|
|
||||||
* 
|

|
||||||
* info
|
* `info`: shows the ChibiOS/RT system details.
|
||||||
* shows the ChibiOS/RT system details.
|
* `systime`: shows the uptime in ms.
|
||||||
* systime
|
* `reboot`: reboots the PortaPack. This will also work on devices where the reset button is not working.
|
||||||
* shows the uptime in ms.
|
* `dfu`: reboots the PortaPack into DFU firmware upgrade mode.
|
||||||
* reboot
|
* `hackrf`: Starts the original HackHF firmware to use the PortaPack as HackHF.
|
||||||
* reboots the PortaPack. This will also work on devices where the reset button is not working.
|
* `sd_over_usb`: Starts the [SD Over USB](SD-Over-USB) mode.
|
||||||
* dfu
|
* `flash`: This is the [Flash Utility](Flash-Utility).
|
||||||
* reboots the PortaPack into DFU firmware upgrade mode.
|
* `screenshot`: Takes a screenshot.
|
||||||
* hackrf
|
|
||||||
* Starts the original hackrf firmware to use the PortaPack as hackrf.
|

|
||||||
* sd_over_usb
|
* `write_memory`: Writes arbitrary memory locations.
|
||||||
* Starts the [SD Over USB](SD-Over-USB) mode.
|
|
||||||
* flash
|

|
||||||
* This is the [Flash Utility](Flash-Utility).
|
* `read_memory`: Reads arbitrary memory locations.
|
||||||
* screenshot
|
* `button`: Simulates a button press
|
||||||
* Takes a screenshot.
|
|
||||||
* 
|
|
||||||
* write_memory
|
|
||||||
* Writes arbitrary memory locations.
|
|
||||||
* 
|
|
||||||
* read_memory
|
|
||||||
* Reads arbitrary memory locations.
|
|
||||||
* button
|
|
||||||
* Simulates a button press.
|
|
||||||
* button 1: Right
|
* button 1: Right
|
||||||
* button 2: Left
|
* button 2: Left
|
||||||
* button 3: Down
|
* button 3: Down
|
||||||
@ -50,26 +41,21 @@ The terminal exposes the ChibiOS/RT Shell:
|
|||||||
* button 6: DFU
|
* button 6: DFU
|
||||||
* button 7: Rotary Left
|
* button 7: Rotary Left
|
||||||
* button 8: Rotary Right
|
* button 8: Rotary Right
|
||||||
* ls
|
* `ls`: Lists files and directories.
|
||||||
* Lists files and directories.
|
* `mkdir`: Creates a directory.
|
||||||
* mkdir
|
* `unlink`: Deletes a file.
|
||||||
* unlink
|
* `fopen`: Opens a file for reading and modification.
|
||||||
* Deletes a file.
|
> [!NOTE]
|
||||||
* fopen
|
> The current position will be set to the end of the file. Use `fseek 0` to move to the start of the file.
|
||||||
* Opens a file for reading and modification.
|
* `fseek`: Sets the current position inside the currently opened file.
|
||||||
* Note: The current position will be set to the end of the file. Use "fseek 0" to move to the start of the file.
|
* `fclose`: Closes the currently opened file.
|
||||||
* fseek
|
* `ftruncate`: removes all content in the file behind the current position.
|
||||||
* Sets the current position inside the currently opened file.
|
* `ftell`: shows the current position is the file.
|
||||||
* fclose
|
* `fread`: Reads n bytes from the currently opened file.
|
||||||
* Closes the currently opened file.
|
> [!TIP]
|
||||||
* ftruncate
|
> there is a faster binary read option: `frb`
|
||||||
* removes all content in the file behind the current position.
|
* `fwrite`: Writes bytes from the currently opened file.
|
||||||
* ftell
|
|
||||||
* shows the current position is the file.
|

|
||||||
* fread
|
> [!TIP]
|
||||||
* Reads n bytes from the currently opened file.
|
> there is a faster binary write option: `frw`
|
||||||
* there is a faster binary read option: frb
|
|
||||||
* fwrite
|
|
||||||
* Writes bytes from the currently opened file.
|
|
||||||
* 
|
|
||||||
* there is a faster binary write option: frw
|
|
Loading…
x
Reference in New Issue
Block a user