Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 20:52 13 May 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 old vs new module....

     Page 5 of 9    
Author Message
Andrew_G
Guru

Joined: 18/10/2016
Location: Australia
Posts: 868
Posted: 11:44pm 09 May 2018
Copy link to clipboard 
Print this post

Hi Grogs et al,
My investment in HC-12s (12 off) is very minor compared with many of you but I still would like to know where I stand. My existing modules have the HC01 website and two holes clearly visible on the silkscreen side and the crystal is clearly marked:

CEC 4J
30 00L

The USB (2 off) versions are yet to arrive (as is Grog's tester - but won't be long).
In the absence of any real test gear can you confirm that the only way I can tell which variant I have is to fire them up and see if they talk to each other? (this will be easy enough).

(As Grogs is at pains to point out, a pair of either version will talk to each other but a mixture is a real PITA.)

Cheers, AndrewEdited by Andrew_G 2018-05-11
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9498
Posted: 12:05am 10 May 2018
Copy link to clipboard 
Print this post

  Andrew_G said  In the absence of any real test gear can you confirm that the only way I can tell which variant I have is to fire them up and see if they talk to each other? (this will be easy enough).

(As Grogs is at pains to point out, a pair of either version will talk to each other but a mixture is a real PITA.)


Pretty much. Do you happen to have a UHF scanner radio? I linked to one on the thread about the HC-12 tester, and they are very cheap - US$30 or so, and would probably be a good purchase. These cheap radios are fine as scanners, but I have read some nasty things about their transmit performance, but all I ever wanted it for was for the scanner so I can listen to a frequency. They are a real easy way to find out if your modules are to spec(on frequency) or not.
Smoke makes things work. When the smoke gets out, it stops!
 
Andrew_G
Guru

Joined: 18/10/2016
Location: Australia
Posts: 868
Posted: 01:03am 10 May 2018
Copy link to clipboard 
Print this post

Hi Grogs, No to the UHF (I checked out your listing but was waiting to see how this story unfolded). I have several VHF radios and HF (SSB) receivers but no UHF.
With the UHF radio you linked to; I assume one just maximises the signal at a frequency (or let it scan to it) and all you will hear will be squawks with each bursts of data?

I otherwise don't need a UHF radio so is there any more-generalised kit that would do the task plus others? (If not I'll order one)
Cheers, A.
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9498
Posted: 03:04am 10 May 2018
Copy link to clipboard 
Print this post

Yes, with the radio I am using, you just select the UHF band with one button, then just dial in the frequency you want to listen to and when the module transmits, you will hear an audible blurp of data at that frequency.
Smoke makes things work. When the smoke gets out, it stops!
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1965
Posted: 04:45am 10 May 2018
Copy link to clipboard 
Print this post

@ Andrew_G,
You mentioned that you bought a couple of the USB version of the HC-12.
I bought a couple a long time ago (maybe 18 mths.) and never got them to work. They need a driver and I have never been able to find one. The chip they use is STM32 something.
Paul.
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9498
Posted: 05:36am 10 May 2018
Copy link to clipboard 
Print this post

I figured they would just be a 2303, 2102 or 340 USB interface chip - nothing that fancy. When my two arrive, I will crack one open to see what they have used.
Smoke makes things work. When the smoke gets out, it stops!
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3319
Posted: 12:31pm 10 May 2018
Copy link to clipboard 
Print this post

My usb HC-12 did not require a special driver on Win7 (but I already had CH340, CP210x, PL2303, FTDI drivers installed).

But I did have trouble initializing it. I eventually found that I had to hold down the button on the side the whole time as I plugged it in, started Rob's configuration program, established the settings, and programmed the firmware. Then it worked.

I can't check now to see which chipset it uses--it's a thousand miles away. If you have a linux system available, you can plug it into that and run "dmesg | tail" to see what type it is (provided the appropriate driver is on the linux system).

...

I just looked at a lua program I have running on linux (R-PiZW) which uses CH340, CP210x, and PL2303 usb serial devices on a powered hub, and checks to make sure which one is associated with which /dev/ttyUSB#. The usb HC-12 has a CP210x serial interface.
Edited by lizby 2018-05-11
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1965
Posted: 08:58pm 10 May 2018
Copy link to clipboard 
Print this post

Mine works OK on Win10, it would not work on XP and won't work on Win7 ?
Paul.
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9498
Posted: 10:51pm 10 May 2018
Copy link to clipboard 
Print this post

I suspect then, going from lizby's post above, that if you were to install the CP2102 USB chip drivers, it would then pick up and access the module. XP is getting old now for anything new - even cheap stuff from China tends to use a modern-ish USB chip - or a clone of one.
Smoke makes things work. When the smoke gets out, it stops!
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1965
Posted: 11:30pm 10 May 2018
Copy link to clipboard 
Print this post

