Several changes in the initial connection, see details:

* TestProxmark uses pingng
* New command CMD_CAPABILITIES to transmit capabilities from pm3 to host
* Use TestProxmark to retrieve capabilities with that new command
* CloseProxmark if TestProxmark fails
* Hide baudrate for USB and retrieve real baudrate from pm3 for BT
This commit is contained in:
Philippe Teuwen 2019-04-27 02:46:20 +02:00
commit e2e0b704c5
5 changed files with 54 additions and 15 deletions

View file

@ -136,6 +136,14 @@ typedef struct {
uint16_t read_gap;
} t55xx_config;
// TODO add more fields to report all hw & sw capabilities of pm3
typedef struct {
uint32_t baudrate;
bool via_fpc;
} PACKED capabilities_t;
extern capabilities_t pm3_capabilities;
// For the bootloader
#define CMD_DEVICE_INFO 0x0000
#define CMD_SETUP_WRITE 0x0001
@ -156,12 +164,9 @@ typedef struct {
#define CMD_VERSION 0x0107
#define CMD_STATUS 0x0108
#define CMD_PING 0x0109
#define CMD_DOWNLOAD_EML_BIGBUF 0x0110
#define CMD_DOWNLOADED_EML_BIGBUF 0x0111
#define CMD_CAPABILITIES 0x0112
// RDV40, Flash memory operations
#define CMD_FLASHMEM_READ 0x0120