card reader

    Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

    Aufgrund technischer Veränderungen ist der Mailverkehr innerhalb des Forums (Private Nachrichten) nur noch eingeschränkt möglich. Die Einschränkung ist notwendig, um zusätzliche Betriebskosten für das Forum zu vermeiden. Näheres zu den Hintergründen im Thread "Aktuelles zum Forum".Wir bitten um Verständnis.

    Hinweis kann nach Kenntnisnahme deaktiviert werden!

    • Hi,

      I have the CRT-288-B card reader, connected via RS232 to a micro ATMEL1284.

      specification of the command structure:

      drive.google.com/file/d/1ktTtx…OMDkblMA/view?usp=sharing

      then I had the confirmation that the data must be sent in hexadecimal ...

      the command is correct, because if I send with REALTERM

      0X02 0X00 0X02 0X33 0X30 0X03 0X00

      and then

      0x05

      it works!

      I have to do the same thing with BASCOM ...

      this is the code I tried but it does not work ...


      BASCOM-Quellcode

      1. $regfile = "m1284def.dat"
      2. $crystal = 16000000
      3. $baud = 19200
      4. $hwstack = 40
      5. $swstack = 40
      6. $framesize = 40
      7. Config Com2 = 9600 , Synchrone = 0 , Parity = None , Stopbits = 1 , Databits = 8 , Clockpol = 0
      8. Open "COM2:" For Binary As #2 'open channel
      9. Dim Crtcmd(16) As Byte
      10. enable interrupts
      11. Crtcmd(1) = &H02
      12. Crtcmd(2) = &H00
      13. Crtcmd(3) = &H02
      14. Crtcmd(4) = &H33
      15. Crtcmd(5) = &H30
      16. Crtcmd(6) = &H03
      17. Crtcmd(7) = &H00
      18. Printbin #2 , Crtcmd(1) ; 7
      19. Wait 2
      20. Crtcmd(1) = &H05
      21. Printbin #2 , Crtcmd(1) ; 1
      22. Wait 2
      23. Do
      24. Loop
      25. End
      Alles anzeigen
    • no...too easy...not works!

      I put a rs232 driver in the middle, I checked the rx and tx pins ... nothing works only if I connect it with the PC! the strange thing, and that if I connect the microprocessor to the PC I correctly receive the hexadecimal string!
      why???

      this is code vb.net:

      Quellcode

      1. SerialPort1.Write(Chr(&H2) + Chr(&H0) + Chr(&H2) + Chr(&H33) + Chr(&H30) + Chr(&H3) + Chr(&H0))
      2. System.Threading.Thread.Sleep(2000)
      3. SerialPort1.Write(Chr(&H5))
      this is code Bascom:

      BASCOM-Quellcode

      1. Print #2 , Chr(&H2) ; Chr(&H0) ; Chr(&H2) ; Chr(&H33) ; Chr(&H30) ; Chr(&H3) ; Chr(&H0);
      2. Wait 2
      3. Print #2 , Chr(&H5) ;
      with the bascom code I correctly receive the string in hex on REALTERM...!
    • it works! a_14_3ef964b0 a_22_9ac28a82 a_64_3a718cae a_170_58e0202d
      I checked the rx and tx signals with the oscilloscope and I realized that
      the connector supplied for the rs232 connection had inverted wires !!! :cursing:
      anyway thanks for supporting me ... a_42_02cc30b2
      now I have to get the answer from the reader, then read the data in hexadecimal ... what do you recommend?