NO READ SIGNAL - SPI_PIN_READY doesn't return to low

Inquiry and support for Freematics products
Post Reply
NatroN
Posts: 23
Joined: Mon Jun 18, 2018 6:55 pm

NO READ SIGNAL - SPI_PIN_READY doesn't return to low

Post by NatroN »

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: 1018
Joined: Sat Mar 01, 2014 3:15 am

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

Post by stanley »

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

Post by NatroN »

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

Post by NatroN »

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

Post by NatroN »

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

Post by NatroN »

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

Post by NatroN »

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

Post by aboaboit »

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