I'm sorry this is such a basic question. Perhaps someone can point me in the right direction.
I have a Teensy 4.1, and I'm going to hook up a magnetic ethernet jack using the special 6 pins.
1) Are there different specs of eth jack, or can I just use anything that has magnetics, 75 ohm resistors, and LEDs?
2) This is a really basic question and sorry if I missed the answer somewhere already documented. On a Teensy 4.1, which I understand has native ethernet, should I still use the Ethernet library? I read on the Ethernet for Teensy Github (https://github.com/PaulStoffregen/Ethernet):
In 2020, we released Teensy 4.1 with native ethernet, which offers vastly better performance than using a Wiznet chip. I do not anticipate spending much development time on Wiznet support in the foreseeable future. If you use Ethernet with Teensy, please consider Teensy 4.1 for future projects. The performance is so much better.
I could not ascertain from the above text if this means "here's the ethernet library. If you use it on Teensy 4.1 it will be even better", or if it means "use something else on Teensy 4.1, it will be much better".
My aim is to implement MQTT and I want the most simple means of doing this possible.
3) I have seen reference to "NativeEthernet" library on this forum. And also a function that retrieves the MAC address:
What is the purpose of the argument passed to this function? Looks like it is there to let me SET the mac address. However when I pass it my own MAC address, it returns what is presumably the builtin MAC address on the board.
Thanks
I have a Teensy 4.1, and I'm going to hook up a magnetic ethernet jack using the special 6 pins.
1) Are there different specs of eth jack, or can I just use anything that has magnetics, 75 ohm resistors, and LEDs?
2) This is a really basic question and sorry if I missed the answer somewhere already documented. On a Teensy 4.1, which I understand has native ethernet, should I still use the Ethernet library? I read on the Ethernet for Teensy Github (https://github.com/PaulStoffregen/Ethernet):
In 2020, we released Teensy 4.1 with native ethernet, which offers vastly better performance than using a Wiznet chip. I do not anticipate spending much development time on Wiznet support in the foreseeable future. If you use Ethernet with Teensy, please consider Teensy 4.1 for future projects. The performance is so much better.
I could not ascertain from the above text if this means "here's the ethernet library. If you use it on Teensy 4.1 it will be even better", or if it means "use something else on Teensy 4.1, it will be much better".
My aim is to implement MQTT and I want the most simple means of doing this possible.
3) I have seen reference to "NativeEthernet" library on this forum. And also a function that retrieves the MAC address:
Code:
void teensyMAC(uint8_t *mac)
{
for(uint8_t by=0; by<2; by++) mac[by]=(HW_OCOTP_MAC1 >> ((1-by)*8)) & 0xFF;
for(uint8_t by=0; by<4; by++) mac[by+2]=(HW_OCOTP_MAC0 >> ((3-by)*8)) & 0xFF;
Serial.printf("MAC: %02x:%02x:%02x:%02x:%02x:%02x\n", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
}
What is the purpose of the argument passed to this function? Looks like it is there to let me SET the mac address. However when I pass it my own MAC address, it returns what is presumably the builtin MAC address on the board.
Thanks