I finally got my act together and soldered my ethernet kit for Teensy 4.1. Now I am running into problems. (I am pretty new at soldering and so there's some chance that the problem is hardware.)
When I run the SimplePing program, the ping always fails - it immediately returns with a -1. What is weird is that it _does_ pick up both the MAC address and the DHCP address. Furthermore, other machines can ping the Teensy when the program is running. If some other machine is pinging it, and I unplug the ethernet cable, the pings start to fail, as they should. Also, when I run some other program, e.g. to blink the LED, the Teensy cannot be pinged, again as expected. All of this makes me think it's not a hardware problem.
I have added the line
#define QNETHERNET_ENABLE_PING 1
to ~/projects/Arduino/libraries/QNEthernet/src/qnethernet_opts.h
but I am not sure that's right.
Is SimplePing program known to work at present? If not, should I be writing one with the Ping class, rather than Ethernet.ping?
When I run the SimplePing program, the ping always fails - it immediately returns with a -1. What is weird is that it _does_ pick up both the MAC address and the DHCP address. Furthermore, other machines can ping the Teensy when the program is running. If some other machine is pinging it, and I unplug the ethernet cable, the pings start to fail, as they should. Also, when I run some other program, e.g. to blink the LED, the Teensy cannot be pinged, again as expected. All of this makes me think it's not a hardware problem.
I have added the line
#define QNETHERNET_ENABLE_PING 1
to ~/projects/Arduino/libraries/QNEthernet/src/qnethernet_opts.h
but I am not sure that's right.
Is SimplePing program known to work at present? If not, should I be writing one with the Ping class, rather than Ethernet.ping?