Commit Graph
14298 Commits
Author SHA1 Message Date
Niel Nielsen 23eba9491c Change printprogress to static and rename function
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-09-03 15:48:36 +02:00
Niel Nielsen 1bcae500fb Update cmdhw.c
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-09-03 15:43:39 +02:00
Niel Nielsen 2052dfedd9 Merge branch 'RfidResearchGroup:master' into BWM-work 2026-09-03 15:23:32 +02:00
Niel Nielsen 76e88f3d5d Add write delay parameter to bwm_ota_once function
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-09-03 15:14:43 +02:00
Niel Nielsen c4d4bdc99e Refactor OTA command handling and adjust sleep duration
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-09-03 15:08:06 +02:00
iceman1001 08a31f01db client now supports tilde sign '~/´ in paths 2026-09-03 14:59:37 +02:00
Niel Nielsen b8d31f0a81 Update cmdhw.c
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-09-03 14:43:38 +02:00
Niel Nielsen e2e0dabe3d Update cmdhw.c
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-09-03 14:26:36 +02:00
Niel Nielsen 21009dfc37 Increase sleep duration from 10ms to 20ms
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-09-03 14:18:50 +02:00
Niel Nielsen af0116bcfa Update cmdhw.c
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-09-03 14:04:50 +02:00
Niel Nielsen 8cb8e6d7c0 Update cmdhw.c
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-09-03 14:01:17 +02:00
Niel Nielsen 1e2faf0e6c Update cmdhw.c
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-09-03 13:59:14 +02:00
Niel Nielsen a911333c61 Extend sleep time during device reboot process
Increased sleep duration to allow for a longer reboot and re-negotiation period.

Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-09-03 13:37:48 +02:00
Niel Nielsen 7c6153d42b Add debug sleep for USB timeout in cmdhw.c
Added a sleep function for USB timeout debugging.

Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-09-03 13:27:06 +02:00
Niel Nielsen e05af0eea7 Refactor OTA reboot handling in cmdhw.c
Removed redundant reboot command and adjusted logging.

Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-09-03 13:04:59 +02:00
Niel Nielsen c98e5fe69f Refactor OTA finalize and version check logic
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-09-03 12:53:46 +02:00
Niel Nielsen 24e4181907 Merge branch 'RfidResearchGroup:master' into BWM-work 2026-09-03 12:50:56 +02:00
Niel Nielsen cac9e2d4cc Implement OTA abort handling in cmdhw.c
Added logic to restore fast link and log OTA abort action on firmware update failure.

Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-09-03 10:59:52 +02:00
Niel Nielsen 339f528bba Refactor BWM firmware upgrade process
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-09-03 10:45:06 +02:00
Niel Nielsen 8a27354d4b Refactor OTA response handling for clarity
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-09-03 09:44:45 +02:00
Niel Nielsen eb34578ea9 Refine maxchunk size calculation in cmdhw.c
Updated maxchunk calculation to consider BWM_OTA_CHUNK_MAX.

Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-09-03 09:17:09 +02:00
Niel Nielsen efed954b25 Update maxchunk calculation to use g_conn structure
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-09-03 08:20:33 +02:00
Jason Yuan 25401b6dd5 feat: improve ndef wsc parsing
Adds support for more attribute types and safe
error handling for unknown types. Fixes a bug
where the version attribute didn't increment the
cursor correctly causing an infinite loop.
2026-09-03 02:08:30 -04:00
Niel Nielsen bb42ca8ca7 Remove unused include for comms.h
Removed unused comms.h include from cmdhw.c

Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-09-03 08:03:06 +02:00
Niel Nielsen b6a1e0caf8 Add function prototype for pm3_max_cmd_data_size
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-09-03 07:20:03 +02:00
Niel Nielsen ed8fa3bd04 Remove unused function declaration
Removed unused function declaration for pm3_max_cmd_data_size.

Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-09-03 07:19:02 +02:00
Niel Nielsen 9cf3960f47 Declare pm3_max_cmd_data_size function
Added a new function declaration for pm3_max_cmd_data_size.

Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-09-03 07:11:35 +02:00
Niel Nielsen 4860890b5e Add comms.h include to cmdhw.c
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-09-03 07:10:42 +02:00
Niel Nielsen e89c30eeba Update length check for command data size
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-09-03 07:06:38 +02:00
Niel Nielsen 36d6535d7a Add files via upload
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-09-03 06:40:39 +02:00
Niel Nielsen 50b0259978 Add files via upload
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-09-03 06:36:07 +02:00
Niel Nielsen 8d8fa8733a Update length check for command data size
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-09-02 14:52:39 +02:00
Niel Nielsen eb9e6949ab Enhance BWM WiFi status reporting and logging
Refactor BWM WiFi status handling and improve logging messages.

Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-09-02 14:42:49 +02:00
Iceman d1e0476278 Merge pull request #3580 from nieldk/master
Update helptext in cmdhw.c
2026-09-02 14:51:45 +07:00
Matthew CarrollandClaude Opus 5 ff7766af77 lf t55xx: drop the psk3 candidates from detect because they can only misfire
Both psk3 entries run the same demodulation as the psk2 entry beside them and
differ only in the constant given to test(). test() accepts a word only when
that word's own modulation field matches the constant, so the psk3 entry needs
a recovered word whose field reads 3.

