Skip to content

Commit

Permalink
Remove model memory info, separate project
Browse files Browse the repository at this point in the history
  • Loading branch information
laneboysrc committed Aug 23, 2014
1 parent 7df8b2f commit 3a9fa04
Showing 1 changed file with 0 additions and 47 deletions.
47 changes: 0 additions & 47 deletions hk310-info.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,51 +296,4 @@ HK310 and X-3S.



Model data EEPROM contents
-----
The transmitter always reads and writes a single byte.
- I.e. even for sequential bytes it transmits the address for each byte
- It polls for ACK after writing a byte
- After writing, the clock line stays low! After reading, it stays high (bug?)

350us for reading a byte (= 4 words transfer, each 9 bits, plus 2x start/stop)
~7.5 us per clock


On startup, the transmitter reads (each read byte is a single I2C operation!):
Read location 0x001: 0x77 expected, HK310 and X3S have the same contents
Read location 0x002: 0x77 expected
Read location 0x003: 0x65 expected
Read location 0x004: 0x6e expected
Read location 0x001: 0x77 expected

Read location 0x020: 0x02, HK310 and X3S differ on the first 4 bytes!
Read location 0x021: 0x1c
Read location 0x022: 0x01
Read location 0x023: 0xc7
Read location 0x024: 0xff

Read location 0x6c: 0x00 (last 2 bytes of the first model!)
Read location 0x6d: 0x2e

Read location 0x13: last active model number

Read last model data depending on value in 0x13. 58 bytes (offset between models is 60 bytes)

First models starts at address 0x32
Each model is 60 bytes long (only 58 used? Last seem to be "0x00 0x2e")

Model data structure:
0 - 5 Model name, ``\0``-terminated
6 -11 Endpoints ST, TH, CH3
12, 13 2x DR values in %
13, 14 Subtrim ST, TH; -100 subtrim is EE value 0, 0 is value 100, +100 is value 200
Others to be discovered...

A fields in the model data structure that belong to a certain category
(e.g. endpoints) are written when the menu is exited, when any value has been
modified (even if modified to the same value).




0 comments on commit 3a9fa04

Please sign in to comment.