SRF Receiver!

For general Flowcode discussion that does not belong in the other sections.
jgu1
Posts: 813
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 696 times
Been thanked: 183 times

SRF Receiver!

Post by jgu1 »

Hi all!

I am working with some HC12 tranceivere (UART) together with the SRF component in FC. Working perfect. At the moment I use String compare, if incomming data is equal then write/update the display. I see it is only possible to send/receive String and Char.

Is it possible to write in the display "only" if new string is received without comparering, first update display when new data is incomming? Please :D

Thank´s in advance

Jorgen
Attachments
RX.fcfx
(12.66 KiB) Downloaded 38 times

medelec35
Matrix Staff
Posts: 2086
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 644 times
Been thanked: 702 times

Re: SRF Receiver!

Post by medelec35 »

Hi Jorgen.
What about using the circular buffer?
Then you can do what you want with the data, e.g., display all within the buffer, or look for a keyword etc.
The buffer along with examples can be found on the Wiki here & here
Martin

jgu1
Posts: 813
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 696 times
Been thanked: 183 times

Re: SRF Receiver!

Post by jgu1 »

Many many thanks for the tip Martin, but in the meantime I have found another solution. I will definitely look into your suggestions :idea: .

Last thing, is there a reason why we can only send and receive "string and Char# and not number, in the SRFM component without having to convert from number to String and back again?
And yes, I could use the Uart component ;)

Br Jorgen

medelec35
Matrix Staff
Posts: 2086
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 644 times
Been thanked: 702 times

Re: SRF Receiver!

Post by medelec35 »

You're welcome.
I'm glad you found a solution, well done.
jgu1 wrote:
Tue Jan 28, 2025 12:28 pm
is there a reason why we can only send and receive "string and Char# and not number, in the SRFM component without having to convert from number to String and back again?
I will ask the member of staff who created the component and let you know.
jgu1 wrote:
Tue Jan 28, 2025 12:28 pm
And yes, I could use the Uart component
You could but won't have the Sleep and Wake functions available.
Martin

jgu1
Posts: 813
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 696 times
Been thanked: 183 times

Re: SRF Receiver!

Post by jgu1 »

Perfect Martin :D ;)

medelec35
Matrix Staff
Posts: 2086
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 644 times
Been thanked: 702 times

Re: SRF Receiver!

Post by medelec35 »

Hi Jorgen.
I have added some extra functions to the SRF component to make life easier for you and anyone else who wishes to use it.
If you would like to try it out before pushing to component updates.
Browse to this location using file explorer , it's hidden by default so just paste the link into your address bar.

Code: Select all

%ProgramData%\MatrixTSL\FlowcodeV10\Components
Place the attached component.
If Flowcode is already open, then you will need to reload your project for the new component to work
If you run any component updates, then the component you added will be overwritten, so it will stop working again (unless the component update has been pushed).
Attachments
SRFModuleWirelessThings.fcpx
(7.3 KiB) Downloaded 40 times
Martin

jgu1
Posts: 813
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 696 times
Been thanked: 183 times

Re: SRF Receiver!

Post by jgu1 »

Hi Martin!

Working :D

The new parameters work perfectly Martin. Now my project can be more simple. Hurry up to push the updated component to the world :lol: .

Many thanks again :)

For others who working with wireless, I can recommend the HC12 module, easy and powerful.

Br Jorgen

medelec35
Matrix Staff
Posts: 2086
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 644 times
Been thanked: 702 times

Re: SRF Receiver!

Post by medelec35 »

You're welcome and thanks for the update Jorgen.
I'm glad the updated component as helped.
It will be pushed on the library database as soon as possible.
Martin

medelec35
Matrix Staff
Posts: 2086
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 644 times
Been thanked: 702 times

Re: SRF Receiver!

Post by medelec35 »

hi Jorgen,
the SRF component has now been push onto the components database.
Martin

jgu1
Posts: 813
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 696 times
Been thanked: 183 times

Re: SRF Receiver!

Post by jgu1 »

Perfect, thank´s :D

Post Reply