Comments (5)
其原因是有一些dump软件在保存数据时会添加/省略一些额外的配置字节。这些配置字节在正常ntag21x卡片中提供功能,但在amiibo识别中被忽略。amiitool工具在加解密时不在乎这些数据,pixljs在模拟时也会忽略这些数据从而可以更简单的实现amiibo的功能。
标准的ntag215卡片的dump数据大小就是540字节,这是毋庸置疑的。其他'非标'大小(532/572)的数据完全可以通过手动补'0'/截断来转换成标准dump数据,这对模拟amiibo没有任何影响。并且我也并不建议对这些'非标'文件进行兼容,要解决这个问题也很简单,在上传/接受文件时判断一下size就行
另外,目前bin的来源可以通过https://github.com/ca1e/amiitool.net 这个项目的-g
命令来生成全部数据,在pixljs的v3分支也在实现内置生成数据的功能,可以说以后在模拟流程中bin数据其实已经不再重要了。
from pixl.js.
感谢反馈,有意思的BUG,我回家测试下先。
from pixl.js.
更新一下,导致错误的bin比可以使用的bin大了32B。还没来得及看Amiibo dump的结构,难不成是数据部分?(但也不应该啊,毕竟NTAG215也只能写540B)前面的540B其实是一样的。
Update: 代码里是检测540B大小:https://github.com/solosky/pixl.js/blob/0783e4d85e1b5281c394124e2db47993ca617d32/fw/application/src/app/amiibo/scene/amiibo_scene_amiibo_detail.c#L60C1-L62
from pixl.js.
在pixljs的v3分支也在实现内置生成数据的功能,可以说以后在模拟流程中bin数据其实已经不再重要了。
这个蛮有意思的,这么说的话验证逻辑完全可以做进客户端(iOS/Android/Web),而不是服务端(pixl.js)。那么如果假设写入pixl.js的数据一定是有效的(540字节),睡眠死机的问题还需要debug吗?
from pixl.js.
功能函数执行失败返回报错时睡眠死机这个问题还是要解决的,这个issue只是导致报错的原因之一
from pixl.js.
Related Issues (20)
- Reset device confirmation HOT 13
- Pixl.js buyer guide HOT 4
- How to operate the CPU Flash? HOT 1
- 一个文件删除问题 HOT 1
- The amiibo emulator, how to add information to your own amiibos? HOT 7
- Is possible to implement fimrware update via NFC cardreaders via PC? HOT 18
- Any way to go back to the previous amiibo selection folder? HOT 6
- I can't delete or rename folder that i create HOT 2
- DIY compilation of the FW according to the instructions from the documents section and a confusing result of it. HOT 2
- Why Hungarian (Hungary) 'hu_HU.c' file mentioned twice in 'fw/application/Makefile' ? HOT 2
- More buttons? HOT 1
- Doubt about importing your amiibos HOT 4
- The 'amibo' application automatically adds two-dot ellipsis to (some) text lines. HOT 4
- Usage of both _L_ON/_L_OFF and _L_ON_F/_L_OFF_F to achieve a similar result - to display ON/OFF in square brackets. HOT 6
- How should the [More..] button of the 'Search' function of the 'Amiibo Database' app work if there are more than 100 search results? HOT 4
- The device does not want to show characters from the line [_L_APP_CHAMELEON_CARD_SET_NICK_FAILED] that are not Basic Latin. HOT 2
- Device won't power on after last fw update HOT 13
- Recursively upload directories HOT 2
- Adding a feature to Allmiibo (maybe) HOT 1
- contents of u8g2_font_wqy12_t_gb2312a.c HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pixl.js.