HC-12 Radio module TX RX in Oshonsoft

Thread Starter

camerart

Joined Feb 25, 2013
3,846
hi C,
Have you considering using a Software serial input, using Oshonsoft Basic.?
I have used the Hardware and another Software Uart on a number of PIC projects

Clip from Manual;
DEFINE SEROUT_DELAYUS = 5000
SEROUT PORTC.6, 1200, "Hello world!", CrLf
DIM I AS BYTE loop:
SERIN PORTC.7, 9600, I
SEROUT PORTC.6, 9600, "Number: ", #I, CrLf
GOTO loop

E
Hi E,
No, I'm not sure what the difference is.
If I attached a GPS to one and the HC12 to the other, would the program be similar?
C.
 

ericgibbs

Joined Jan 29, 2010
21,517
hi C,
Which one of those inputs would be top priority.
As you know the GPS is sending a msg at one/sec to the PIC, what data will the HC12 be sending to the same Receiving PIC and and at what interval.?
E
 

Thread Starter

camerart

Joined Feb 25, 2013
3,846
hi C,
Which one of those inputs would be top priority.
As you know the GPS is sending a msg at one/sec to the PIC, what data will the HC12 be sending to the same Receiving PIC and and at what interval.?
E
Hi E,
There are lots of settings, I'm not sure about, and will need to be looked at later i,e, GPS 5/SEC
I would guess the radio is priority.
EDIT: They will be sending each others position, plus control DATA.
As I go through the project, I can see timing issues, but the best I can do is get it working, and see what the problems are afterwards, as it's to complex for me to do it yet.
C.
 
Last edited:

Thread Starter

camerart

Joined Feb 25, 2013
3,846
Hi E,
Would check the attached Schematic please. It is the RX PCB in other words, THE REMOTE.

Have I got my TXs mixed up with my RXs.

I think for my programming skills 2x HSERINs would be better for me, so I've gone for the switch method.

There will be two modules talking to it. GPS and HC-12.

Have I put the switch on the correct serial PIN or will it work on the other PIN?

Thanks, C.
 

Attachments

Top