Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for the HC12 #24

Open
TG9541 opened this issue May 1, 2017 · 6 comments
Open

Add support for the HC12 #24

TG9541 opened this issue May 1, 2017 · 6 comments

Comments

@TG9541
Copy link
Owner

TG9541 commented May 1, 2017

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 TG9541 created this issue from a note in Board Support (ToDo) May 1, 2017
@TG9541 TG9541 moved this from ToDo to In Progress in Board Support May 1, 2017
@TG9541
Copy link
Owner Author

TG9541 commented May 1, 2017

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 TG9541 self-assigned this May 1, 2017
@TG9541 TG9541 moved this from In Progress to ToDo in Board Support Jun 4, 2017
@soyebean
Copy link

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

@sergey210982
Copy link

sergey210982 commented Aug 15, 2020 via email

@TG9541
Copy link
Owner Author

TG9541 commented Aug 15, 2020

@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.

@soyebean
Copy link

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.

@TG9541
Copy link
Owner Author

TG9541 commented Aug 17, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

3 participants