Page 1 of 2

SRF Receiver!

Posted: Sat Jan 25, 2025 3:14 pm
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

Re: SRF Receiver!

Posted: Tue Jan 28, 2025 8:12 am
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

Re: SRF Receiver!

Posted: Tue Jan 28, 2025 12:28 pm
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

Re: SRF Receiver!

Posted: Wed Jan 29, 2025 12:38 pm
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.

Re: SRF Receiver!

Posted: Wed Jan 29, 2025 2:54 pm
by jgu1
Perfect Martin :D ;)

Re: SRF Receiver!

Posted: Wed Jan 29, 2025 3:56 pm
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).

Re: SRF Receiver!

Posted: Thu Jan 30, 2025 7:40 am
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

Re: SRF Receiver!

Posted: Thu Jan 30, 2025 8:11 am
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.

Re: SRF Receiver!

Posted: Thu Jan 30, 2025 10:03 am
by medelec35
hi Jorgen,
the SRF component has now been push onto the components database.

Re: SRF Receiver!

Posted: Thu Jan 30, 2025 11:42 am
by jgu1
Perfect, thank´s :D