Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 05:22 15 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : HC-12 communication

Author Message
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1427
Posted: 06:39pm 12 Oct 2020
Copy link to clipboard 
Print this post

There was a thread (I can't seem to find it) that seemed to have a lot of information on HC-12 communication. It listed the basic AT commands needed to set up a module-to-module serial communication. Basically a simple transparent wireless serial cable. I'm looking for just a simple example.

I can't seem to find that thread, or notes.
Micromites and Maximites! - Beginning Maximite
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4142
Posted: 07:03pm 12 Oct 2020
Copy link to clipboard 
Print this post

Might be
here

Or
here

John
Edited 2020-10-13 05:05 by JohnS
 
CaptainBoing

Guru

Joined: 07/09/2016
Location: United Kingdom
Posts: 2171
Posted: 07:12pm 12 Oct 2020
Copy link to clipboard 
Print this post

or here - this is the famous thread in which Grogster tracked down the rogue 30MHz crystal and his escapade made it onto hackaday

https://www.thebackshed.com/forum/ViewTopic.php?TID=10443&P=1

contained within is another fab link which shows how to use cheapie SDR USB modules (circa £15 on eaby) as a poor man's Spectrum Analyzer... ish
Edited 2020-10-13 05:14 by CaptainBoing
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1427
Posted: 07:16pm 12 Oct 2020
Copy link to clipboard 
Print this post

Somewhere I remember reading that the set pin could be left floating (after initialization?) and the device would be in data mode. Is this true?
Micromites and Maximites! - Beginning Maximite
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3474
Posted: 07:52pm 12 Oct 2020
Copy link to clipboard 
Print this post

Does it have to be HC-12? ESP8266 with ESP-Link has pass-through mode.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1427
Posted: 07:58pm 12 Oct 2020
Copy link to clipboard 
Print this post

  lizby said  Does it have to be HC-12? ESP8266 with ESP-Link has pass-through mode.


Thanks, I'm doing that, too. And HC05.

I'm putting the HC-12 module on a RetroMax to replace the console connection. The RetroMax supports the HC-12 and HC05 right there.


Micromites and Maximites! - Beginning Maximite
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1427
Posted: 07:59pm 12 Oct 2020
Copy link to clipboard 
Print this post

And note I left the set pin floating. I don't know where my notes are, so I'm recreating the process I went through and verifying it on the hardware.

https://www.thebackshed.com/forum/ViewTopic.php?FID=16&TID=12912
Edited 2020-10-13 06:00 by CircuitGizmos
Micromites and Maximites! - Beginning Maximite
 
Chopperp

Guru

Joined: 03/01/2018
Location: Australia
Posts: 1106
Posted: 08:03pm 12 Oct 2020
Copy link to clipboard 
Print this post

CircuitGizmos]Somewhere I remember reading that the set pin could be left floating (after initialization?) and the device would be in data mode. Is this true?

I leave mine floating. Work OK.
Edited 2020-10-13 06:05 by Chopperp
ChopperP
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1427
Posted: 08:08pm 12 Oct 2020
Copy link to clipboard 
Print this post

  Chopperp said  CircuitGizmos]Somewhere I remember reading that the set pin could be left floating (after initialization?) and the device would be in data mode. Is this true?
I leave mine floating. Work OK.


I'm missing my folder and notes about the HC-12. So that is exactly what I am asking and/or verifying.
Micromites and Maximites! - Beginning Maximite
 
Chopperp

Guru

Joined: 03/01/2018
Location: Australia
Posts: 1106
Posted: 08:26pm 12 Oct 2020
Copy link to clipboard 
Print this post

In this post
Here
Grogster has written some code (at the end) which enables the HC-12 to be programmed in situ. The set pin is tied to an I/O pin for the purpose.
Works well as long as you keep track of the baud rate last used.

Brian
ChopperP
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1427
Posted: 08:33pm 12 Oct 2020
Copy link to clipboard 
Print this post

Thank you, Chopper!
Micromites and Maximites! - Beginning Maximite
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9755
Posted: 04:11am 13 Oct 2020
Copy link to clipboard 
Print this post

Yes, you can leave the SET pin floating.  I believe the HC12 has an on-board pull-up for this pin, to hold it high.  You pull the SET pin LOW to enter the setup mode.

Robert Rozee wrote a nice little GUI for talking to the HC12 module.  I will ask him to post it here.
Smoke makes things work. When the smoke gets out, it stops!
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2466
Posted: 12:57pm 13 Oct 2020
Copy link to clipboard 
Print this post

the latest version of the utility (for win32) can be downloaded from the document register, here:
http://www.thebackshed.com/docregister/ViewDoc.asp?DocID=16

and the HC-12 datasheet can be downloaded from here:
http://www.thebackshed.com/docregister/ViewDoc.asp?DocID=18


cheers,
rob   :-)
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1427
Posted: 02:11pm 13 Oct 2020
Copy link to clipboard 
Print this post

Thank you Rob! (and Grog!)
Edited 2020-10-14 00:12 by CircuitGizmos
Micromites and Maximites! - Beginning Maximite
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1427
Posted: 06:36pm 13 Oct 2020
Copy link to clipboard 
Print this post

I want to make a correction for the record. In my haste to post a little picture of the wireless console link, I plugged the wrong HC-12 module in the RetroMax to take a quick photo. The earlier picture is upside/backwards/inverted/insideout or something.

Here is the correct HC-12 module orientation:



What it looks like soldered into a case:


Edited 2020-10-14 04:47 by CircuitGizmos
Micromites and Maximites! - Beginning Maximite
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025