Author Topic: sd card swithing  (Read 5047 times)

0 Members and 1 Guest are viewing this topic.

Offline colombo

  • Newbie
  • Posts: 4
sd card swithing
« on: July 16, 2013, 07:39:40 pm »
Hi  I'm new here in the forum and need help in this
 
Because it is not possible to connect one sd card to two devices at
 the same time
I am looking for a solution that will allow me to switch between the card and two devices

So I drew this -I need to switch the input lines (sd card) between output A to B that representing my two devices



I guess there are many controlers thet  can do it - But I do not know much about it
I'm looking for the least complicated option, the cheapest, and most reliable

9 inputs / outputs are actually nine contacts of the SD card, some of which transmit information / identification / Power
http://pinouts.ru/Memory/sdcard_pinout.shtml
(I do not know if I should use all the sd card pins)
 

Offline fcb

  • Super Contributor
  • ***
  • Posts: 1636
  • Country: gb
  • Test instrument designer/maker G1YWC.
    • Electron Plus
Re: sd card swithing
« Reply #1 on: July 16, 2013, 08:17:10 pm »
Unless you need to make this small or fancy reading up on the specification of the SD card and doing it using logic (perhaps you have a size constraint?) then I would be tempted to common the ground pins (2 of the 9 pins) and 4x BT47 type DPCO relays to switch between cards.

https://electron.plus Power Analysers, VI Signature Testers, Voltage References.
 

Offline colombo

  • Newbie
  • Posts: 4
Re: sd card swithing
« Reply #2 on: July 16, 2013, 09:51:14 pm »

Very interesting but it's too big
and it is not abut size as it is about simplicity

4x BT47 are too complicated. this is too many elements
 

Offline David_AVD

  • Super Contributor
  • ***
  • Posts: 2607
  • Country: au
Re: sd card swithing
« Reply #3 on: July 16, 2013, 10:19:38 pm »
Sounds like you need to specify your requirements more clearly.  Size, power, cost as well as the reason for the switching.
 

Offline fcb

  • Super Contributor
  • ***
  • Posts: 1636
  • Country: gb
  • Test instrument designer/maker G1YWC.
    • Electron Plus
Re: sd card swithing
« Reply #4 on: July 17, 2013, 12:51:21 am »

Very interesting but it's too big
and it is not abut size as it is about simplicity

4x BT47 are too complicated. this is too many elements

So it's not about size..... but it's too big

And four relays is too complicated... :-//
https://electron.plus Power Analysers, VI Signature Testers, Voltage References.
 

Offline amyk

  • Super Contributor
  • ***
  • Posts: 6848
Re: sd card swithing
« Reply #5 on: July 17, 2013, 11:48:49 am »
 

Offline mrflibble

  • Super Contributor
  • ***
  • Posts: 2024
  • Country: nl
Re: sd card swithing
« Reply #6 on: July 17, 2013, 06:30:31 pm »
Use whichever cpld you happen to have lying around. Or lemme guess, while a cpld based solution is not too big, it is too complicated. And of course cpld's do not have banana flavor and as such fail to conform to your unwritten flavor constraint. Well, so much for an otherwise damn fine plan.  :-//
 

Offline fcb

  • Super Contributor
  • ***
  • Posts: 1636
  • Country: gb
  • Test instrument designer/maker G1YWC.
    • Electron Plus
Re: sd card swithing
« Reply #7 on: July 18, 2013, 03:59:52 pm »
I got the impression this wasn't a volume/commercial project, so getting the FSSD07 will be tricky.

I always thought the fun bit was solving the problem yourself..
https://electron.plus Power Analysers, VI Signature Testers, Voltage References.
 

Offline abyrvalg

  • Frequent Contributor
  • **
  • Posts: 396
  • Country: ru
Re: sd card swithing
« Reply #8 on: July 18, 2013, 05:13:03 pm »
CPLD way is not so straightforward for this task, data lines are bidirectional and direction must be decoded from cmd line protocol.
 

Offline mrflibble

  • Super Contributor
  • ***
  • Posts: 2024
  • Country: nl
Re: sd card swithing
« Reply #9 on: July 18, 2013, 06:09:55 pm »
An FSM that keeps track of the CMD line is far more straightforward to implement than poorly specified man-in-the-middle-attack SD card multiplexers...

