stm8ef icon indicating copy to clipboard operation
stm8ef copied to clipboard

Add support for the HC12

Open TG9541 opened this issue 7 years ago • 6 comments

al177 forked stm8ef and added initial board support for the HC12 (Si4463 not yet working).

To do:

  • reverse engineer the HC12
  • enable a wireless Forth console on a HC12 through an unmodified HC12
  • write docs

TG9541 avatar May 01 '17 13:05 TG9541

Approach:

  • connect logic analyzer to the following signals: nSEL, SCLK, SDO, SDI, nIRQ, GPIO0, and GPIO1
  • Establish connection to a 2nd HC12, and make recordings of the following situations:
    • power up to capture initialitzation
    • send "enter" and receive " ok" to capture basic communication
    • send "enter" and receive a stream of data (e.g. WORDS)
  • make the communication more readable with an AWK script
  • extract Si4463 initialization data by comparing multiple recordings with an AWK script
  • analyze initialization and communication sequences

Refer to Board HC12 for first results.

TG9541 avatar May 01 '17 14:05 TG9541

Hello, can you give me a detailed configuration of HC12? thank you

soyebean avatar Aug 15 '20 06:08 soyebean

сб, 15 авг. 2020 г. в 16:44, soyebean [email protected]:

Hello, can you give me a detailed configuration of HC12? thank you

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/TG9541/stm8ef/issues/24#issuecomment-674358311, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFVMS5ICBVGKXJZ7HQ7KHP3SAYVDHANCNFSM4DJUGUPQ .

sergey210982 avatar Aug 15 '20 10:08 sergey210982

@soyebean I had worked on the HC12 and I still have an experimental setup for analyzing the SPI communication between the radio chip and the STM8 in the basement but I never managed to finish it. I'd consider starting over if someone would be willing to share the effort.

TG9541 avatar Aug 15 '20 19:08 TG9541

I want to communicate with HC-12 based on 51 single chip microcomputer si4438 wireless chip, but I don't know the preamble pattern and synchronization word of HC-12.I have some HC-12 spi data, but I don't know how to analyze it.

image I don’t know why SCLK is a 4-bit or 5-bit clock.

soyebean avatar Aug 17 '20 07:08 soyebean

Analyzing that data is one of the problems: the datasheet assumes that one uses "Simplicity Studio" and I don't know of any decoder. The description above describes how I had planned to approach reverse-engineering.

TG9541 avatar Aug 17 '20 18:08 TG9541