I have downloaded drivers but to no avail, I will just assume it is faulty.
I will wait to see how Andrew_G goes with his and get some from the same supplier.
Paul.
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9498
Posted: 11:33pm 10 May 2018
Copy link to clipboard 
Print this post

Hmmmmmmmm.....interesting......
Smoke makes things work. When the smoke gets out, it stops!
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1965
Posted: 11:53pm 10 May 2018
Copy link to clipboard 
Print this post

Edit to above..
Just plugged it in to my Win10 machine and it works OK.
It shows up in device manager on Win7 and says no drivers are installed. But when I try to update the driver I point it to the driver location and it can't find the driver. I have downloaded the drivers from 2 different locations.
Paul.

Edit... I will see if I can take a photo of its innards and post it.Edited by palcal 2018-05-12
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1965
Posted: 12:19am 11 May 2018
Copy link to clipboard 
Print this post

Here is a pic. of each side of the device.







Paul.

"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9498
Posted: 12:31am 11 May 2018
Copy link to clipboard 
Print this post

It appears they are using a large QFP ST device as the USB-serial adaptor.
Overkill, I would have thought....

Can you post the ST part number on the QFP chip? That would allow us to search for the device over at the ST website, and download any drivers it needs.
Smoke makes things work. When the smoke gets out, it stops!
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1965
Posted: 01:08am 11 May 2018
Copy link to clipboard 
Print this post

Chip No. STM32F103C8T6
99089B 9U
MYS 451
that is as it is printed on the chip.
I downloaded the STM32 driver from here..STM32
Paul.
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9498
Posted: 01:21am 11 May 2018
Copy link to clipboard 
Print this post

So you installed that driver, but it still would not talk to you on XP or Win7?
Smoke makes things work. When the smoke gets out, it stops!
 
Andrew_G
Guru

Joined: 18/10/2016
Location: Australia
Posts: 868
Posted: 02:35am 11 May 2018
Copy link to clipboard 
Print this post

Hi Paul and Grogs,
I crafted a long rambling reply last night but I mustn't have pressed the "Post" button because it disappeared.
In essence it said "thanks - please keep up the detective work"!

My new HC-12s have arrived but not Grogster's test rig so I'll await that before I explore too much. They look the same as my older ones but the two holes are less distinct and the crystal is marked "30.000 MHZ" whereas two of the previous batch I looked at were "CEC 4J 30.00L" a third is marked "e 300 @323Q" (the @ symbol is indistinct). (I have others in devices if you need me to look??).
All of my old ones "appear" to inter-connect OK but some are only transmitting - I have no idea if they receive correctly (have I just fluked it to put good 2-way ones where needed?)

Grogs, is that consistent with your experience, ie they transmit OK but don't receive?

My PC is running XP so I'll need to sort out the drivers when the USB HC-12s arrive.

Thanks again, Andrew
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9498
Posted: 02:46am 11 May 2018
Copy link to clipboard 
Print this post

They receive fine too, if they are the fakes. They will ignore 95% of messages transmitted from genuine ones, but if you set up two or more of the fakes, they work fine, so that means they receive fine too.

Crystals marked "30.000MHZ" are suspect, and I would expect them to be OFF frequency, and therefore problematic if you try to make them work with the other genuine ones.

The programmer/tester thing allows you to program modules, but to test them, you really do need some kind of frequency counter or scanner radio, to listen to the frequency you have programmed, so you can make sure that the burble from the radio is on the frequency it should be on when the module transmits. If you don't hear anything when you transmit, they are off frequency ones. This can be confirmed with the same radio - move up the band 37kHz and if you hear the transmission burble there, you know you have out-of-spec ones.

EDIT: For XP, use the drivers for the E28 available for download from the downloads page of my website. It's the same USB chip.Edited by Grogster 2018-05-12
Smoke makes things work. When the smoke gets out, it stops!
 
Andrew_G
Guru

Joined: 18/10/2016
Location: Australia
Posts: 868
Posted: 04:10am 11 May 2018
Copy link to clipboard 
Print this post

Thanks Grogs. I have some E28s from Rob/you and the drivers.
Bit of a bu##er about the new HC-12s having "30.000MHZ" crystals. Until the UHF radio arrives I can use your tester to program them and see how they communicate (without soldering them).

I've been "requested" to go away for the weekend (no WWW except via phone) so as usual lack of response is not lack of interest. Back Sunday/Monday, Andrew.
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1965
Posted: 06:21am 11 May 2018
Copy link to clipboard 
Print this post

@ Andrew_G
Not a dirty weekend for Mother's Day. ?
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
     Page 5 of 9    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025