Serial Camera + LCD

:think:

Can you solve the problem or do you only have too much time?

@ Ingeborg - Why are you being such a knob to people trying to help?

If you are sooooo smart with a PHD etc it’s not that hard to work out…

1 Like

Wow! Bill Gates himself!

Now I get always this message:

Der Thread ‘’ (0x2) hat mit Code 0 (0x0) geendet.
Using mainboard GHI Electronics FEZCerbot version 1.0
Eine Ausnahme (erste Chance) des Typs “System.Exception” ist in GHI.OSHW.Hardware.dll aufgetreten.
SDCard ERROR : Error mounting SD card - no card detected.
Program Started
Der Thread ‘’ (0x3) hat mit Code 0 (0x0) geendet.

Of course there is no card. The eventhandler waits for the input. But: if I insert the card nothing happened.

Do you mean that when you [em]start [/em] the program with no card inserted you get the error? And then try putting in the card and [em]then start[/em] the program and you still get the error?

-or-

Do you mean: you [em]start [/em]the program with no card inserted, then you insert the card while the program is running, and you still see the error?

My fault: I connect the SD Card to a wrong socket.
Things are like described above.Ingeborg

I assume that since you’re an AVR user, you’ve been on AVR Freaks forum. Over there, when someone new comes along and asks “how do I make my AVR do this” it’s typically as a response to an assignment that has been given in school/university, and the person expects to get as much of the code written by others - when the regulars there see through this they say they’re not doing your homework for you.

OK, RTFM. Right.
That’s ok, you can tell me that, but I am not going to. I have no desire to. My desire was to try to help you understand what the issue was and help you learn enough to work past it. We’re a pretty tolerant bunch here, but we do really need that to be a two-way-street.

So getting back to what you are seeing. I’ll give this one last try. As a PhD one thing your research work has probably shown is the importance of research notes, and making sure you record everything.

Please please PLEASE tell us what your end to end process is when you think you have a “corrupted” SD card. Be explicit. Tell us when you remove power from the bot, when you remove the SD card, when you reinstert it and re-power the bot. Tell us what errors come from the bot when you get this “corruption”. At this stage we have no real evidence to say this “corruption” is actually a corruption, and until we have more data I’d dispute that it is corruption. Help us help you.

Over and out.

1 Like

Summary:
Hardware: Cerbot with SD Card on socket #1 and serCam on socket #3. Cerbot connected via USB to PC. No hub. Cerbot Down = USB. red LED on.
No card inserted. Card freshly formatted.

Software: Code copied from #15, namespace changed

Press F5: Start debugging

Info on the left side:
“preparing to deploy assemblies to the device.”
" The debugging target is not in an initialized mode; rebooting…)
After a while: Bereit

The in the output-window (long text):

Found debugger!

Create TS.

Loading start at 8052564, end 807c8e4

Assembly: Microsoft.SPOT.Hardware.Usb (4.2.0.0) Assembly: System.Xml (4.2.0.0)
Assembly: Microsoft.SPOT.Hardware.PWM (4.2.0.1) Assembly: Microsoft.SPOT.Net (4.2.0.0)
Assembly: System (4.2.0.0) Loading Deployment Assemblies.

Attaching deployed file.

Assembly: GHI.OSHW.Hardware (4.2.6.1) Attaching deployed file.

Assembly: Gadgeteer (2.42.0.0) Attaching deployed file.

Assembly: GTM.GHIElectronics.SDCard (4.2.102.0) Attaching deployed file.

Assembly: Gadgeteer.Serial (2.42.0.0) Attaching deployed file.

Assembly: CerbotSDSercam_Topic14475 (1.0.0.0) Attaching deployed file.

Assembly: GTM.GHIElectronics.CerbotController (4.2.102.0) Attaching deployed file.

Assembly: GHIElectronics.Gadgeteer.FEZCerbot (4.2.102.0) Resolving.

The debugging target runtime is loading the application assemblies and starting execution.
Ready.

