Page 1 of 3
Is there a PING component?
Posted: Sat Jul 26, 2025 8:11 pm
by RGV250
Hi,
I would like to monitor devices on my home network, I found a Flowcode document that seemed to do exactly what I wanted to do
https://matrixtsl.com/wp-content/upload ... .08.24.pdf
I have not read it all as I am not sure it is still relevant, it is a 2018 document.
On page 40 it shows a component "PING IP address" component which does not seem to be available now?
Also it mentions examples in Flowcode "TCP_IP\Examples" folder which I cannot find.
Regards,
Bob
Re: Is there a PING component?
Posted: Mon Jul 28, 2025 3:10 pm
by medelec35
Hello.
The component used in that course is a TCP/IP W5500.
I have checked the website that is supposed host the example course files and they are not where they should be.
I will let you know when they have been added.
If you click help on the component it will take you to 3 examples to hopefully get you started.
Re: Is there a PING component?
Posted: Tue Jul 29, 2025 9:02 am
by RGV250
Tanks Martin,
I did look at that component but could not see a "Ping IP address" so I wondered if it was a custom creation?
A lot of the document is not making sense to me so I think I will need the examples to explain it better.
Regards,
Bob
Re: Is there a PING component?
Posted: Wed Jul 30, 2025 12:51 pm
by medelec35
Hello.
The resource page has now been updated with the
examples (within the Resources tab) to go with the course
Re: Is there a PING component?
Posted: Wed Jul 30, 2025 1:03 pm
by RGV250
Thanks Martin,
I just need to book a bit of "Pub Time" to try to understand it all.
If I do get working what I have planned it will be very useful as 2 home automation devices dropped off my network and I only found out when I wanted to update one of them.
Bob
Re: Is there a PING component?
Posted: Fri Aug 01, 2025 10:43 am
by RGV250
Hi Martin,
Thank you for posting the examples, I would not have been able to work it out from the initial document alone but all is coming clear with the aid of the examples.
I do have one question which I cannot find a definitive answer.
On page 41 it mentions the checksum is pre calculated for the sent message.
The checksum
We can either calculate the checksum values on the fly, or for set messages calculate them in advance and use
those values.
In this case we have pre-calculated the checksum to be 7, 92, so we can add those two bytes in next.
That is fine for the example but I have spent ages searching the web and cannot for the life of me figure out how to do this if I need to change things. It is not so much the maths but what data is used for the calculation, I have found there are so many different answers?
Regards,
Bob
Re: Is there a PING component?
Posted: Fri Aug 01, 2025 11:49 am
by chipfryer27
Hi Bob
Do you actually need to ping, or do you just need some way to check "if alive"?
If the latter there are many ways you could do this.
You could have each device send a heartbeat every hour or day and you can check for this. When it arrives a flag is set corresponding to that unique device etc.
As you presumeably know the IP address of each device, you could send a preconfigured request that wouldn't occur in normal use (e.g. "????") and if the device receives this it sends an appropriate reply.
Of course this assumes you are in control of both ends, in that you decide the code that runs. If you are interacting with 3rd-party kit then ping is a good way to check.
Regards
Re: Is there a PING component?
Posted: Fri Aug 01, 2025 1:02 pm
by RGV250
Hi,
I am not sure what is happening here but this is the second time recently that I replied to a post only for it not to show up??
Some devices I do have control over but not all, some are DHCP as well. A lot of my issues are probably my own doing where I alter the network and find out later that all is not well. Also WiFi is not great in the house and the heating controller can be a pain.
I have looked at a few programs that supposedly do what I want, the paid ones are stupidly expensive and need a PHD to understand the data.
My plan is to just ping each device and show if it is connected and later hopefully log to a database so if it drops off the network and comes back it will be flagged up.
If (when) I do get it working I think it will be a good project to learn app developer.
Bob
Re: Is there a PING component?
Posted: Fri Aug 01, 2025 1:30 pm
by RGV250
Hi,
I have looked at the ARP example and that looks exactly like what I need, no checksum (although it would be nice to know how it is calculated). It shows the MAC address as well which will be handy for working out what some of the devices are.
Bob
Re: Is there a PING component?
Posted: Fri Aug 01, 2025 1:37 pm
by chipfryer27
Hi Bob
Sounds like you now have a good handle on things. Keep us updated with progress as I am sure it will interest others.
Regards