Open greenhouse69 opened 4 months ago
I have noticed some esp32 versions getting stuck on error. I have auto reset feature for library, but I have not published it.
Do you have the schematic? Could be that CAN bus transceiver is connected to some bootstrap pins.
I have noticed some esp32 versions getting stuck on error. I have auto reset feature for library, but I have not published it.
Timo, yes I have been studying the firmware of the esp32 in its different versions (the most modern ones have some boot problems). I have updated the firmware with esptool, and I have tried several esp32 (some new ones and some old ones that worked) but the problem remains. The automatic reboot option is very interesting for these cases. If you can send me a code example to help me to understand the automatic restart it would be much appreciated. In my case when I connect it from the mains from N2k it blocks it completely, it doesn't start anything (neither the wifi) until I press the reset, then it works perfect. Thanks for your help.
jiauka
Jiauka, esp32 wroom-32D version, this is the schematic:
Has anyone tried the MCP2562 version H, speed 8mb/s?
I actually meant that CAN controller gets stuck on bus error and needs to reset. If your WiFi does not work, then it sounds strange.
Is your system isolated or should you actually use ISO1050?
Try another can controller.
On Sun, 30 Jun 2024 at 13:18, Timo Lappalainen @.***> wrote:
I actually meant that CAN controller gets stuck on bus error and needs to reset. If your WiFi does not work, then it sounds strange.
Is your system isolated or should you actually use ISO1050?
— Reply to this email directly, view it on GitHub https://github.com/ttlappalainen/NMEA2000/issues/408#issuecomment-2198418382, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJ7LPAYBTAR7NTFVCFEIVM3ZJ52ITAVCNFSM6AAAAABKCVJKZ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJYGQYTQMZYGI . You are receiving this because you are subscribed to this thread.Message ID: @.***>
One can not change CAN controller on ESP32 except by using external one. Did you mean "CAN transceiver"?
Apologies, I meant CAN tranciever. Isolated units are the only way to go, if you want to avoid stay current loops. I have seen quite a few laptops blow thier USB ports because they dont use idolated USB interfaces. I just play a numbers game, if I am the only one having an issue, then the issue must be related to my hardware.
?? CAN controller ?? You make isolation by using isolated CAN transceiver. You do not need to change CAN controller!
If one has just N2k->WiFi converter or just e.g., optoisolated digital inputs, one does not need isolation. Anyway as you said it is risky to have device unisolated device connected to USB and N2k bus at same time.
But the MCP2562FD is not isolated... Could you share full schematic?
My project does not require an isolated tranciever. I only use the usb for test and control of the esp32. The system gets the current from the N2k network (12v) which is converted with a 5v current regulator, type Lm7805, which is connected to the esp32. Sensors do not need to be isolated, gnd is taken from the esp32 board.
My project works correctly with a 1mb/s MCP2562, I upgraded the board to get different improvements like touch switches, control led and upgraded to a smaller 8mb/s MCP2562 in DFN format with 8 pins + Thermal pad. I think I have connected something wrong on the thermal pad that makes it crash the system.
I am having problems with my new 8mb/s MCP2562 (MICROCHIP MCP2562FD-E/MF). The problem is that when I connect power from nmea2000 the board does not boot and it is necessary to press the reset of the esp32 to get it to start working. If I connect directly to the usb of the esp32 it works correctly. Originally I used a 1 mb/s MCP2562 and everything worked fine. My question is whether the 8mb/s MCP2562s produce errors or if it could be something else.
Thanks