![]() ![]() I am using XC32 and wonder if the code doesn't work with that compiler as configured. My SmartCard reader is a 'Teo by Xiring' Heres the log: 0000 INFO Adding atr.lua script to menu 0001 INFO Adding a script to. I tried on two different computers, with several Navigo cards. Many thanks for any suggestions and am happy to answer questions. Im using Cardpeek 0.7.1, on Windows Vista Home Premium and Windows Seven Home Premium Please provide any additional information below. I am now digging into the code to try and workout what it going wrong but would rather start with working code and move on to my own project. The Microchip demo carries on spewing garbage onto the USB bus, so it seems, and never stops. If I plug in a normal CCID I see the same progression of enumeration but, without a card in the slot, there is only a few back and forths that are card slot status request and responses and all goes quiet. BUT, once the device transitions from setup to Configured state the slot power goes off and the bus analyser shows a LOT of strange data on the USB lines, orphaned data, bad PID, and a constant stream of it. The unit starts up and gets through enumeration OK, so on both my Windows and Linux machines it is listed in the connected devices and the analyser shows pretty normal behaviour. I then watched it with a bus analyser (Beagle) to see what was going on. Just to be sure I grabbed a brand new copy of the code and compiled it anew and programmed the Explorer 16 board with it. ![]() On startup there is power to the card slot. If you know of a successful implementation, can you point me in the direction of the code used? If there is no feedback on this front, I'll get much more specific about the problems I see based on bus analysis. For instance, I am pretty sure it is computing the baud rate incorrectly as I tried using the DEBUG uart routines and found they were at a baud rate other than the one stated in the #define. The code seems to be not quite right for PIC32, maybe it was touched in house for PIC18 last and had something broken for PIC32. I can get the device to enumerate but it won't properly recognize any card I put into it and there are some odd behaviours I see on bus analysis. Has anyone managed to get the CCID Smart Card Reader code to work for a PIC32? I have tried it several times over, Explorer Board (PIC32MX795F512L PIM) and PIC32 USB Starter Kit III (PIC32MX795F512L) with no luck on either using the code provided in microchip_solutions_v as the newer version doesn't have it. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |