<div dir="ltr"><div>Ahh. Makes sense.<br></div><div><br></div>I guess one of these days I'll get around to actually installing my OVMS properly.  I still get the occasional need to get at the device  (like for fixing a reboot loop due to a botched  updated which requires physical USB access).  For the moment it sits in the little space under the USB ports.<br><div><br></div><div>//.ichael</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 7 Feb 2023 at 17:39, Christos Oscar Kambiselis <<a href="mailto:ckambiselis@gmail.com">ckambiselis@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div>I meant the cars own covers, the module is tacked away behind the upper panels.</div><div dir="auto"><br></div><div dir="auto">Oscar<br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Tue, Feb 7, 2023, 09:14 Michael Geddes <<a href="mailto:frog@bunyip.wheelycreek.net" target="_blank">frog@bunyip.wheelycreek.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div>You can get the sdcard out and in with the help of something to push it with, without opening it up. </div><div dir="auto"><br></div><div dir="auto">Michael <br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Tue, 7 Feb 2023, 2:42 pm Christos Oscar Kambiselis, <<a href="mailto:ckambiselis@gmail.com" rel="noreferrer" target="_blank">ckambiselis@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">This is the latest return<div><br></div><div><div style="box-sizing:border-box;padding:2px 3px;margin:10px 0px 0px;color:rgb(0,0,136);font-weight:bold;font-family:Menlo,Monaco,Consolas,"Lucida Console",monospace;font-size:13px;white-space:pre-wrap">vfs ls /sd</div><div style="box-sizing:border-box;padding:2px 3px;margin:5px 0px 0px 10px;color:rgb(0,0,0);line-height:15.6px;font-family:Menlo,Monaco,Consolas,"Lucida Console",monospace;font-size:13px;white-space:pre-wrap"><span style="box-sizing:border-box">  191.4M  09-Jan-2004 14:20       
  191.4M  09-Jan-2004 14:20    
  191.4M  09-Jan-2004 14:20    
  191.4M  09-Jan-2004 14:20  ! 
  191.4M  09-Jan-2004 14:20  ) 
  191.4M  09-Jan-2004 14:20  1 
  191.4M  09-Jan-2004 14:20  9 
  191.4M  09-Jan-2004 14:20  A 
  191.4M  09-Jan-2004 14:20  i 
  191.4M  09-Jan-2004 14:20  Q 
  191.4M  09-Jan-2004 14:20  y 
  191.4M  09-Jan-2004 14:20  a 
  191.4M  09-Jan-2004 14:20  i 
  191.4M  09-Jan-2004 14:20  ��� r 
  191.4M  09-Jan-2004 14:20  y 
</span></div></div><div><br></div><div>I guess I have to open the covers again.</div><div><br></div><div>Thanks for the help</div><div>Oscar</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 7, 2023 at 8:22 AM Mark Webb-Johnson <<a href="mailto:mark@webb-johnson.net" rel="noreferrer noreferrer" target="_blank">mark@webb-johnson.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><br></div>That SD looks messed up. There is no ‘format’ command that I know of in the ESP IDF. I did try a while (years) ago, but it wasn’t trivial at the time. If it detects an empty SDCARD it will format automatically, or you will need to format on a workstation.<div><br></div><div>Your ‘can can1 status’ is showing packets, so I suggest you try:</div><div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">can log start vfs crtd /sd/can.crtd </blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">(Wait a minute)</blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">can log stop</blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">vfs ls /sd</blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">(and see if /sd/can.crtd has data)</blockquote><div><div><br></div><div>Regards, Mark</div><div><br><blockquote type="cite"><div>On 7 Feb 2023, at 2:16 PM, Christos Oscar Kambiselis <<a href="mailto:ckambiselis@gmail.com" rel="noreferrer noreferrer" target="_blank">ckambiselis@gmail.com</a>> wrote:</div><br><div><div dir="ltr"><div dir="auto">Hi,<div dir="auto"><br></div><div dir="auto">The first time I tested it I started logging from the Web UI and stopped it from there too and the next time I tested it I did it from the shell, running status commands to make sure it had started and stopped.</div><div dir="auto"><br></div><div dir="auto">vfs ls /sd gives, </div><div dir="auto"><span style="font-family:menlo,monaco,consolas,"lucida console",monospace;font-size:13px;white-space:pre-wrap;background-color:rgb(248,248,244)">0   30-Nov-1979 00:00  log
      0   30-Nov-1979 00:00      
      0   30-Nov-1979 00:00  
      0   30-Nov-1979 00:00  
      0   30-Nov-1979 00:00  !
      0   30-Nov-1979 00:00  )
      0   30-Nov-1979 00:00  1
      0   30-Nov-1979 00:00  9
      0   30-Nov-1979 00:00  A
      0   30-Nov-1979 00:00  i
      0   30-Nov-1979 00:00  Q
      0   30-Nov-1979 00:00  y
      0   30-Nov-1979 00:00  a
      0   30-Nov-1979 00:00  i
      0   30-Nov-1979 00:00  ���r
      0   30-Nov-1979 00:00  y</span><br></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">which I noticed on the "Editor", and the reason I wanted to format the card in the OVMS.<br></div><div dir="auto"><br></div><div dir="auto"><div style="box-sizing:border-box;padding:2px 3px;margin:10px 0px 0px;color:rgb(0,0,136);font-weight:bold;font-family:Menlo,Monaco,Consolas,"Lucida Console",monospace;font-size:13px;white-space:pre-wrap">can can1 status</div><div style="box-sizing:border-box;padding:2px 3px;margin:5px 0px 0px 10px;line-height:15.6px;font-family:Menlo,Monaco,Consolas,"Lucida Console",monospace;font-size:13px;white-space:pre-wrap"><span style="box-sizing:border-box">CAN:       can1
Mode:      Active
Speed:     500000
DBC:       none
Interrupts:              214034
Rx pkt:                  120472
Rx ovrflw:                    0
Tx pkt:                   90774
Tx delays:                    0
Tx ovrflw:                    0
Tx fails:                   254
Err flags: 0x008040d9
Rx err:                       0
Tx err:                     128
Rx invalid:                   0
Wdg Resets:                   0
Wdg Timer:                    2 sec(s)
Err Resets:                   0</span></div><div style="box-sizing:border-box;padding:2px 3px;margin:5px 0px 0px 10px;line-height:15.6px;font-family:Menlo,Monaco,Consolas,"Lucida Console",monospace;font-size:13px;white-space:pre-wrap"><span style="box-sizing:border-box">
<div style="box-sizing:border-box;padding:2px 3px;margin:10px 0px 0px;color:rgb(0,0,136);font-weight:bold">can can2 status</div><div style="box-sizing:border-box;padding:2px 3px;margin:5px 0px 0px 10px;line-height:15.6px"><span style="box-sizing:border-box">CAN:       can2
Mode:      Listen
Speed:     500000
DBC:       none
Interrupts:                   0
Rx pkt:                       0
Rx ovrflw:                    0
Tx pkt:                       0
Tx delays:                    0
Tx ovrflw:                    0
Tx fails:                     0
Err flags: 0x00000000
Rx err:                       0
Tx err:                       0
Rx invalid:                   0
Wdg Resets:                  91
Wdg Timer:                    3 sec(s)
Err Resets:                   0</span></div>

</span></div></div><div>The command to start logging is the all CAN messages command from the guide</div><div><i>can log start vfs crtd /sd/can.crtd </i><br></div><div><i><br></i></div><div>and it returns</div><div><span style="font-family:Menlo,Monaco,Consolas,"Lucida Console",monospace;font-size:13px;white-space:pre-wrap;background-color:rgb(248,248,244)">CAN logging to VFS active: Type:vfs Format:crtd(discard) Vehicle:KN Path:/sd/<a href="http://can.cr/" rel="noreferrer noreferrer" target="_blank">can.cr</a></span><br></div><div><br></div><div>also<br></div><div><div style="box-sizing:border-box;padding:2px 3px;margin:10px 0px 0px;color:rgb(0,0,136);font-weight:bold;font-family:Menlo,Monaco,Consolas,"Lucida Console",monospace;font-size:13px;white-space:pre-wrap">can log status</div><div style="box-sizing:border-box;padding:2px 3px;margin:5px 0px 0px 10px;line-height:15.6px;font-family:Menlo,Monaco,Consolas,"Lucida Console",monospace;font-size:13px;white-space:pre-wrap"><span style="box-sizing:border-box">#2: open Type:vfs Format:crtd(discard) Vehicle:KN Path:/sd/can.crtd Messages:214 Dropped:0 Filtered:0 Rate:0.0%
  /sd/can.crtd: running Messages:214 Discarded:0 Dropped:0 Filtered:0 Rate:0.0%</span></div></div><div dir="auto"><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 7, 2023, 02:08 Mark Webb-Johnson <<a href="mailto:mark@webb-johnson.net" rel="noreferrer noreferrer" target="_blank">mark@webb-johnson.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>First guess is that you have to ‘can log stop’ to close the logging file before you will be able to see the content.<div><br></div><div>If that is not it, please provide details of the logging commands you are typing, and what ‘vfs ls /sd’, ‘can can1 status’, ‘can can2 status’, show.</div><div><br></div><div>Regards, Mark.</div><div><br></div><div>P.S. If you have a modern OVMS module, I also suggest you double-check the sdcard maxfreq.khz setting to optimise performance:</div><div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div style="display:block"><a href="https://docs.openvehicles.com/en/latest/userguide/logging.html?highlight=sdcard#performance-impact" rel="noreferrer noreferrer noreferrer" target="_blank">https://docs.openvehicles.com/en/latest/userguide/logging.html?highlight=sdcard#performance-impact</a><br></div></div></blockquote><div><div><br><blockquote type="cite"><div>On 7 Feb 2023, at 4:08 AM, Christos Oscar Kambiselis <<a href="mailto:ckambiselis@gmail.com" rel="noreferrer noreferrer noreferrer" target="_blank">ckambiselis@gmail.com</a>> wrote:</div><br><div><div dir="auto">Hi,<div dir="auto">Has anyone had any problems with CAN bus logging? </div><div dir="auto"><br></div><div dir="auto">I have a 32GB SD card installed and "SD status" gives:</div><div dir="auto"><br></div><div dir="auto"><i><b>SD CARD is inserted</b></i></div><div dir="auto"><i><b>Status: available</b></i></div><div dir="auto"><i><b>Name: SD32G</b></i></div><div dir="auto"><i><b>Size:  30419 MB</b></i></div><div dir="auto"><i><b>Free:  29767 MB</b></i></div><div dir="auto"><i><b><br></b></i></div><div dir="auto"><i><b>Card type: SDHC/SDXC</b></i></div><div dir="auto"><i><b>Max speed: 25000 kHz</b></i></div><div dir="auto"><i><b>Capacity: 30436 MB</b></i></div><div dir="auto"><i><b>CSD: ver=1; sector_size=512; capacity=62333952 read_bl_len=9</b></i></div><div dir="auto"><i><b>SCR: sd_spec=2; bus_width=5</b></i></div><div dir="auto"><br></div><div dir="auto">I have setup CAN1 and 2 to "listen" and started the logging like it's mentioned in the user guide, checked the status, I stopped it some time later, and when I go to open it from the Web UI it is empty, also tried from the Editor and it is also empty, removing the card is a bit tricky since the hardware is pretty tucked away in the console. I searched the manual for a format command but can't find anything.</div><div dir="auto"><br></div><div dir="auto">I do get messages and readings on the OVMS Android app, so at least the OBD CAN is fine.</div><div dir="auto"><br></div><div dir="auto">Oscar</div></div>
_______________________________________________<br>OvmsDev mailing list<br><a href="mailto:OvmsDev@lists.openvehicles.com" rel="noreferrer noreferrer noreferrer" target="_blank">OvmsDev@lists.openvehicles.com</a><br><a href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev" rel="noreferrer noreferrer noreferrer" target="_blank">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a><br></div></blockquote></div><br></div></div>_______________________________________________<br>
OvmsDev mailing list<br>
<a href="mailto:OvmsDev@lists.openvehicles.com" rel="noreferrer noreferrer noreferrer" target="_blank">OvmsDev@lists.openvehicles.com</a><br>
<a href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a><br>
</blockquote></div>
_______________________________________________<br>OvmsDev mailing list<br><a href="mailto:OvmsDev@lists.openvehicles.com" rel="noreferrer noreferrer" target="_blank">OvmsDev@lists.openvehicles.com</a><br><a href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev" rel="noreferrer noreferrer" target="_blank">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a><br></div></blockquote></div><br></div></div>_______________________________________________<br>
OvmsDev mailing list<br>
<a href="mailto:OvmsDev@lists.openvehicles.com" rel="noreferrer noreferrer" target="_blank">OvmsDev@lists.openvehicles.com</a><br>
<a href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev" rel="noreferrer noreferrer noreferrer" target="_blank">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a><br>
</blockquote></div>
_______________________________________________<br>
OvmsDev mailing list<br>
<a href="mailto:OvmsDev@lists.openvehicles.com" rel="noreferrer noreferrer" target="_blank">OvmsDev@lists.openvehicles.com</a><br>
<a href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev" rel="noreferrer noreferrer noreferrer" target="_blank">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a><br>
</blockquote></div></div></div>
_______________________________________________<br>
OvmsDev mailing list<br>
<a href="mailto:OvmsDev@lists.openvehicles.com" rel="noreferrer" target="_blank">OvmsDev@lists.openvehicles.com</a><br>
<a href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev" rel="noreferrer noreferrer" target="_blank">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a><br>
</blockquote></div></div></div>
_______________________________________________<br>
OvmsDev mailing list<br>
<a href="mailto:OvmsDev@lists.openvehicles.com" target="_blank">OvmsDev@lists.openvehicles.com</a><br>
<a href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev" rel="noreferrer" target="_blank">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a><br>
</blockquote></div>