NO READ SIGNAL - SPI_PIN_READY doesn't return to low

User feedbacks of the latest ESP32 based Freematics ONE+
NatroN
Posts: 23
Joined: Mon Jun 18, 2018 6:55 pm

NO READ SIGNAL - SPI_PIN_READY doesn't return to low

Postby NatroN » Wed Mar 13, 2019 8:13 am

Hi,

I don't get the exact use from that SPI_PIN_READY. Alot of times I run into a loop where SPI_PIN_READY goes HIGH end never returns to low (except I powercycle my Freematics).

Any way to work around this? (Using SPI - Can bus only)

thanks

stanley
Site Admin
Posts: 758
Joined: Sat Mar 01, 2014 3:15 am

Re: NO READ SIGNAL - SPI_PIN_READY doesn't return to low

Postby stanley » Mon Mar 18, 2019 4:17 pm

Are you using the latest library?

NatroN
Posts: 23
Joined: Mon Jun 18, 2018 6:55 pm

Re: NO READ SIGNAL - SPI_PIN_READY doesn't return to low

Postby NatroN » Tue Mar 19, 2019 12:44 am

No I'm not because I modified mine quite a bit to make it working with electic vehicles.

Are there a lot of changes recently or known bugs with SPI? Which section should I have a detailed look at?

NatroN
Posts: 23
Joined: Mon Jun 18, 2018 6:55 pm

Re: NO READ SIGNAL - SPI_PIN_READY doesn't return to low

Postby NatroN » Wed Mar 20, 2019 8:44 am

Well seems not to be SPI related to be honest.

Did more research and found out that the STM32F103C8T6 seems to enter some kind of standby? LED goes off - Meaning OBD_IND changing state after some time. Once that happens I'm "offline" . A AT command bring the LED back up - menaing the STM32 reacts to my input, but I cant get any respnse to my AT commands.

A reset of the ESP32 ia watchdog or power cycle brigns it back to life

NatroN
Posts: 23
Joined: Mon Jun 18, 2018 6:55 pm

Re: NO READ SIGNAL - SPI_PIN_READY doesn't return to low

Postby NatroN » Thu Mar 21, 2019 9:09 am

Does the STM Pin expect to be connected to 12V Batt Power and goes into poer save mode because it has no power on 12V?

I'm developing on the bench for obvious reasons.

NatroN
Posts: 23
Joined: Mon Jun 18, 2018 6:55 pm

Re: NO READ SIGNAL - SPI_PIN_READY doesn't return to low

Postby NatroN » Fri Mar 22, 2019 6:06 am

can someone explain why file = SD.open("/log.txt", FILE_APPEND);

brings my SPI bus back to life?

NatroN
Posts: 23
Joined: Mon Jun 18, 2018 6:55 pm

Re: NO READ SIGNAL - SPI_PIN_READY doesn't return to low

Postby NatroN » Mon Mar 25, 2019 10:47 pm

Ok - more research and an answer.

For all guys googling and finding this:

As I use OBD AND SD.h via SPI, those 2 are interferring. Making sure they are not interfering (talking same time) fixed the problem for me. Still not sure why this is happening as obd and sd card are using different SPI pins.

Will find out

aboaboit
Posts: 23
Joined: Mon Mar 26, 2018 4:55 am

Re: NO READ SIGNAL - SPI_PIN_READY doesn't return to low

Postby aboaboit » Mon May 13, 2019 4:28 am

Is this a followup to your earlier post?
viewtopic.php?f=14&t=3102&p=43691#p43691


Return to “Freematics ONE+”

Who is online

Users browsing this forum: No registered users and 0 guests