“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\Microsoft .NET Micro Framework\v4.2\Assemblies\le\mscorlib.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Native.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Hardware.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Graphics.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.TinyCore.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Hardware.SerialPort.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.IO.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\Microsoft .NET Micro Framework\v4.2\Assemblies\le\System.IO.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Hardware.OneWire.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Hardware.Usb.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\Microsoft .NET Micro Framework\v4.2\Assemblies\le\System.Xml.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Hardware.PWM.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Net.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\Microsoft .NET Micro Framework\v4.2\Assemblies\le\System.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\GHI Electronics\GHI OSHW NETMF v4.2 SDK\Assemblies\le\GHI.OSHW.Hardware.dll” geladen
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\Microsoft .NET Gadgeteer\Core\Assemblies.NET Micro Framework 4.2\le\Gadgeteer.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\GHI Electronics\GHI .NET Gadgeteer SDK\Modules\SDCard\NETMF 4.2\le\GTM.GHIElectronics.SDCard.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\Microsoft .NET Gadgeteer\Core\Assemblies.NET Micro Framework 4.2\le\Gadgeteer.SPI.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\Microsoft .NET Gadgeteer\Core\Assemblies.NET Micro Framework 4.2\le\Gadgeteer.Serial.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\GHI Electronics\GHI .NET Gadgeteer SDK\Modules\SerCam\NETMF 4.2\le\GTM.GHIElectronics.SerCam.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\GHI Electronics\GHI .NET Gadgeteer SDK\Modules\CerbotController\NETMF 4.2\le\GTM.GHIElectronics.CerbotController.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\GHI Electronics\GHI .NET Gadgeteer SDK\Mainboards\FEZCerbot\NETMF 4.2\le\GHIElectronics.Gadgeteer.FEZCerbot.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Dokumente und Einstellungen\Wagner\eigene dateien\visual studio 2010\Projects\CerbotSDSercam_Topic14475\CerbotSDSercam_Topic14475\bin\Debug\le\CerbotSDSercam_Topic14475.exe” geladen, Symbole geladen.
Der Thread ‘’ (0x2) hat mit Code 0 (0x0) geendet.
Using mainboard GHI Electronics FEZCerbot version 1.0
Program Started
Der Thread ‘’ (0x3) hat mit Code 0 (0x0) geendet.

I insert the card:

SD Mount Detected
Found root directory: \SD
Starting Camera Thread
Starting Camera Feed
Saved \SD\Image-0.bmp
Saved \SD\Image-1.bmp
Saved \SD\Image-2.bmp
Saved \SD\Image-3.bmp
Saved \SD\Image-4.bmp
Saved \SD\Image-5.bmp
Saved \SD\Image-6.bmp
Saved \SD\Image-7.bmp
Saved \SD\Image-8.bmp
Saved \SD\Image-9.bmp
Saved \SD\Image-10.bmp
Saved \SD\Image-11.bmp
Saved \SD\Image-12.bmp
Saved \SD\Image-13.bmp
Saved \SD\Image-14.bmp
Saved \SD\Image-15.bmp
Saved \SD\Image-16.bmp
Saved \SD\Image-17.bmp
Saved \SD\Image-18.bmp
Saved \SD\Image-19.bmp
Saved \SD\Image-20.bmp
Saved \SD\Image-21.bmp
Saved \SD\Image-22.bmp
Saved \SD\Image-23.bmp
Saved \SD\Image-24.bmp
Saved \SD\Image-25.bmp
Saved \SD\Image-26.bmp
Saved \SD\Image-27.bmp
Saved \SD\Image-28.bmp
Saved \SD\Image-29.bmp
Saved \SD\Image-30.bmp
Saved \SD\Image-31.bmp
Saved \SD\Image-32.bmp
Saved \SD\Image-33.bmp
Saved \SD\Image-34.bmp
Saved \SD\Image-35.bmp
Saved \SD\Image-36.bmp
Saved \SD\Image-37.bmp
Saved \SD\Image-38.bmp
Saved \SD\Image-39.bmp
Saved \SD\Image-40.bmp
Saved \SD\Image-41.bmp
Saved \SD\Image-42.bmp

I eject the card, insert it in a PC slot:
Copy from the sreen:

(Not possible to show a picture here)

Open a bmp with paint.net:

(Not possible to show a picture here)

(not very interesting picture).

Eject card.

Press shift F5 (stop debugging) aand then F5 again.
Nothing happended.
Disconnect Cerbot from PC. Wait for error message: Fehler in der Bereitstellung… unable to communicate with device USB: Gadgeteer
stop debugging
connect Cerbot
start debugging
for a lon time nothing happened on the screen.
then this:

Found debugger!

Create TS.

Loading start at 8052564, end 807c8e4

Assembly: Microsoft.SPOT.Hardware.Usb (4.2.0.0) Assembly: System.Xml (4.2.0.0)
Assembly: Microsoft.SPOT.Hardware.PWM (4.2.0.1) Assembly: Microsoft.SPOT.Net (4.2.0.0)
Assembly: System (4.2.0.0) Loading Deployment Assemblies.

Attaching deployed file.

Assembly: GHI.OSHW.Hardware (4.2.6.1) Attaching deployed file.

Assembly: Gadgeteer (2.42.0.0) Attaching deployed file.

Stop debugging
Start debugging

Output window shows:

Create TS.

Loading start at 8052564, end 807c8e4

Assembly: Microsoft.SPOT.Hardware.Usb (4.2.0.0) Assembly: System.Xml (4.2.0.0)
Assembly: Microsoft.SPOT.Hardware.PWM (4.2.0.1) Assembly: Microsoft.SPOT.Net (4.2.0.0)
Assembly: System (4.2.0.0) Loading Deployment Assemblies.

Attaching deployed file.

Assembly: GHI.OSHW.Hardware (4.2.6.1) Attaching deployed file.

Assembly: Gadgeteer (2.42.0.0) Attaching deployed file.

Assembly: CerbotSDSercam_Topic14475 (1.0.0.0) Attaching deployed file.

Assembly: GTM.GHIElectronics.CerbotController (4.2.102.0) Attaching deployed file.

Assembly: GHIElectronics.Gadgeteer.FEZCerbot (4.2.102.0) Resolving.

The debugging target runtime is loading the application assemblies and starting execution.
Ready.

“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\Microsoft .NET Micro Framework\v4.2\Assemblies\le\mscorlib.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Native.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Hardware.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Graphics.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.TinyCore.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Hardware.SerialPort.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.IO.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\Microsoft .NET Micro Framework\v4.2\Assemblies\le\System.IO.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Hardware.OneWire.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Hardware.Usb.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\Microsoft .NET Micro Framework\v4.2\Assemblies\le\System.Xml.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Hardware.PWM.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Net.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\Microsoft .NET Micro Framework\v4.2\Assemblies\le\System.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\GHI Electronics\GHI OSHW NETMF v4.2 SDK\Assemblies\le\GHI.OSHW.Hardware.dll” geladen
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\Microsoft .NET Gadgeteer\Core\Assemblies.NET Micro Framework 4.2\le\Gadgeteer.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\GHI Electronics\GHI .NET Gadgeteer SDK\Modules\SDCard\NETMF 4.2\le\GTM.GHIElectronics.SDCard.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\Microsoft .NET Gadgeteer\Core\Assemblies.NET Micro Framework 4.2\le\Gadgeteer.SPI.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\Microsoft .NET Gadgeteer\Core\Assemblies.NET Micro Framework 4.2\le\Gadgeteer.Serial.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\GHI Electronics\GHI .NET Gadgeteer SDK\Modules\SerCam\NETMF 4.2\le\GTM.GHIElectronics.SerCam.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\GHI Electronics\GHI .NET Gadgeteer SDK\Modules\CerbotController\NETMF 4.2\le\GTM.GHIElectronics.CerbotController.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Programme\GHI Electronics\GHI .NET Gadgeteer SDK\Mainboards\FEZCerbot\NETMF 4.2\le\GHIElectronics.Gadgeteer.FEZCerbot.dll” geladen, Symbole geladen.
“Microsoft.SPOT.Debugger.CorDebug.dll” (Verwaltet): “C:\Dokumente und Einstellungen\Wagner\eigene dateien\visual studio 2010\Projects\CerbotSDSercam_Topic14475\CerbotSDSercam_Topic14475\bin\Debug\le\CerbotSDSercam_Topic14475.exe” geladen, Symbole geladen.
Der Thread ‘’ (0x2) hat mit Code 0 (0x0) geendet.
Using mainboard GHI Electronics FEZCerbot version 1.0
Program Started
Der Thread ‘’ (0x3) hat mit Code 0 (0x0) geendet.

Insert card.

Output window:

SD Mount Detected
Starting Camera Thread
Starting Camera Feed
Saved \SD\Image-0.bmp
Saved \SD\Image-1.bmp
Saved \SD\Image-2.bmp
Saved \SD\Image-3.bmp
Saved \SD\Image-4.bmp
Saved \SD\Image-5.bmp
Saved \SD\Image-6.bmp
Saved \SD\Image-7.bmp
Saved \SD\Image-8.bmp
Saved \SD\Image-9.bmp
Saved \SD\Image-10.bmp
Saved \SD\Image-11.bmp
Saved \SD\Image-12.bmp
Saved \SD\Image-13.bmp
Saved \SD\Image-14.bmp
Saved \SD\Image-15.bmp
Saved \SD\Image-16.bmp
Saved \SD\Image-17.bmp
Saved \SD\Image-18.bmp
Saved \SD\Image-19.bmp
Saved \SD\Image-20.bmp
Saved \SD\Image-21.bmp
Saved \SD\Image-22.bmp
Saved \SD\Image-23.bmp
Saved \SD\Image-24.bmp
Saved \SD\Image-25.bmp
Saved \SD\Image-26.bmp
Saved \SD\Image-27.bmp
Saved \SD\Image-28.bmp
Saved \SD\Image-29.bmp
Saved \SD\Image-30.bmp
Saved \SD\Image-31.bmp
Saved \SD\Image-32.bmp
Saved \SD\Image-33.bmp
Saved \SD\Image-34.bmp
Saved \SD\Image-35.bmp
Saved \SD\Image-36.bmp
Saved \SD\Image-37.bmp
Saved \SD\Image-38.bmp
Saved \SD\Image-39.bmp
Saved \SD\Image-40.bmp
Saved \SD\Image-41.bmp
Saved \SD\Image-42.bmp
Saved \SD\Image-43.bmp

Eject card and read in PC:

(Not possible to show a picture here)

That is what I mean whith “corrupted”.

The only way for me to save new pictures is to format the card.

The other problem is, that thesse pictures have a wrong file format for your software to add them.

I hope that you now have enough information to help me.