AHSAppDevTeam / Arcadia-High-Mobile-iOS

Official Github Repository for the iOS AHS Mobile App
MIT License
3 stars 1 forks source link

NFC erroring when writing to new readers #44

Closed richardwei6 closed 1 year ago

richardwei6 commented 1 year ago
WRITE TO TAG = (
    "TNF=4, Payload Type={length = 3, bytes = 0x613a68}, Payload ID={length = 1, bytes = 0x61}, Payload={length = 16, bytes = 0x86255894418f32993daf34158a224253}, ChunkSize=4294967295",
    "TNF=4, Payload Type={length = 3, bytes = 0x613a64}, Payload ID={length = 1, bytes = 0x61}, Payload={length = 3, bytes = 0xd1761b}, ChunkSize=4294967295"
)
ERROR WRITING TO TAG Error Domain=NFCError Code=401 "Stack Error" UserInfo={NSLocalizedDescription=Stack Error, NSUnderlyingError=0x28107a760 {Error Domain=nfcd Code=21 "writeNdefData:toTag:error::360" UserInfo={Line=360, NSLocalizedDescription=Connection Closed, NSDebugDescription=writeNdefData:toTag:error::360, Method=writeNdefData:toTag:error:}}}
richardwei6 commented 1 year ago

Could be possibly due to no NFC salt (need to reinvestigate on Tuesday)

DolphinGui commented 1 year ago

payload is defined here for reference.

DolphinGui commented 1 year ago

I won't lie this looks pretty close to this. I don't think it's an issue of the salt not being added, just looking at it. you may want to print out the hash and compare it to results from java code to try to see if that changes anything

richardwei6 commented 1 year ago

Appears that the issue isn't related to the new app but instead the new hardware. Will be investigating new hardware further but the current app will be released to public.