You mention "this task" ... but right now we don't even know exactly what "this task" is. :P So I think I'll wait for clarification by the OP.

Or maybe colombo is taking fcb's suggestion and is having fun by solving the problem himself. :)
 

Offline David_AVD

  • Super Contributor
  • ***
  • Posts: 2607
  • Country: au
Re: sd card swithing
« Reply #10 on: July 18, 2013, 10:38:02 pm »
The OP registered and posted on the same day, so quite likely that we won't hear back until the next project.  Seems to happen a lot (post and run).
 

Offline amyk

  • Super Contributor
  • ***
  • Posts: 6848
Re: sd card swithing
« Reply #11 on: July 19, 2013, 10:44:07 am »
I got the impression this wasn't a volume/commercial project, so getting the FSSD07 will be tricky.
You can ask for some samples.
 

Offline colombo

  • Newbie
  • Posts: 4
Re: sd card swithing
« Reply #12 on: July 19, 2013, 02:01:47 pm »
Hello again
I'm sorry that I didn't responded since I published this post. And sorry for my English
I really appreciate your effort to help

The original purpose of this project is to connect one sd card to two computers using an adapter
True. It's really simple and inexpensive to use two sd cards or perform some synchronization
But I need to write&read the same sd card directly (without the use of network)

At first I thought I just plug the card in to both computers by bridging
But then I checked a bit and realized it was a problem from all kinds of reasons
  Especially because of the dual voltage supplying that can even cause damage to the computer

That's how I understood only other option is to switch the sd card between the two computers
And perform this task seems to make more sense with a microcontroller Than using electronic components
(It can be applied also to other memory devices and other machinery besides computers!!)
I need that connection to be small.  and if possible not too complex. as fore cost.. Lowest Of course.


I want to mention - I have a general knowledge of electronics and a little less of microcontrollers
  (I studied electronics in college in my past. But I have not used it since)
 

Offline fcb

  • Super Contributor
  • ***
  • Posts: 1636
  • Country: gb
  • Test instrument designer/maker G1YWC.
    • Electron Plus
Re: sd card swithing
« Reply #13 on: July 19, 2013, 02:13:56 pm »
Relays... Relays... Relays...
https://electron.plus Power Analysers, VI Signature Testers, Voltage References.
 

Offline colombo

  • Newbie
  • Posts: 4
Re: sd card swithing
« Reply #14 on: July 19, 2013, 02:57:06 pm »
Relays look like a suitable solution Because it is straightforward and simple

But  (Based on what I found online) the amount of ports/entries is very limited
And as you said earlier - I would have to use at least four, or even more
And it will no longer be small or simple.  This also increases the complexity and the cost
« Last Edit: July 19, 2013, 03:11:01 pm by colombo »
 

Offline abyrvalg

  • Frequent Contributor
  • **
  • Posts: 396
  • Country: ru
Re: sd card swithing
« Reply #15 on: July 19, 2013, 03:17:36 pm »
Be aware that you'll need to steer the "card present" signals also - the switching process must be seen as card removal on one computer and card insertion on the other (to trigger init/deinit, or there will be card state mismatch)
 

Offline mrflibble

  • Super Contributor
  • ***
  • Posts: 2024
  • Country: nl
Re: sd card swithing
« Reply #16 on: July 19, 2013, 03:26:51 pm »
Dumb question: what's the use case for this sd card switching thingy?
 

Offline dr.diesel

  • Super Contributor
  • ***
  • Posts: 2183
  • Country: us
  • Cramming the magic smoke back in...
Re: sd card swithing
« Reply #17 on: July 19, 2013, 04:08:45 pm »

The original purpose of this project is to connect one sd card to two computers using an adapter
True. It's really simple and inexpensive to use two sd cards or perform some synchronization
But I need to write&read the same sd card directly (without the use of network)

I'm curious, you can wire (SD card switch hack) between the two computers but can't use network?  Can you explain why?

Offline Crazy Ape

  • Regular Contributor
  • *
  • Posts: 181
Re: sd card swithing
« Reply #18 on: August 12, 2013, 11:36:07 am »
You might find a bilateral switch that will do the trick.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf