JCM UBA-10-SS (ID003 Protocol) Simple Driver gcc (Raspberry Pi /Banana Pi/ PC Linux)

He aquí un simple driver (gcc) para un billetero JCM UBA-10-SS usando el protocolo ID003.

Las tramas del protocolo ID003 tienen la forma:

| SYNC | Length | CMD | Data Fields | Checksum |

▪ SYNC (1byte): 0xFC
▪ Length (1byte): Longitud total del string (todos los bytes)
▪ CMD (1byte) (instrucción, tipo de orden)
▪ Data (variable)( datos, opcional)
▪ CRC (2byte)( CRC-Kermit)

Para mayor comprensión del CRC-Kermit probar la librería de Lammert Bies, la cual se puede compilar en gcc. Las funciones para el crc-kermit en este driver han salido de aquí.

crc2.png


Communication settings:

▪ BaudRate: 9600 (variable)
▪ DataBits: 8 Bits
▪ StopBits: 1 Bit
▪ Paridad: EVEN

Ejemplos de tramas ID003:
FC 05 11 27 56 (STATUS REQUEST)
FC 05 88 6F 5F (VERSION REQUEST)
FC 06 13 62 2B C9 (ESCROW)

Las denominaciones en el id003:

0x61 = 1st
0x62 = 2nd
0x63 = 3rd
0x64 = 4th
0x65 = 5th
0x66 = 6th

Descargar Código Fuente

Mas información:
https://nicaraguanmotmots.blogspot.com/2016/07/jcm-uba-10-ss-id003-protocol-simple.html
 
Atrás
Arriba