[Ovmsdev] SD-card issues

Mark Webb-Johnson mark at webb-johnson.net
Sun Apr 21 21:03:38 HKT 2019


Please make sure you have left [sdcard] maxfreq.khz at default, unless you are 100% certain that the CP2102 chip revision is ok.

Other than that, I suggest to swap the SD CARD to rule that out as the cause.

Regards, Mark.

> On 21 Apr 2019, at 6:56 PM, Geir Øyvind Vælidalo <geir at validalo.net> wrote:
> 
> Ok, a small update: I’ve added the same functionality to the Kia Soul module and it works perfectly there. That module has a 16GB Toshiba Exceria microSDHC UHS-I card. When the Niro is back home, I’ll test the same SD-card on that module.
> 
> Feeling hopeful 🙂
> 
> Geir
> 
>> 20. apr. 2019 kl. 23:33 skrev Geir Øyvind Vælidalo <geir at validalo.net <mailto:geir at validalo.net>>:
>> 
>> Hi guys,
>> 
>> I’m having some issues with the SD-card stops working after a few minutes. I haven't used the SD for anything yet, except backup of settings, but currently I’ve started to use it for storing status (SOC), trip energy usage and 12V logging. After some time the SD-card just stops working. I don’t get any error messages. Sometimes the ls-command shows the files, but cat-ing the files only gives «OK». Other times the card just seems either empty or the files appears empty. sd unmount and sd mount «fixes» the issue. 
>> 
>> I’m saving fairly seldom; I append 22 bytes to one file every 5 minutes, saving status (currently only SOC) to another file when charging stops or car is turned off, and then 164 bytes to a third file whenever the car is turned off (used by a new range calculator since I can’t find the proper one from the can-bus ). 
>> Reading is done during boot, and then when user access my new AUX Battery monitor-page, so not very often. Therefore, I don’t think there is any issues with my code in respect to file handles, files sizes or strain on the SD-card. Could be wrong though...
>> 
>> Any tips to what to try? I plan to try a different SD-card, so any recommendations?
>> 
>> Best regards,
>> Geir
>> 
>> 
>> _______________________________________________
>> OvmsDev mailing list
>> OvmsDev at lists.openvehicles.com <mailto:OvmsDev at lists.openvehicles.com>
>> http://lists.openvehicles.com/mailman/listinfo/ovmsdev
> 
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.openvehicles.com
> http://lists.openvehicles.com/mailman/listinfo/ovmsdev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20190421/892f24ff/attachment.html>


More information about the OvmsDev mailing list