Is it possible to get data from SD card with SPI on my computer? - spi

I need to try to find ways to corrupt/change some data in a SD card, but the thing is, the SD card is in microcontroller, so it works with SPI. What I would like to do in a perfect world is to clone this card and then play with the cloned card. So is there a way to do that?

you could try the arduino interface to read/write data from/to SD card via SPI.. there are many tutorial on the internet about accessing SD card data via arduino

Related

Why can a SD card be read/write by both the phone and a computer

Some phones carry a SD card and can read/write files on it. If the phone is connected to a computer and placed in mass storage mode, the computer can also read/write files on the SD card as if it's a USB drive. So my question is, how can the computer access a peripheral that belongs to another device (the phone)?
To my understanding, there should be a physical switch in the phone that routes the data buses of the SD card to either the bus of the phone or the micro-USB port? Then there's also a driver that controls this switch? If so, where's such driver (in Android OS or iOS for examples)? If not, what's the mechanism to share this SD card?
Note that I'm not talking about MTP, but the mass storage class. I know that the phone and computer may not be able to access the SD card simultaneously - probably one at a time, depending on the status of USB connection. I'm interested in the mechanism to control/switch the access/connection to the SD card from two hosts.
Comments: The similar mechanism may be found in a mp3 player: when it's plugged into the computer, we can add/remove musics. The mp3 player cannot play musics until it's unplugged from the computer - at least mine is like this. Android OS should do the same but I can't find the related source codes.
To my understanding, there should be a physical switch
No, the switch is in the software.
what's the mechanism to share this SD card?
A piece of the software does the umount of the sdcard and connects
it as a USB Mass storage device to the PC - like a card reader would do.
The Linux kernel itself contains a driver that works as a USB mass storage device, but I don't know whether Android actually uses this.

How can I send/receive data to/from my samsung s3 to a (medical) device via an arduino board (wifi + usb)?

I am new to using arduino board. I will like to connect my samsung s3 to a medical device via a an ardunio board.
The first idea is to send/recieve data to/from the phone to the medica device via usb on an arduino board and the medical device recieve/send data from/to my phone via usb on the arduino board.
The second idea is send/recieve data to/from the phone to the medica device via WIFI on an arduino board via usb and the medical device recieve/send data from/to my phone via usb on the ardunio board.
Thanks for your proposed solutions.
All problems, including this one are best approached in increments. In this particular case, I assume you already have an arduino with a WiFi shield and a Samsung s3.
You don't mention the medical device or how it is programmed. But first, concentrate on how to get the Samsung to talk to your PC via wireless. In doing this you will learn a lot about how to write code for the Samsung and how to write code for a PC/Wireless connection. There are probably already sample applications that do this.
Next, identify how the arduino board will connected to the medical device and make the same connection from the arduino to your PC. Get this connection to work. I know there are many examples of how to do this.
Next, get the Samsung to talk just to the arduino board which maybe turns on an LED. Since you already learned how to code the Samsung to do wireless in the first step, then this step might be easy.
Next, connect the arduino to the PC and have the Arduino pass data back and forth between the PC and the Samsung.
After you have this "stack" of: Samsung <==> Arduino <==> PC working then consider what it would take to replace the PC with a medical device so that you have:
Samsung <==> Arduino <==> Medical Device
You can design your own series of incremental steps based on your more specific knowledge of the devices that you have. But the idea is the same, each step is something easy to do and easy to debug. But taking all the steps results in a complex system!
No one is able to do what you want on the first try (unless they have already developed the same or similar system). But everyone is capable of learning new material, if they are persistent.
Please keep me informed as you work on this, it is an interesting project!!

how to set password to micro SD card programmatically?

is there any way to write protect micro sd card with password through programming (Java/C)?
primarily I wanted to set a password to micro sd card and the sd card should have access only if we provide the password.
I come to know that nokia mobile phones were doing this before, hope there is some way of doing this.
thanks in advance.
I'm pretty sure that the phones just encrypt the data (not technically lock it) and only they know how to unencrypted it. The closest that you could get to protecting the micro sd card would be to encrypt whatever you want to write on it. Hope this at least gave you an idea of how to go about this.
Phones use the CID number (card ID number written in ROM) of the SD or microSD card to encrypt the data and act as a key. So Lonnez is right, you need to encrypt the data, not write protect it. The other part of this, is having a device which can read the CID number and spit it out. Nexcopy.com has one for bulk use (manufacturing) but I suspect you would like a single card reader solution, not bulk.
You should also contact the SDCard Association as they could help you out with a more specific answer reg the ability to wp SD media. sdcard.org

GPS modem that can send data to our server

We are planning for vehicle tracking system. We would like to relay on GPS Tracking System and view position report via Google Maps.
For hardware requirement we are thinking of GPS modem that can transmit data to our system.
Which GPD Modem is suitable for my project?
Use a smartphone. Haha.
On a more serious note, since it's for vehicular application only, there are a lot of companies that manufacture GPS modules (u-blox is one of them). Just google and you'll find thousands of companies manufacturing them. But before you choose a GPS module, make sure you check the regulations of your target country. If the module works on the Iridium satellite network, countries like India & China won't allow it as Iridium frequency is close to their military frequencies. In Europe you'll be better off with the Inmarsat network. So, do your homework & you should be good.
Also, if you're developing your own map interface, you might wanna ask the manufacturer if they have any existing mapping interface you can hook into or disable. You mag be charged for either.
All the best!
Are mobile networks (like GSM/GPRS/UMTS) available where you are?
if so check-out the tracking products from this site or this site (Google keywords: GPS GPRS)
If not, you should consider a custom solution, maybe someone like this company can help...
I have worked on a project that involved sending data over GSM/CDMA network. It used a simple GSM/CDMA modem connected to an embedded linux device and was a stationary piece of hardware. Attach a GPS device and it may very well be a tracking system. The problem is when the network drops or the device moves out of the network coverage area. I am not sure if there any GSM/CDMA modem available with GPS added to them as we didn't have this facility in our hardware and it was very much desirable. We needed to use a separate GPS device, mostly iPhone, separately to determine the lat long of our device.
You can use any GSM/GPRS modem equipped with GPS device. The modem will forward the GPS data to your central server through GPRS and at the server side you just need to process rcvd data and display it on google maps.

USB based video capture card with API

I am looking for a usb based video capture card (to be used with cctv analog cameras) which comes with an api. An api of sorts would help as I am planning to do some analytics on the video stream.
Any ideas on such a device?
What platform? Pretty much any capture card would work with DirectShow on Windows. On Linux, the usual API is V4L - the hardware compatibility list isn't as extensive on Linux, but most things do work with it.
The only capture boards I know of internal to a PC are PCI capture cards. A USB capture card would limit the data you could capture. For instance if you try to stream video to a USB drive you'll get error messages because USB is too slow. You're better off purchasing an encoder to do what you want. Retail for an analog encoder is as low as 300 dollars and it allows you to connect 4 analog cameras.