Home

NFC/RFID R E A D E R M O D U L E @ 13,56 MHz

image

Contents

1. VCP ARYGON Core Module Version A ARYGON Plug and Play Module Version A Reader Module SmartMx peer to peer passive active Near Field Communication Philips Reader IC Philips Reader IC nickname for PN53x Not applicable Mifare proximity card Application Programming Interface Integrated Development Environment Virtual com port 2 2 Document information Info Content Keywords MIFARE NFC PN531 Absiract This document describes the Frequently Asked Questions ARYGON_FREQUENTLY_ASKED_QUESTIONS_AFAQ_05 doc Page 4 of 21 ARYGON TECHNOLOGIES AG Frequently Asked Questions AFAQ 3 Frequently Asked Questions 3 1 Hardware a What do I have to consider when connecting an ARYGON reader via RS232 interface e g APPA23205 Some PC hardware and software dislike floating levels on their open RS232 Com Port pins To avoid problems the null modem principle is strongly recommended Otherwise many unnecessary interrupts level CTS DSR or RI can occur If a user wants to connect the RS232 reader direct to a standard PC the following wiring should be considered Nullmodem principle with Nullmodem cable PC Host Nullmodem Reader SubD male Wire SubD male 2 x SubD female Reader Pins D Fg TX Nullmodem principle with Straight Through cable PC Host Extension Reader SubD male Cable SubD female female to male Reader Pins ID E TX ARYGON_FREQUENTLY_ASKED_QUESTIONS_A
2. ZEN CE 2 NFC RFIDREADER MODULE 13 56 MHz Frequently Asked Questions 0 5 ARYGON TECHNOLOGIES Erthalstrasse 1 D 55118 Mainz Germany Phone 49 0 61 31 30476 0 Fax 49 0 61 31 30 476 20 info arygon com http www arygon com ARYGON TECHNOLOGIES AG Frequently Asked Questions AFAQ Document Frequently Asked Questions Author J Schneider T Baur A Kretschmann Current Version 0 5 Date April 2008 Document history Revision Date Description 0 1 September 2006 First published version 0 2 October 2006 12C behaviour was added 0 3 February 2007 3 2 2 e LL command MxRt yPassiveActivation are described 0 4 August 2007 Merged with document Abstract 0 1 0 5 April 2008 FAQ n and o added RS232 interface a changed Contact information For additional information and sales office addresses visit http www arygon com or http www nfc global com All rights reserved Copyright by Arygon Technologies AG 2007 ARYGON_FREQUENTLY_ASKED_QUESTIONS_AFAQ_05 doc Page 2 of 21 ARYGON TECHNOLOGIES AG Frequently Asked Questions AFAQ Contents 1 Description sisstavisiuscnvecewsenvarsunterssevsiavaseaneeusdowsiewarsunbendseun 4 2 Conventions and notatiONS 2222222222522s22522222s22222s22522522s2222 4 2 1 AbbreviatiONS 252252252222225225225222222222222222222222222222222222222222222222 2 amp 2 2 Document informatiON s s22s2 22222222222222222222
3. level language The availability of languages depends on the mounting of the printed circuit board Therefore you have to make a difference between uC equipped and no uC equipped The availability of the uC is mandatory in case of gt Stand alone applications like access control gt Wiegand interface gt Party line applications RS485 RS422 12C gt High level language usage in any terminal program for easier testing gt High level language usage in Mifare applications where checksum handling is not required or not possible because of host limitations gt Personalization of the Reader Only with uC equipped it is possible to store the Mifare authentication keys into the Reader uC EEPROM TAMA provides no user EEPROM gt Storing the NFC Open Identifier data gt DES 3DES encryption decryption for Desfire Tags or for NFC peer to peer communications with ciphering gt More than two user GPIO pins needed for extra digital switching or digital read functions TAMA offers two user GPIOs uC offers 9 user GPIOs a PWM output pins and an analog input pin gt Standard LCD interface needed gt Performing a TAMA hardware reset via a software command from host to uC Protocol modes uC equipped Several protocol modes are supported via a mode select command byte which is sent as first Byte in every data packet from host to the uC The mode select command byte tells the equipped uC how the followi
4. return TRUE ARYGON_FREQUENTLY_ASKED_QUESTIONS_AFAQ_05 doc Page 14 of 21 ARYGON TECHNOLOGIES AG Frequently Asked Questions AFAQ k What do I have to consider in case of connecting an ARYGON Reader via I2C e g APPA11205 At the beginning it should be mentioned that TAMA is not comparable with an 12C EEPROM 1 As first according the 12C specification accidentally bit changes because of EMC influence are not allowed The complete circuit must ensure that all lines are kept very short max 10cm and that they are absolutely stabled and protected I2C is not comparable with UART or RS232 RS485 or USB because line buses are tolerant for bit interferences I2C absolutely not In 12C environment all devices can hang if for example the ACK bit Start or stop condition will fail 2 We have observed that sometimes the TAMA 12C ACK Bit is missing but this is allowed If the polling read command is sent to fast to the TAMA and the TAMA is busy then it happens that the TAMA sends no ACK bit According to 12C specification When a slave doesn t acknowledge the slave address for example it s unable to receive or transmit because it s performing some real time function the data line must be left HIGH by the slave The master can then generate either a STOP condition to abort the transfer or a repeated START condition to start a new transfer In order to understand the behaviour please read the following inves
5. 22222222222222222222222222222 amp 3 Frequently Asked QUESOS wisivavtnwisrevinigadenietssansewnares 5 3 1 HArdWaAalCuuncuncncnnnncnnnnenennanennaneunonennunenennaneunoneunonennoneneonensunonsunan D a What do I have to consider when connecting an ARYGON reader via RS232 interface e g APPA2320O5 wseseseuccecececucucucucucucusuneauaeececseueueueesensauasaseeeeueusueusueusuauauanaes 5 c Which kind of LCD display supports the ARYGON reader module and how can I use IEP usastatssaccnanunsedasaes aeaa Eaa ARa aaa 6 3 2 SOP Wal s nin na in i ERE na nann a Which protocol modes are available as host interface 1scscceccccececensnennenennsensensenseen 7 b Can you show me the ARYGON high level language command set sssscsessenneneensees 8 c What does the response packet mean in case of high level command select a Si gle CAPA CAG aanccueceunucununennenecucucueueueusuauaeaseceeseueueususuauauaeauaeaeueueueusuaeneauasasaeseueneusuguns 9 d How can I switch on off the LED on the ARYGON desktop reader ADRA 0 0 100 10 e Is there a DLL or API for the ARYGON reader modules available s sccecseceeensnnsens 10 f Which drivers are available for the ARYGON desktop reader or USB Readers 10 g Can I read DESFire cards with the ARYGON reader modules csecccnececenseennenennseen 10 h I set my NFC enabled phone e g Nokia or Samsung to Mifare 1k virtual card mode but the ARYGON NFC Mifare reader doesn t respond the expected
6. A D4 32 05 FF 00 02 F4 00 0x02 3 times MxRtyPassiveActivation 0x00 is not possible Step 2 PC gt RM INITIATOR Os uC Select a single Card 106 kBaud card RM gt PC FF 00 00 00 Response OK Card detected RM gt PC FF 00 00 16 4B 01 01 04 00 08 04 64 FD 6B 36 Response tag detected No Card detected RM gt PC FF 00 00 16 4B 00 Response tag isn t detected m I want to use the T CL APDU Frame Is this supported Yes the PN53x reader family supports the 1S014443 4 T CL protocol Also called wrapped ISO7816 APDU frame All normal processor based cards uses this IS014443 4 T CL protocol The PN531 has a limitation according the loaddata length but this problem is solved in the PN532 Short APDU frames are supported n What can be the reason if the reader module sends absolute no packet back to the host and this depending on the selected UART baud rate This can happen if you are using a variant equipped with ARYGON Controller and PN531 or PN532 Then if you have selected different baud rates between host to ARYGON controller and ARYGON Controller to TAMA Condition The TAMA PN531 or PN532 is running with 115 2 kBaud PN532 starts always with 115 2 kBaud as default To be downwards compatible to our existing reader modules with the PN531 our uC provides to the host still 9600Baud But to the TAMA side we have now always 115 2kBaud as default Also the RSTPDN Pin have we to invert in case
7. FAQ_05 doc Page 5 of 21 ARYGON TECHNOLOGIES AG Frequently Asked Questions AFAQ b Is it possible to use the ARYGON NFC Mifare reader module as door opener Yes of course but you have to add an additional circuit The user I O ports supply only a current of max 15mA Therefore an additional amplification is necessary to get a minimum current of 1A Example of an I O port amplifier schematic e g 8 12V 1A Vcc 5V Door opener Pri DC 5V 56 Ohm Relais Sec 50 230V Self induction recuperation diode Noise suppresion Arygon Reader ACMA or APPA I O Port TTL Pegel 5V 15mA c Which kind of LCD display supports the ARYGON reader module and how can I use it As hardware interface we use 9 pins to the Samsung KSO066 or HD44780 display controllers or compatible 4 bit bi directional data bus 3 control lines 2 pins for power supply 5V and GND All those pins are provided by the ARYGON reader module It supports 2 x 20 or 2 x 40 characters The command sets are in ASCII command as well Get in touch with us to get the document ANSW_Display_10 pdf ARYGON_FREQUENTLY_ASKED_QUESTIONS_AFAQ_05 doc Page 6 of 21 ARYGON TECHNOLOGIES AG Frequently Asked Questions AFAQ 3 2 Software a Which protocol modes are available as host interface ARYGON distinguishes between two languages ARYGON high level language TAMA low
8. answer Whatt S WONG aacecccccccccucueunenuncecucueueuaueuneaeasaeasaeeeueueueusueuaeuaeasasaeeeeeeeuguauaeauasaeasasaenenens 11 i Which Mifare commands are available in case of TAMA low level language 12 j Is there a source code for developing with the mounting of no uC equipped BV ANADIC E A A T E 12 k What do I have to consider in case of connecting an ARYGON Reader via I C e g APPA1I205 P ossrsuiedorosiarisasunadauaa andina Eea EEEN a 15 m I want to use the T CL APDU Frame Is this supported sccccececseeeeeueneeenenenens 18 n What can be the reason if the reader module sends absolute no packet back to the host and this depending on the selected UART baud rate scccsscensncecnnnensnencnneensnsnens 18 o Why is the wake up handshake part of the order information and when is it necessary to order a module with wake up handshake enabled scsccesececeneeenenenens 19 4 Referens ipisnspiniecnedeuiedieuRhandned sue ndiewninaiaeieuneidenitusdnadevers ce L ARYGON_FREQUENTLY_ASKED_QUESTIONS_AFAQ_05 doc Page 3 of 21 ARYGON TECHNOLOGIES AG Frequently Asked Questions 1 Description AFAQ About this document This document summarises some questions which we have got from our customers Get in contact with us if you have any further questions or ideas in order to improve our support 2 Conventions and notations 2 1 Abbreviations ACMA APPA RM SMX p2p NFC PN531 TAMA NA PICC API IDE
9. aud rate used then the TAMA sends nothing to the host to our controller in case of our Reader modules That is exactly the case if we have 9600 Baud to the host side and 115 2 kBaud to the TAMA side Work around That means our module equipped with ARYGON Controller and the PN532 can not exchanged without any additional manipulating of the baud rates The surest method will be to switch via the ARYGON high level language the TAMA baud rate to the same value as the ARYGON controller has to the host side Then NFC peer to peer will work This is valid for modules equipped with ARYGON Controller and PN531 or PN532 with UART interface In case of reader modules with ARYGON Controller with 12C host interface it should be checked that the host I2C Clock is near to 100 kbit s kHz o Why is the wake up handshake part of the order information and when is it necessary to order a module with wake up handshake enabled The TAMA wake up handshake mechanism is enabled or disabled by a boot config resistor This boot config resistor is mounted or not depending on the order information Y or N refer to the datasheets If the wake up handshake is enabled then a module with TAMA only will not work if the host does not support the additional wake up handshake lines IRQ Interrupt Request and HReq Host Request That is the reason why this appears in the order information in module variants without ARYGON uC With ARYGON uC equipped the Host wake up ha
10. automatic selection of 1SO14443 4 low level language PC gt RM SET TAMA PARAMETERS 00 00 FF 03 FD D4 12 04 16 00 RM gt PC ACK 00 00 FF 00 FF 00 RM gt PC SET TAMA PARAMETERS EXECUTED 00 00 FF 02 FE D5 13 18 00 Default mode 1SO14443 4 PC gt RM INITIATOR Os uC Select a single Card 106 kBaud Card RM gt PC FF 00 00 00 Response OK RM gt PC FF 00 00 30 4B 01 01 04 00 28 04 30 44 1C 80 OD 78 80 80 02 00 73 C8 40 00 00 90 00 Response NFC enabled Phone Mifare mode low level language PC gt RM SET TAMA PARAMETERS 00 00 FF 03 FD D4 12 04 16 00 RM gt PC ACK 00 00 FF 00 FF 00 RM gt PC SET TAMA PARAMETERS EXECUTED 00 00 FF 02 FE D5 13 18 00 High Level in ASCII PC gt RM INITIATOR Os uC Select a single Card 106 kBaud card RM gt PC FF 00 00 00 Response OK RM gt PC FF 00 00 16 4B 01 01 04 00 28 04 FO E1 1C 80 Response of the NFC enabled phone ARYGON_FREQUENTLY_ASKED_QUESTIONS_AFAQ_05 doc Page 11 of 21 ARYGON TECHNOLOGIES AG Frequently Asked Questions AFAQ i Which Mifare commands are available in case of TAMA low level language Mifare command set PCD TAMA Command set supported by TAMA PICC_REQIDL 0x26 TAMA only intern PICC_REQALL 0x52 TAMA only intern PICC_ANTICOLL1 0x93 TAMA only intern PICC_ANTICOLL11 0x92 TAMA only intern PICC_ANTICOLL12 0x94 TAMA only intern PICC_ANTICOLL13 0x98 TAMA only intern PICC_ANTICOLL2 0x95 TAMA only
11. halt of RF Configuration switch off antenna p Polling for tags with autonomous periodic wake up from sleep mode Select a single card with reduced power consumption ARYGON_FREQUENTLY_ASKED_QUESTIONS_AFAQ_05 doc Page 8 of 21 Frequently Asked Questions AFAQ ARYGON TECHNOLOGIES AG Frequently Asked Questions AFAQ c What does the response packet mean in case of high level command select a single card tag PC gt RM Os 0 mode 0 s select a single card tag RM gt PC FF0000 16 4B 01 01 04 00 08 04 32EEED2E Case Mifare standard 1k FF0000 Status refer to uC response packet 16 User data length number of character in Hex 4B TAMA InListPassiveTarget Response packet 01 Number of initialized targets 01 Target Number 0400 SENS_RES Answer to request 08 SEL_RES card Type 08 Mifare standard answer to select 04 Card ID NFCID1 length 32EEED2E Card ID NFCID1 Refer to PN531 User Manual Case Mifare Ultralight FF0000 Status refer to uC response packet 1E User data length number of character in Hex 4B TAMA InListPassiveTarget response packet 01 Number of initialized targets 01 Target number 4400 SENS_RES 00 SEL_RES card Typ 00 Mifare UltraLight 08 Card ID NFCID1 length 880468621 1127A00 Card ID NFCID1 Case Mifare standard 4k FF0000 Status refer to uC response packet 16 User data length number of character i
12. intern PICC_ANTICOLL3 0x97 TAMA only intern gt The command 4A 01 00 InListPassiveTarget masks the commands mentioned before PICC_AUTHENT1A 0x60 400160 15 FF FF FF FF FF FF 82 63 58 32 PICC_AUTHENT1B 0x61 400161 20 FF FF FF FF FF BB F207 EE 2E PICC_READ16 0x30 40013015 PICC_WRITE16 OxAO 4001 AO 20 01 02 03 04 05 06 07 08 09 OA OB OC OD OF 10 11 PICC_WRITE4 OxA2 4001 A2 21 01 02 03 04 PICC_DECREMENT 0xCO 4001 CO 21 04 00 00 00 PICC_INCREMENT 0xC1 4001 C1 21 04 00 00 00 PICC_RESTORE OxC2 4001 C2 15 PICC_TRANSFER OxBO 4001 BO 16 PICC_HALT 0x50 4401 TAMA InDeselect command RF off 32 01 00 Refer to PN531 User Manual In case of Increment Decrement or Restore copy there is a combination with command TRANSFER necessary j Is there a source code for developing with the mounting of no uC equipped available Yes following you find our source code for building the TAMA command frames ARYGON_FREQUENTLY_ASKED_QUESTIONS_AFAQ_05 doc Page 12 of 21 ARYGON TECHNOLOGIES AG Frequently Asked Questions AFAQ Building of frame structure from host uC to TAMA refer to PN531 User Manual info begin typedef struct uchar ptr read write pointer uchar buff BUFLENGTH2 F rxstruct typedef struct uchar anz_data 0 empty buflength full uchar rd_ptr read pointer uchar wr_ptr write pointer uchar buff BUFLENGTH rngbuffstruct for rng_wr_txbufl info end void build_tama_fra
13. me rxstruct buff uchar checks anz i folgend uchar Typecast gt autom int erweiterung verhindern BasyCODE anz buff gt ptr 1 rng_wr_txbuf1 0x00 preamble rng_wr_txbufl 0x00 start code rng_wr_txbufl OxFF start code rng_wr_txbufl anz LEN rng_wr_txbufl1 uchar anz LEN checksum rng_wr_txbuf1 0xD4 TFI from Host to TAMA checks 0xD4 for i 0 i lt buff gt ptr i rng_wr_txbufl buff gt buff i checks buff gt buff i rng_wr_txbufl1 uchar checks packet data checksum rng_wr_txbuf1 0x00 postamble TXLIE 1 ARYGON_FREQUENTLY_ASKED_QUESTIONS_AFAQ_05 doc Page 13 of 21 ARYGON TECHNOLOGIES AG Frequently Asked Questions AFAQ TAMA frame check after receiving a TAMA response uchar tama_checks rxstruct buff Reponse TRUE Checksum ok FALSE Checksum wrong packet length or packet data af uchar checks i following uchar Typecast gt autom int enhancement are prohibited if buff gt buff 3 0 if buff gt buff 4 uchar buff gt buff 3 packet length checks wrong return FALSE checks 0 for i 0 i lt buff gt buff 3 i checks buff gt buff it 5 if buff gt buff buff gt buff 3 5 uchar checks packet data checks wrong return FALSE if buff gt buff 5 Ox7F errorl 9 else Tama ack packet
14. n Hex 4B TAMA InListPassiveTarget response packet 01 Number of initialized targets 01 Target number 0200 SENS_RES 18 SEL_RES card Typ 18 Mifare 4k 04 Card ID NFCID1 length 56347400 Card ID NFCID1 ARYGON_FREQUENTLY_ASKED_QUESTIONS_AFAQ_05 doc Page 9 of 21 ARYGON TECHNOLOGIES AG Frequently Asked Questions AFAQ d How can I switch on off the LED on the ARYGON desktop reader ADRA Our LEDs are no power LED They are controlled by the user application with the ARYGON high level language LED commands Set the I O LED Ports to output only once Oapcecd0200 red LED Oapcecd600 green LED Switch LED to on OapwoO201 red LED OapwoO601 green LED Switch LED to off Oapwod200 OapwoOd 600 ved LED green LED Refer to ANSW ACMA APPA xx pdf for more info about the reader command set e Is there a DLL or API for the ARYGON reader modules available No The reader protocol can be considered as an open interface protocol You have the possibility to write your own application without reservations or limitations An API or DLL is not needed as you can communicate with the reader modules by using the Com port support of your IDE f Which drivers are available for the ARYGON desktop reader or USB Readers The USB interface of ARYGON reader modules can be accessed via the virtual com port VCP or direct driver support USBExpress of the following operating systems Wi
15. nd wants to wake up the host The TAMA sleep command works independent of the wake up handshake mechanism That means if only the host wants to set the TAMA into and out of the sleep mode then the wake up handshake mechanism not mandatory ARYGON_FREQUENTLY_ASKED_QUESTIONS_AFAQ_05 doc Page 20 of 21 ARYGON TECHNOLOGIES AG Frequently Asked Questions 4 References PN531 User Manual Hardware Application Note ANSW ACMA XX Software Application Note ANSW ACMA APPA XX ARYGON_FREQUENTLY_ASKED_QUESTIONS_AFAQ_05 doc AFAQ Page 21 of 21
16. ndows 98 SE 2000 XP Vista Linux 2 4 or later Please read the txt file SOFTWARE SiLabs_CP21 0xDriverlnstall LINUX NOTE_LINUX_DRIVER txt Macintosh OS WindowsCE More Information of our used USB to UART converter IC http www silabs com g Can I read DESFire cards with the ARYGON reader modules Yes a new firmware version with integrated ARYGON High Level DESFire command set including 3DES decryption is now available Beta Version Ask for our new DESFire application Note ANSW DESFire xx pdf ARYGON_FREQUENTLY_ASKED_QUESTIONS_AFAQ_05 doc Page 10 of 21 ARYGON TECHNOLOGIES AG Frequently Asked Questions AFAQ h I set my NFC enabled phone e g Nokia or Samsung to Mifare 1k virtual card mode but the ARYGON NFC Mifare reader doesn t respond the expected answer What s wrong The reader sends automatically the first command of IS014443 when the card indicates it supports it Consequently after select a single card tag command the NFC enabled phone is in 1SO14443 4 mode and doesn t understand anymore Mifare command The problem is just on the reader side you must send the TAMA low level command SetTAMAParameters Indeed the NFC enabled phone is able to communicate either in mifare mode or in 1S014443 4 mode bit 5 of the SEL_RES 0x28 means ISO14443 4 support as defined in 1S014443 4 standard specification So on the reader side if you want to communicate in mifare mode you have to disable the
17. ndshake is always enabled an can be used With ARYGON uC equipped the module works also if the host does not support the additional wake up handshake That means with ARYGON uC equipped the order info Y N is not relevant because it works in all cases without the need of hardware changes ARYGON_FREQUENTLY_ASKED_QUESTIONS_AFAQ_05 doc Page 19 of 21 ARYGON TECHNOLOGIES AG Frequently Asked Questions AFAQ Necessity of the wake up handshake The sense of the wake up handshake is to wake up the host and the reader module synchronized If the TAMA wake up source RF Level detector is on then the TAMA can be waken up if an external RF Field is detected Normally the TAMA wants then to send immediately the NFC Response packet to the host in this case But if the host is at sleep then some bits of the first Response byte will be lost because the host clock is off To avoid this if wake up handshake is enabled the TAMA warn the host via IRQ line that a response packet is available The host will awaken if IRQ is connected to a host interrupt Input pin First after the Host is awaken and does an acknowledge via HReq the TAMA will send the stored response But if wake up handshake is enabled via the boot config resistor the TAMA will never send the first NFC response to the host without acknowledge via HReq Wake up handshake is necessary if both host and TAMA wants to go into sleep mode and the TAMA will be awaken by an external RF Field first a
18. ng bytes have to be interpreted The mode select command byte is always sent in ASCII format Following mode select command Bytes are available 0 High level language in ASCII format Common uC commands and Mifare commands 1 High level language in Binary format with addressing byte for party line Common uC commands and Mifare commands 2 Philips protocol TAMA language in binary format 3 Philips protocol TAMA language in binary with addressing byte for party line ARYGON_FREQUENTLY_ASKED_QUESTIONS_AFAQ_05 doc Page 7 of 21 ARYGON TECHNOLOGIES AG b Can you show me the ARYGON high level language command set Commands for adjustments and special uC functions are always started with letter a Common uC commands auxiliary commands Dd ah at ar au av asn as asl Power down mode sleep apc apw apr apm apa ali alo aer aew aek aec aep aen aes aeg apl Party line RS4XX polling command ISO 14443 A Mifare commands s Select a single card tag T Login authenticate r Read data block page on a tag wb Write data block page 16 Byte w4 Write data block page 4 Byte for Mifare ultralight tags rv Read value block wv Write format value block Increment value block Decrement value block c Copy value block h Set tag into
19. of PN532 Mifare cards and other cards commands works and our controller has no problem with different baud rate conversion from in normal cases short TAMA frames So far OK ARYGON_FREQUENTLY_ASKED_QUESTIONS_AFAQ_05 doc Page 18 of 21 ARYGON TECHNOLOGIES AG Frequently Asked Questions AFAQ But if we start NFC peer to peer communication with a packet size near to 256 Byte we receive no ACK packet from the tama and the other side receives always and reproducible the NFC protocol error 00 00 FF 03 FD D5 41 13 D7 00 Reason for this According both documents TAMA User Manual for the PN531 and PN532 on chapter Data Link Level there you find the following possible reasons for a not send Ack packet from the tama to the host LCS Error DCS error Framing error or Timeout in case of UART HSU To save time and to avoid having one protocol frame buffer handling more in the system after our ARYGON controller receives the first byte with 9600 Baud we send directly this byte with 115 2 kBaud to the TAMA In case of peer to peer communication we loop through all commands Then we wait for the next byte coming with 9600 Baud from the host then we send again this byte immediately to the TAMA and so on The consequence is that we need about 20ms more time as calculated and checked by the TAMA in case of 115 2 kBaud If we exceed the time interval corresponding of four times the duration of a 256 Byte length frame with the current b
20. quently Asked Questions AFAQ Then about 10 20ms later the PC Tool activates the SCL clock And now we see a correct I2C ACK bit low from the TAMA And now we see the correct Status Byte 0x01 RDY from the TAMA Tek da 4cq Complete M Pos 13 06ms CURSOR 9 d HNN WU iil Quelle t CH2 4us Snan WEL ACK OK 3 i lia CHI 5 00 M 25 0LUs CH1 260 CH3 300 CHa 200 25 Jul 05 17 40 lt 10Hz And the packet flow is continued The above behaviour is no bug it is according to 12C specification 3 Sometimes it happens that the TAMA will pull down the SCL line and The 12C host is blocked hangs This is allowed we found out and according 12C specification According to I2C specification If a Slave device cannot handle incoming data until it has performed some other function it can hold SCL low to force the Master into a wait state Conclusion If you consider all these facts 12C works For testing we have programmed our uC with 12C interface for TAMA I2C testing and we have no problem any more ARYGON_FREQUENTLY_ASKED_QUESTIONS_AFAQ_05 doc Page 17 of 21 ARYGON TECHNOLOGIES AG Frequently Asked Questions AFAQ 1 What can I do with the low level command MxRtyPassiveActivation If a function is necessary to get directly a response Card detected YES NO in this case you can send a low level command MxRtyPassiveActivation Step 1 PC gt RM MxRtyPassiveActivation 00 00 FF 06 F
21. tigation We use a PC 12C Test tool we are sending to the TAMA the command get Firmware Version 00 00 FF 02 FE D4 02 2A 00 With an oscilloscope we have traced the following pins Yellow TAMA SCL Green TAMA SDA Magenta Test point on your interface board direction of SDA low means TAMA can send or host wants to sent high high means host wants to send low 48 00 00 FF 02 FE D4 02 2A 00 49 TAMA I2C ACK Bit is missing here Delay of about 13ms 49 01 TAMA ACK packet TAMA response packet It seems all is OK ARYGON_FREQUENTLY_ASKED_QUESTIONS_AFAQ_05 doc Page 15 of 21 ARYGON TECHNOLOGIES AG Frequently Asked Questions AFAQ After every Data Byte the TAMA sends the I2C ACK bit low to the PC It s OK 0x49 is the Read command is OK first polling But the TAMA does not set the 12C ACK bit low after receiving of the first 0x49 Then the PC Tool does not activate the CLOCK SCL then the TAMA doesn t send the status Byte with RDY 0x00 The ACK bit is missing Tek Bie Acq Complete M Pos 651 0 us CURSOR Typ O44 ALIS ae I I i TAMA sends i Ho ACK bit l I This is wrong fl 5 Pel cine io pee et CH1 5 00 Mi 25 005 CH1 2 60 CH3 300 CH4 200 26 Jul 05 UAS lt 10Hz Because of the fact that the PC Tool does ignore this problem sometimes the packet flow continues ARYGON_FREQUENTLY_ASKED_QUESTIONS_AFAQ_05 doc Page 16 of 21 ARYGON TECHNOLOGIES AG Fre

Download Pdf Manuals

image

Related Search

Related Contents

Webshop - Otto`s  Users Manual - About Projectors  Le grand livre de l`aromathérapie  HP 9200c User's Manual    BioCel System Safety Guide  NOTICE - Pontiac  Ergotron WorkFit-B  Samsung GX-20 Инструкция по использованию  

Copyright © All rights reserved.
Failed to retrieve file