I am working on a project with a Teensy 4.1 board and the PJRC Ethernet Kit. I have soldered the teensy ethernet kit and wired it to the Teensy as shown on the product website. My goal is to be able to communicate with the teensy through a router from another device (More specifically, to have a python script open a UDP or TCP connection to the teensy and have 2-way communication, but I do not think that is particularly relevant for the issue at hand).
The teensy is currently connected to the ethernet kit and the ethernet cable connects from the kit to one of the LAN ports on my router. On the software side, I have tried the QNEthernet sample file BroadcastChat.ino (default version, no changes) and received the terminal message "Failed to get IP address from DHCP" indicating that the Teensy was unable to get a Local IP assigned from the router. I also have tried the ServerWithListernes.ino example file and assigning the Teensy a Static IP to see if I could get around the issue, but this time was unable to get past the Ethernet.begin() function call in line 178 of the example file.
I do not have any specific requirements for the project other than being able to open some sort of TCP or UDP connection with the teensy, so I was not sure exactly what route to go down, but am seeming to have trouble getting any of the example files to even initialize properly. Does anyone have advice on how to approach this project / problem and where I can start with troubleshooting?
Thank you!
Nate
The teensy is currently connected to the ethernet kit and the ethernet cable connects from the kit to one of the LAN ports on my router. On the software side, I have tried the QNEthernet sample file BroadcastChat.ino (default version, no changes) and received the terminal message "Failed to get IP address from DHCP" indicating that the Teensy was unable to get a Local IP assigned from the router. I also have tried the ServerWithListernes.ino example file and assigning the Teensy a Static IP to see if I could get around the issue, but this time was unable to get past the Ethernet.begin() function call in line 178 of the example file.
I do not have any specific requirements for the project other than being able to open some sort of TCP or UDP connection with the teensy, so I was not sure exactly what route to go down, but am seeming to have trouble getting any of the example files to even initialize properly. Does anyone have advice on how to approach this project / problem and where I can start with troubleshooting?
Thank you!
Nate