Data Exchange Protocol between Language Teacher®
ER-200D and Personal Computer
Serial port settings
Baud rate |
9600 |
Data bits |
8 |
Parity |
None |
Stop bits |
1 |
Exchange diagram
Protocol description
The protocol of transmission is unidirectional, all the data are transmitted in a single data block. No feedback from receiver is provided.
Data file format
|
Bytes |
Value, hex |
Reserved |
0x1100 |
|
Total memory volume of the unit (begins from zero) |
4 |
FF FF 11 00 |
Offset for User's Russian-English Dictionary |
4 |
|
Offset for User's English-Russian Dictionary |
4 |
|
Offset for Transfer |
4 |
|
Offset for Deposit |
4 |
|
Offset for Withrawal |
4 |
|
Offset for Account |
4 |
|
Offset for Memo |
4 |
|
Offset for Anniversary |
4 |
|
Offset for Schedule |
4 |
|
Offset for Business Telephones |
4 |
|
Offset for Personal Telephones |
4 |
|
Unused memory offset |
4 |
|
Reserved |
0x2CC |
|
Personal Telephone |
Data |
0x1EC00 |
Records in Record format |
Business Telephones |
Schedule |
Anniversary |
Memo |
Account |
Withrawal |
Deposit |
Transfer |
User's English-Russian Dictionary |
User's Russian-English Dictionary |
Note: You must decrease values of the fields Total memory volume of the unit, Sections Offsets and Unused memory offset by 0x100000 before processing. For example, Total memory volume of the unit FF FF 11 00 = 0x0011FFFF
_0x0011FFFF
0x00100000
0x0001FFFF
Total memory volume of the unit = 0x1FFFF = 132072 bytes
Record format
|
Bytes |
Value |
Section Marker |
1 |
Personal Telephones = 0xF0
Business Telephones = 0xF1
Schedule = 0xF2
Anniversary = 0xF3
Memo = 0xF4
Account = 0xF5
Withdrawal = 0xF6
Deposit = 0xF7
Transfer = 0xF8
User’s English-Russian Dictionary = 0xFA
User’s Russian-English Dictionary = 0xFB |
Divider |
1 |
0xEF |
Field Name |
variable |
ASCII string |
Divider |
1 |
0xEF |
Field Value |
variable |
ASCII string |
End of Record Marker |
1 |
0x0D |
Note: Records have no fields limitations.
Field Names
Section |
Field Names |
Personal Telephones |
NAME:
TEL:
FAX :
E-MAIL:
ADDR.: |
Business Telephones |
CO. NAME:
TEL:
FAX:
E-MAIL:
ADDR.:
CONTACT: |
Schedule |
DATE:
TIME :
ALARM :
AFFAIR : |
Anniversary |
DATE:
AFFAIR : |
Memo |
MEMO: |
Account |
DATE:
A/C NO:
A/C TYPE :
BALANCE: |
Withdrawal |
DATE:
A/C NO:
PAYEE :
AMOUNT:
COMMENT: |
Deposit |
DATE:
A/C NO:
PAYER :
AMOUNT:
COMMENT: |
Transfer |
DATE:
CREDIT:
DEBIT:
AMOUNT:
COMMENT: |
User’s English-Russian Dictionary |
HEADWORD:
AFFAIR : |
User’s Russian-English Dictionary |
HEADWORD:
AFFAIR : |
Date and Time Encoding
|
Byte 1 |
Byte 2 |
Byte 3 |
Byte 4 |
Date |
Year |
Month |
Day |
- |
Time |
Hours |
Minutes |
Hours |
Minutes |
To get an actual Year (Month, Day etc...) we must decrement received value by 0x10. In example, we have Time:
0x11 0x22 0x12 0x24
We decrement each byte and receive time
1h 12m 2h 14m
Note: Year field is year offset from 1900
|