Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SD Init Failed message when Bluetooth is connected #758

Closed
Stefal opened this issue Mar 14, 2024 · 4 comments
Closed

SD Init Failed message when Bluetooth is connected #758

Stefal opened this issue Mar 14, 2024 · 4 comments

Comments

@Stefal
Copy link
Contributor

Stefal commented Mar 14, 2024

Subject of the issue

As soon as the Facet is bluetooth connected, there are a lot of sd init failed message when you read the serial output

Your workbench

  • RTK Facet
  • Firmware v4.0
  • No SD card inserted

Steps to reproduce

Connect a terminal on the Usb serial output, wait a few seconds, then connect a android phone with the Facet via a Ntrip Client.

Batt (67%): Voltage: 4.02V Charging: 28.70%/hr Green
Rover Accuracy (m): 1.0526, SIV: 17
Rover Accuracy (m): 1.0505, SIV: 17
Rover Accuracy (m): 1.0482, SIV: 17
Batt (67%): Voltage: 4.02V Charging: 28.70%/hr Green
Rover Accuracy (m): 1.0406, SIV: 18
Rover Accuracy (m): 1.0310, SIV: 18
Batt (67%): Voltage: 4.02V Charging: 28.70%/hr Green
Rover Accuracy (m): 1.0222, SIV: 18
Rover Accuracy (m): 1.0157, SIV: 18
Rover Accuracy (m): 1.0103, SIV: 18
Batt (67%): Voltage: 4.02V Charging: 24.34%/hr Green
Rover Accuracy (m): 1.0064, SIV: 18
Rover Accuracy (m): 1.0025, SIV: 18
Batt (67%): Voltage: 4.02V Charging: 24.34%/hr Green
Rover Accuracy (m): 1.0001, SIV: 18
Rover Accuracy (m): 0.9993, SIV: 18
Rover Accuracy (m): 0.9980, SIV: 18
Batt (67%): Voltage: 4.02V Charging: 24.34%/hr Green
BT client Connected
Rover Accuracy (m): 0.9967, SIV: 19
SD init failed - using SPI and SdFat. Is card formatted?
SD init failed - using SPI and SdFat. Is card formatted?
Rover Accuracy (m): 0.9886, SIV: 19
SD init failed - using SPI and SdFat. Is card formatted?
Batt (67%): Voltage: 4.02V Charging: 24.34%/hr Green
SD init failed - using SPI and SdFat. Is card formatted?
Rover Accuracy (m): 0.9803, SIV: 19
SD init failed - using SPI and SdFat. Is card formatted?
SD init failed - using SPI and SdFat. Is card formatted?
Rover Accuracy (m): 1.9232, SIV: 19
STATE_ROVER_FIX --> STATE_ROVER_RTK_FLOAT, 2024-03-14 13:55:15.070
SD init failed - using SPI and SdFat. Is card formatted?
Rover Accuracy (m): 0.5185, SIV: 19
Batt (67%): Voltage: 4.02V Charging: 24.34%/hr Green
SD init failed - using SPI and SdFat. Is card formatted?
Rover Accuracy (m): 0.3321, SIV: 19
SD init failed - using SPI and SdFat. Is card formatted?
BT client disconnected
Rover Accuracy (m): 0.2890, SIV: 19
Batt (68%): Voltage: 4.02V Charging: 28.29%/hr Green
Rover Accuracy (m): 0.2745, SIV: 19
Rover Accuracy (m): 0.2648, SIV: 19
Batt (68%): Voltage: 4.02V Charging: 28.29%/hr Green
Rover Accuracy (m): 0.2580, SIV: 19

Expected behavior

I don't know if it's a big deal, but it's strange, we should not see this type of message.

@Stefal
Copy link
Contributor Author

Stefal commented Mar 14, 2024

addendum :
The RTK Facet should receive some Rtcm corrections, or the SD init failed message doesn't occur.

@popeter1
Copy link

popeter1 commented Apr 8, 2024

i was having a similar issue until i swapped from using the windows formatter to the offical sd one https://www.sdcard.org/downloads/formatter/

@Stefal
Copy link
Contributor Author

Stefal commented Apr 11, 2024

i was having a similar issue until i swapped from using the windows formatter to the offical sd one https://www.sdcard.org/downloads/formatter/

I have this issue without any micro-SD card inserted.

@nseidle
Copy link
Member

nseidle commented Apr 23, 2024

On the Facet we don't have a hardware card detect, we have to use software: we send SPI commands every few seconds to detect if a user has hot-inserted an SD card.

What you are seeing are false-positives. The SPI interface is reporting that something responded, but then when we try to mount the card using the SdFat library, the library fails (because there is no card there).

This should not affect the performance of the system. We should however try to suppress the frequency of the failure messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants