stanleyhuangyc / Freematics

Official source code repository for Freematics
https://freematics.com
419 stars 345 forks source link

sys.begin() error: UART Driver Already Installed #176

Open pr414 opened 1 year ago

pr414 commented 1 year ago

Hello everyone, I'm getting mad at trying to understand what is causing this error. I uploaded the simple_obd_test from the Freematics library, specifically I'm running a Freematics One+, planning to use it with the OBD-II Emulator. When I compile it, upload it and go to see the Serial Monitor, all the device is doing is sending "E (337483) uart: UART driver already installed", with the number in milliseconds of when the error occurred. I already found out that the problem is caused by this part of the code in the setup:

// initializations while (!sys.begin()); obd.begin(sys.link);

I seriously do not know why this is happening, I'm running the code through PlatformIO and getting this error on loop on the Serial Monitor.

image

pr414 commented 1 year ago

For the record, I managed to fix this problem by reverting to an older FreematicsPlus library, specifically early 2018 commits. Since my hardware is from late 2017, I had to find by myself that it is no longer supported by the official code. Creating my own fork of the old commit fixed every issue.