Field 3 is 00011, so it needs two adjacent 1's. What this demodulation recovers
is the data's rising edges, and a rising edge needs a 0 before the 1, so no two
of them are ever adjacent. The words it produces can never carry field 3, and so
the psk3 entries can never match the case they were written for.

What they can do, however, is match on a demodulation error, and then detect
names psk3 and a block 0 word the tag does not hold.

psk3 is still reached, by ruling psk2 out from the broadcast period rather
than by demodulating for it - see t55xx_psk3_resolve().

Tags that only these branches matched now read as psk2, or as undetected
where no offset yields a plausible psk2 word, on the basis that a wrong
answer is worse than none if nothing about it tells you it is wrong.

Edited by a human.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-01 23:54:34 -07:00
Matthew CarrollandClaude Opus 5 28a496d5bc lf t55xx: correctly report the psk2/psk3 ambiguity
The client demodulates psk2 and psk3 the same way, and against a psk3 tag
that demodulation keeps only the leading bit of every run of ones.  A psk3
config word therefore always reads back as its psk2 neighbour, one bit out,
and detect structurally cannot tell the two apart from the waveform alone.

It said psk2 anyway. Worse, the data-block probe meant to settle it
confidently answered psk3 even for a freshly wiped psk2 tag, where a page
of zeroes has no adjacent ones under either modulation.

Report what is actually known:

  - print "PSK2 or PSK3 ( ambiguous )" when the read fits both
  - list the words block 0 could be, rather than printing one and relegating
    the rest to a note
  - weight the probe's evidence, so empty blocks settle nothing
  - narrow that list with things the tag cannot hide - the subcarrier it
    transmits on, and how many blocks it broadcasts, which constrains MAXBLK and
    also rules out the sequence terminator

Where that leaves one word, block 0 reports it.  Where it does not, detect
says so rather than choosing.

Edited by a human.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-01 23:54:33 -07:00
Niel Nielsen aff38cc345 Update helptext in cmdhw.c
Removed instruction for full charge/discharge learning cycle.

Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-09-02 07:52:11 +02:00
Philippe Teuwen 38e0c068d9 A few less hardcoded 40000 samples 2026-09-01 19:54:05 +02:00
Iceman 0d8b99b2a1 Merge pull request #3571 from DidierA/aarch64
fixes compile fail on aarch64 (issue #3394)
2026-09-01 23:30:40 +07:00
Iceman 083cd7ac15 Merge pull request #3572 from xianglin1998/improve-sp-send-speed
Improve serialport send speed
2026-09-01 23:30:04 +07:00
dxl 02587820fb Optimize serial port transmission speed on Windows. 2026-09-02 00:04:12 +08:00
dxl 3ea93dfc85 Add the xyield macro function to yield the CPU. 2026-09-02 00:02:14 +08:00
Philippe Teuwen 0cde2124c8 Replace pm3_max_cmd_data_size() by g_conn.max_cmd_data_size 2026-09-01 17:58:14 +02:00
Philippe Teuwen b69fa20233 Precompute max_cmd_data_size in TestProxmark 2026-09-01 17:58:07 +02:00
Niel Nielsen ee22d0712e make style
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-09-01 17:57:31 +02:00
Niel Nielsen 9e1b63edce make style
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-09-01 17:57:31 +02:00
Niel Nielsen ef0b357c7a Add files via upload
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-09-01 17:57:31 +02:00
Niel Nielsen f8a0ed0096 Add files via upload
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-09-01 17:57:31 +02:00
Niel Nielsen db35ed4854 Add files via upload
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-09-01 17:57:31 +02:00
Niel Nielsen 23175240e8 Add files via upload
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-09-01 17:57:31 +02:00