RfidResearchGroup / ChameleonUltra

The new generation chameleon based on NRF52840 makes the performance of card emulation more stable. And gave the chameleon the ability to read, write, and decrypt cards.
https://chameleonultra.com
GNU General Public License v3.0
873 stars 147 forks source link

Get "API not implemented" error with `hw slot init` #222

Open taichunmin opened 1 month ago

taichunmin commented 1 month ago

To Reproduce

hw connect
hw factory_reset --force

hw connect
hw slot change -s 1
hw slot init -s 1 -t MIFARE_4096
hw slot init -s 1 -t MIFARE_4096
hw slot init -s 1 -t MIFARE_4096
hw slot init -s 1 -t MIFARE_4096
hw slot init -s 1 -t MIFARE_4096

Expected behavior Should not throw error.

Screenshots If applicable, add screenshots to help explain your problem. For console text and logs, better to dump them as text than image. Attach files if too long.

Xnip2024-08-08_01-11-39

[Offline] chameleon --> hw connect
 { Chameleon Ultra connected: v2.0 }
[USB] chameleon --> hw version
 - Chameleon Ultra, Version: v2.0 (v2.0.0-200-gc771ae9)
[USB] chameleon --> hw factory_reset --force
 - Reset successful! Please reconnect.
[Offline] chameleon --> hw connect
 { Chameleon Ultra connected: v2.0 }
[USB] chameleon --> hw slot change -s 1
 - Set slot 1 activated success.
[USB] chameleon --> hw slot init -s 1 -t MIFARE_4096
 - Set slot tag data init success.
[USB] chameleon --> hw slot init -s 1 -t MIFARE_4096
 - Set slot tag data init success.
[USB] chameleon --> hw slot init -s 1 -t MIFARE_4096
 - Set slot tag data init success.
[USB] chameleon --> hw slot init -s 1 -t MIFARE_4096
 - Set slot tag data init success.
[USB] chameleon --> hw slot init -s 1 -t MIFARE_4096
Some api not implemented
[USB] chameleon -->

Host (please complete the following information):

Additional context Unplug ChameleonUltra and wait poweroff will reset the error. But the same commands will trigger this error again.

taichunmin commented 1 month ago

I guess this is memory leak, But I didn't have any debug tool like J-LINK.

taichunmin commented 1 month ago

I have test four different Chameleon Ultra (official & cloned). Every CU will encounter this error. But with different times of hw slot init -s 1 -t MIFARE_4096 command.