send/receive string

For general Flowcode discussion that does not belong in the other sections.
samtin
Posts: 28
http://meble-kuchenne.info.pl
Joined: Sat Jul 10, 2021 2:43 pm
Has thanked: 4 times
Been thanked: 2 times

send/receive string

Post by samtin »

Hello!
I have a question. I want to transmit the string "AD1CB4E1AA2EDDAF" through the serial communication pin (RC6) of the PIC16F877A using a transmitter RF module and receive the string using a receiver RF module connected to the pin (RC7) of the second PIC16F877A, and as confirmation that the string was received to light a led. How should I proceed? I am attaching the two flowcharts.
Thank you very much.
Attachments
rx.fcfx
(15.72 KiB) Downloaded 35 times
tx.fcfx
(12 KiB) Downloaded 38 times

chipfryer27
Valued Contributor
Posts: 1188
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 289 times
Been thanked: 418 times

Re: send/receive string

Post by chipfryer27 »

Hi

Although for Bluetooth, principles are the same
Hope this helps
Regards

samtin
Posts: 28
Joined: Sat Jul 10, 2021 2:43 pm
Has thanked: 4 times
Been thanked: 2 times

Re: send/receive string

Post by samtin »

Hi
Thank you very much for the answer, I think it will help me.

medelec35
Matrix Staff
Posts: 1466
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 515 times
Been thanked: 474 times

Re: send/receive string

Post by medelec35 »

Hi.
Just one additional thing to chipfryer27's helpful post.
When converting a Float to a string, you can state how many decimal places to round to.
Take a look at this Wiki entry
Martin

samtin
Posts: 28
Joined: Sat Jul 10, 2021 2:43 pm
Has thanked: 4 times
Been thanked: 2 times

Re: send/receive string

Post by samtin »

Hi
Thank you very much medelec35 for the link, it really adds to what interests me.

samtin
Posts: 28
Joined: Sat Jul 10, 2021 2:43 pm
Has thanked: 4 times
Been thanked: 2 times

Re: send/receive string

Post by samtin »

Hello everybody
I did not get the expected results, the LED does not light up. I did a test by connecting the development boards with wires and it works like that, but in RF it doesn't work. If the data is received in RF, shouldn't the received string be found in the "receiver" variable?

chipfryer27
Valued Contributor
Posts: 1188
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 289 times
Been thanked: 418 times

Re: send/receive string

Post by chipfryer27 »

Hi

Do you have a datasheet for the RF modules? Do they perhaps need some configuration or to be paired?

Regards

samtin
Posts: 28
Joined: Sat Jul 10, 2021 2:43 pm
Has thanked: 4 times
Been thanked: 2 times

Re: send/receive string

Post by samtin »

Hello
They are 433MHz RF modules, they are simple, they work because I test on the same development boards with 16F877A other string sending and receiving programs.

chipfryer27
Valued Contributor
Posts: 1188
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 289 times
Been thanked: 418 times

Re: send/receive string

Post by chipfryer27 »

Hi

Can you post your Flowcode file?

Stange it works over wire but not RF which does suggest module related.

Do you have a USB-TTL serial converter? If so run a terminal program and see what is happening at the module Tx/Rx pins.

Regards

samtin
Posts: 28
Joined: Sat Jul 10, 2021 2:43 pm
Has thanked: 4 times
Been thanked: 2 times

Re: send/receive string

Post by samtin »

Hi
I don't have HC-05 modules, nor USB-TTL serial converter, I only have RF 433MHz modules that work, for tx a pin in data and for rx a pin out data.

Sorry, I forgot the flowchart.
Attachments
rx.fcfx
(17.39 KiB) Downloaded 34 times

Post Reply