Deunan
Improving the hardware 
25th-Apr-2009 01:40 am
Serial link: poor man's answer to broadband adapter shortage (and pricing). It's a cheap way to transfer data between PC and Dreamcast (including dumping your own BIOS and FLASH) and pretty much the only option if you're considering homebrew software. Sure, demos and emulators can be burned onto CDs but for testing your own code you'll need a more robust delivery method :)

Some time ago I mentioned that most serial link projects out there are overly complicated. Perhaps it's because many were conceived years ago when every PC had at least one RS232 port and USB chips were expensive. I'm about to show you it can be made really simple.

I'm going to skip all the technical details and going to assume you already know:
- what is RS232 and it's limitations
- why we should stick to low-voltage signaling
- what is USB and why use it

First you'll need FT232 chip from FTDI. It's exactly what we want, a simple yet fast USB to serial converter with low-voltate I/O. And by "chip" I actually mean a ready-made interface like this one:



It can be powered from USB line and has internal 3.3V low drop regulator - so all it takes to make it work is two short wires: one to route power supply, one to connect LDO output with voltage reference pin for I/O.

Now for the Dreamcast part. I found it impossible to purchase a connector that would fit the serial port so it had to go. You won't miss it, trust me.
First cut the connector assembly in two, with a small saw blade or a file. Take your time, you don't want to damage anything on the board (hence the black tape by the way). Pay attention to where exactly are you placing the cutting point, you will want both sides of the video connector intact so that the screws will hold it well in place.



Cut the connector legs with precise cutters. And I do mean precise, too big will rip them off the board, possibly damaging the traces as well. The alternative is to insert a small, flat head screwdriver (or something like that) under the pin and pry it up as you heat the soldering point with iron tip. Again, do not apply any force before melting the solder. The pins on right were cut, ones on the left were lifted.



Now desolder the shield and remove unwanted connector part completly. Don't throw it away yet, you'll need to cut off the other side mounting wing too, to provide a proper spacing for metal heat exchanger. Well you can always use a couple of small washers for that if need be.



And here's a picture of the pads cleaned, with any leftover pin remains removed.



Now you just need to solder 5 wires (RxD, TxD, RTS, CTS and ground) to the pads. I used one of the shield pads for ground, that makes it easier to fit the other four. That can be somewhat challenging with thicker wire but it pays off to have it durable and safe to twist around. Glue gun does the rest, just don't overdo it or you'll have problems fitting the covering plate/heat exchanger.



Ready to rock :) You can even see the wire I used to route USB power and I/O reference. All you need to do now is put it all back together and get friendly with dcload-serial tool.



So, does it work? Hell yes, on 3 Dreamcasts already. Same technique in every case. Works like a charm up to 1.5Mbps too. Just keep the wires to FT chip as short as possible (already long board traces and protective RC elements not helping any). If you have problems with higher speeds you can try using 5V instead of 3.3V for I/O. I belive this to be pretty safe (run it for hours on my Dreamcasts) but make no guarantees.
Some people say even 3Mbps can be achieved when protection RCs are removed but that will open a direct line to SH4 pins and you risk permanent damage to it. Obviously, no 5V in that case.

There's no galvanic separation here, wouldn't make much sense with common ground, so even if DC power supply is floating (I think) make sure you connect everything to the same AC phase. Or suffer the consequences.

Oh, and yes, the wires just stick out of the back of Dreamcast. Hey, it's cheap and works :)



UPDATE: Few more details, should be more useful now :)

First, here's a simplified pinout (only the required signals shown):



And just in case someone needs this extra bit of info, the whole serial port carries these signals on B10 down to B1 (looking at the picture above that's left to right): 3.3V, /RESET, GND, CTS, RTS, TxD, RxD, GND, SCK, 5V. And as you can see the big pads on both sides (connector shield) are also tied to ground.

This particular serial to USB converter was bought here: http://www.propox.com/products/t_93.html
It's a pretty common design but there's a manual with schematics for download on that page if you need them.

Pins VPO, VEX and VIO are connected together in my photo. That's PORTVCC, EXTVCC and IOVCC - and that means 5V on the I/O pins. This is actually by mistake, I'm short on these modules and when I swap it around I often forget to re-wire it properly for Dreamcast. As I said, it will work like this but that's unsafe.
You should connect IOVCC to 3V3OUT instead. With this module you'd just put a jumper on pins 24 and 23 and connect 22 with 18 using a short, insulated wire.

And don't forget it's a null-modem so TxD from the board goes to RxD pin on the FT chip and vice versa. Same for RTS/CTS control signals.

Hope that helps!
Comments 
27th-Apr-2009 06:16 am (UTC) - MVSC2
Anonymous
I tryed create one bin file of MVSC2 cart using this order :

"epr-23085a.ic11", 0x0000000, 0x0400000, CRC(5d5b7ad1) SHA1(f58c31b245fc33fa541f9f074548402a63f7c3d3) )
"mpr-23048.ic17", 0x0800000, 0x0800000, CRC(93d7a63a) SHA1(c50d10b4a3f9db51eae5749f5b665d7c8ab6c898) )
"mpr-23049.ic18", 0x1000000, 0x0800000, CRC(003dcce0) SHA1(fb71c8ca9271d2155878c72d8fe2df3031e6c014) )
"mpr-23050.ic19", 0x1800000, 0x0800000, CRC(1d6b88a7) SHA1(ba42e9d1d912d88a7ad839b878975ba590634320) )
"mpr-23051.ic20", 0x2000000, 0x0800000, CRC(01226aaa) SHA1(a4c6a0eda05e53d0e51b92a4317a86a708a7efdb) )
"mpr-23052.ic21", 0x2800000, 0x0800000, CRC(74bee120) SHA1(5a0fb48fa758a2be2e08e3b1298103c5aa748835) )
"mpr-23053.ic22", 0x3000000, 0x0800000, CRC(d92d4401) SHA1(a868780f8d2e176ff10781e1c08bf932f34ac504) )
"mpr-23054.ic23", 0x3800000, 0x0800000, CRC(78ba02e8) SHA1(0f696a33e1e6671001efc309ed62f084a246ad24) )
"mpr-23055.ic24", 0x4000000, 0x0800000, CRC(84319604) SHA1(c3dde162e043a54e1325202b46191b32e8784a1c) )
"mpr-23056.ic25", 0x4800000, 0x0800000, CRC(d7386034) SHA1(be1f3ca5f283e428dc59dc072de3e7d36e122d53) )
"mpr-23057.ic26", 0x5000000, 0x0800000, CRC(a3f087db) SHA1(b52d7c072cb5c2fdd10d0ac0b62cebe48b229ae3) )
"mpr-23058.ic27", 0x5800000, 0x0800000, CRC(61a6cc5d) SHA1(34e52cb076888313a80f2b87876b8d37b91d85a0) )
"mpr-23059.ic28", 0x6000000, 0x0800000, CRC(64808024) SHA1(1a6c60c330642b273978d3dd02d95d17d36ee3f2) )
"mpr-23060.ic29", 0x6800000, 0x0800000, CRC(67519942) SHA1(fc758d9075625f8140d5d828c8f6b7a91bcc9119) )
"mpr-23061.ic30", 0x7000000, 0x0800000, CRC(fb1844c4) SHA1(1d1571516a6dbed0c4ded3b80efde9cc9281f66f) )
"mpr-23083.ic31", 0x7800000, 0x0400000, CRC(c61d2dfe) SHA1(a05fb979ed7c8040de91716fc8814e6bd995efa2) )
"mpr-23084.ic32", 0x8000000, 0x0400000, CRC(4ebbbdd9) SHA1(9ad8c1a644850de6e35705318cd1991e1d6e60a8) )

The result is one big file of 124mb, and at loading on Makaron i see this infinite loop and the game don´t boot:

http://img4.imageshack.us/img4/9388/44906310.jpg

something is wrong ?

thank´s for Makaron !
27th-Apr-2009 08:42 am (UTC) - Re: MVSC2
Close. Notice how epr-23085a.ic11 is only half the size of other files? To create continuous image the joined files must be the same size, so either pad it with zeros or simply add twice. The resulting data file must successfully pass ROM board checksum test, that's how you will know it's OK.

All that won't do you much good though, most cart-based games have protection devices that are not yet emulated. The game will have all sorts of issues, so please do not report any "bugs" on cart games. Such reports will be ignored.
27th-Apr-2009 02:04 pm (UTC)
So sad Deunan, Alex won´t work anymore on NAOMI cart checksum and his was close to send to you one machine with one cart, so now the emulation of the carts will freeze for some time I guess. Will you continue your test with ElSemi?
27th-Apr-2009 02:35 pm (UTC)
I've not heard from Alex the last few days so he's taking some time off. It remains to be seen what's his final decision on all this.
As for NAOMI, that stuff gets expensive quickly (it's not just the main board you know) and I don't even have anywhere to put it :) I was hoping to get one cheap cart for experiments (might end up broken) but that will have to wait.

Anyway, ElSemi is doing great even without my help :P It's possible that even one proper dump will let us (or somebody else) figure out how to fix other cart based games and hacked BIOS won't be necessary.
27th-Apr-2009 03:44 pm (UTC) - Naomi from Japan
Anonymous
Hello Deunan, Alex told me you were supposed to contact me for the Naomi, but I still didn't get any mail from you nor your contacts. Are you still interested in it ? Would that be helpful to you ? If this is the case, please drop me a mail at arnarabaAThotmailDOTcom
28th-Apr-2009 08:39 am (UTC)
Anonymous
http://f17.aaa.livedoor.jp/~takotako/dcserial_ft232bm.php#dcsdrip

The SD-Card Reader for the DC looks realy cool.

28th-Apr-2009 03:56 pm (UTC)
It's a nice idea. Good for standalone GD dumping, this way anyone with TV can do that.
I prefer serial uplink to a PC though. Modified dcload tools give me a nice remote console (so no TV/controller needed) and the ability to directly access files on HDD. Testing is much easier :)
28th-Apr-2009 10:57 pm (UTC) - reminder of slowdownbugreport
Anonymous
just so that it does not get lost. maybe i am the only one with this problem. could be some specific graphic cards setting. my old answer:

ah sorry. forget to give more infos. amd dualcore 5600/2gb ram. nvidia 9800gtx+ latest drivers, latest directx 9 version. winxp pro sp2.
i just tried it again with shenmue 1 playing the intro sequence. everythings getting slow, even the sound, then stops, pressing f12 once brings up the menu. game still stopped. pressing f12 again, menue goes away. game runs fullspeed again. for appr. 10-15 seconds. slowdown starts again.
as already stated, it does not slowdown in windowed mode. all settings on default. i have some extra settings enabled in my nvidia driver options. like tripple buffering and vsync. but all my other emulators (nulldc included) work fine in fullscreen.
besides that problem (seems to be i am the only one experiencing it?) i really appreciate your work. its great to see such dedicated projects goin on. keep it up :D
28th-Apr-2009 11:09 pm (UTC) - Re: reminder of slowdownbugreport
It's a bug some people experience but I'm unable to reproduce.
Turn off vsync or reduce desktop resolution to 1024x768 (or less). That should help for the time being.
29th-Apr-2009 05:58 am (UTC) - Re: reminder of slowdownbugreport
Anonymous
ok. i will try your suggestions. my normal desktop is 1680*1050 with nvidia settings to keep the original ratio of resolutions in fullscreen (i.e. it will make the screen 4:3 for normal resolutions). i gonna fiddle around a bit and report back :D thanks for taking the time to adress user comments :D
1st-May-2009 08:51 pm (UTC) - Re: reminder of slowdownbugreport
Anonymous
it really was the VSYNC. i made a profile for makaron.exe in the nvidia settings so that it uses vsync OFF. and the slowdowns in fullscreen dissapear completely. thankyou :)
2nd-May-2009 09:29 am (UTC) - Re: reminder of slowdownbugreport
Anonymous
There's a known issue with vsync and nVidia cards on pretty much any recent driver build from at least the last two years. They changed the way vsync is handled to improve performance on underpowered rigs for FPSes, but it has the side effect of utterly wreaking vsync on just about anything else.

Try setting Maximum Prerendered Frames to zero in the nVidia Control Panel and try the emulator again. With it on at all, I was seeing half-second lag in pretty much any Direct3D stuff. Nestopia made it exceptionally obvious there was a problem.
5th-May-2009 07:54 pm (UTC) - Re: reminder of slowdownbugreport
Anonymous
when the slowdown happend i can read this in the dialog box
this message over and over again (mt: magazine >4000), but if i exit the emu and try again i can play the same part without slowdowns
im another annonympus btw ,is just that i have the same slow down bug
30th-Apr-2009 04:33 am (UTC) - module power
Anonymous
Its hard to tell from the picture how you routed the power and io reference. Is that from pin 12 (PORTVCC) to pins 11 and 10 (EXTVCC and VCC-IO)? Or just pin 12 to pin 10?
30th-Apr-2009 09:25 am (UTC) - Re: module power
Look here: http://www.propox.com/products/t_93.html
Go to the bottom of the page, download "User's Manual". There's a schematic on the last page of the manual.

Pins VPO, VEX and VIO are connected together in my photo. That's PORTVCC, EXTVCC and IOVCC. This is actually by mistake, I'm short on these modules and I when I swap it around I often forget to re-wire it properly for Dreamcast. As I said, it will work like this but that's unsafe.

You should connect IOVCC to 3V3OUT instead. With this module you'd just put a jumper on pins 24 and 23 and connect 22 with 18 using a short, insulated wire.
30th-Apr-2009 07:01 pm (UTC) - Re: module power
Anonymous
Got it. I had the hardware guy at work get me a couple of these: http://www.dlpdesign.com/usb/usb232.shtml.

The pinout diagram in their data sheet/schematic is flipped around 180 so your pin24 is my pin12.

Thanks again. Hopefully I'll get this to work.
30th-Apr-2009 07:22 pm (UTC) - Re: module power
One more thing, don't forget it's a null-modem so TxD from the board goes to RxD pin on the FT chip and vice versa. Same for RTS/CTS control signals.
1st-May-2009 04:30 am (UTC) - Re: module power
Anonymous
One last question:

Is this the pinout you're working with on the dreamcast side?
  ||||||||||  (at Console)
  1       10

Pin Description
1 +5V
2
3 GND
4 RX2
5 TX2
6 RTS
7 CTS

8
9
10 +3,3V

1st-May-2009 09:07 am (UTC) - Re: module power
Yup. I've updated my post, see the picture.
21st-Sep-2009 09:45 am (UTC) - Re: module power
Anonymous
Inspite of the opening post saying that you can't figure out where to get a serial cable for the Dreamcast (so you could have the needed end connector for the Dreamcast), I found one for $60 on ebay after about 30 seconds. It is a NeoGeo Pocket to Dreamcast cable, that you can easilly cut the wire and just keep the Dreamcast end of it to solder to your USBtoSERIAL converter. Now I haven't made that mod yet because you have yet to post a color coded pinout of the cable and associated tutorial for how to use this cable to make the DREAMCASTtoUSB converter. And I won't spend $60 until I'm sure I know the instructions on how to use it for this hack. But you really need to look better online for the needed cable before you suggest in a tutorial something as crazy as actually OPENING UP A VIDEO GAME CONSOLE and doing a SOLDERING JOB on the main board. I'm sure MANY people would rather spend $60 for a cable than doing a hardware modod of a video game machine which might end up RUINING the machine, which (if they bought in the store while the DC was still being sold) was a $150 to $200 game machine! Spend $60 or waste $150 to $200, hmm, what should I do. OBVIOUSLY I'll spend $60 on a cable so I don't have to fry a $150 to $200 video game machine, when doing my modification.
21st-Sep-2009 12:01 pm (UTC) - Re: module power
60 USD? This a joke, right? That's enough for the USB converter and a preowned Dreamcast (in good condition!) to experiment on.
Just because you don't feel comfortable holding soldering iron doesn't mean everyone is like that.
26th-Sep-2009 09:49 am (UTC) - Re: module power
Anonymous
Hello, is this one OK ?
http://cgi.ebay.fr/USB-TO-RS232-Module-Based-TTL-PC-FT232-FT232RL_W0QQitemZ260472630258QQcmdZViewItemQQptZLH_DefaultDomain_0?hash=item3ca560ebf2&_trksid=p3286.m63.l1177
26th-Sep-2009 09:25 pm (UTC) - Re: module power
It will do. It has one minor flaw though, someone forgot to make use of the 3.3V output. There are three ways around it:

1) Ignore it, run the I/O at 5V - it will work and is pretty safe. I've been doing that a lot, but there is always some risk and it might cause audio/video interference as long as the cable is connected.

2) Route 3V3 from DC mainboard - just one more wire from B10 to the module J2 pin #1 (VCC). Rejumper J1 to 1-2. You can now switch between 5V and target power supply with J1.

3) Fix the problem :) Desolder R1 since it's not needed, only revision A chips needs it and this is R, then solder a wire from chip pin 17 (3V3OUT) to pin 4 (IOVCC). The easiest way would be to use the solder pads of R1 and C4, just be careful to get it right. It's permanent 3V3 now as long as the wire is in place (or you can solder it to J1 instead of C4 and have it selectable).
26th-Sep-2009 09:51 pm (UTC) - Re: module power
Anonymous
Thanks for your reply ! :)

I removed the EMI capacitors, so no 5V for me...
But I think adding a 74VHC244 chip could work. I just need to know what a "3 states" buffer is, I'm not that familiar with that kind of things.

By the way, I plan to use the connector of my old coder's cable, I hope baudwidth will still be good enough.
12th-Jan-2010 06:06 pm (UTC) - Re: module power reparasion
Anonymous
reparasion de dreamcast youtuve nicolas 183 ttengo el kof 2003 el metal sglu 5 y4 se travan meparese q esta mal armado se muchas cosas de la dc enseño a repararla y aserla silensiosa kiero ponerle un dvd pero no tengo datos de los pines nesesito sircuitos de los yoystik y de la placa madre porfavor nesesito amigo que kieran ala dreamcast ver videos en youtuve reparasion de dreamcast y xbox 360 y que digan como soni manipulio a sega injustamente dejar imeil
16th-Oct-2009 10:31 pm (UTC)
Anonymous
I've tried it with a FTDI MM232R and that's working.
Being a soldering newbie, I bought an old dreamcast.
I hope this will hold.
Anyway, thanks for the idea, now I can toy with my dreamcast ^^.
25th-Nov-2010 12:29 am (UTC) - Will this adapter work?
Anonymous
Hello I am new to the gd-rom dumping scence and was wondering if this adapter would work in order to do the usb mod. Thanks for the great tutorial and for taking the time to help everyone out.
http://cgi.ebay.com/FTDI-USB-serial-UART-TTL-interface-FT232BM-BL-/280593061196?pt=LH_DefaultDomain_0&hash=item4154a6554c
25th-Nov-2010 12:41 am (UTC) - Re: Will this adapter work?
Should do but I have to warn you that some of these new FTDI chips can operate without a crystal resonator. A built-in RC oscillator is used instead and it's not stable enough to allow trouble-free operation at speeds over some 300kbaud.
I'd look for something that has a resonator soldered (6MHz typically), it also benefits the new chips as USB 2.0 speeds require stable clock reference.

Also most available dumping software require BBA anyway. I wrote my own dumper for fast serial link but it's _very_ old code, was never very stable to begin with.
25th-Nov-2010 02:35 am (UTC) - Re: Will this adapter work?
Anonymous
Thanks for the quick reply would this adapter be more suitable fo the task?
http://www.ebay.com/viewitem?itemId=400139400466&index=11&nav=WATCHING&nid=97199704870
25th-Nov-2010 08:30 am (UTC) - Re: Will this adapter work?
"This page may have moved or is no longer available."
12th-Feb-2011 01:29 pm (UTC) - Alternative USB for mass storage (Pen drive/Card reader/HDD ect)
Anonymous
You can call me Zorlon at the moment I don't have a LiveJournal account at the moment


Finding this very interesting and easy to do by the looks of it.
I was wondering however if this could be done to work with Dreamshell designed to work with SD-media

Dreamshell URL - Russian site but has english parts to it
http://www.dc-swat.ru/blog/dreamshell/20.html
SDcard reader design - Chinese
http://f17.aaa.livedoor.jp/~takotako/dcserial_ft232bm.php#sdcard
Above google translated
http://translate.google.co.uk/translate?hl=en&sl=ja&u=http://f17.aaa.livedoor.jp/~takotako/dcserial_ft232bm.php#sdcard&ei=pbBVTZHZFceIhQeKt4zCDA&sa=X&oi=translate&ct=result&resnum=1&ved=0CCEQ7gEwAA&prev=/search%3Fq%3Dhttp://f17.aaa.livedoor.jp/~takotako/dcserial_ft232bm.php%2523sdcard%26hl%3Den%26safe%3Dactive%26client%3Dfirefox-a%26rls%3Dorg.mozilla:en-GB:official%26prmd%3Divns

using a VDIP1 module instead, hopefully allowing USB mass storage to be connected directly instead of/aswell as SD-media

http://www.ftdichip.com/Images/VDIP1.jpeg

PDF doc
http://www.ftdichip.com/Support/Documents/DataSheets/Modules/DS_VDIP1.pdf


ftdichip's MM232R Modules Page
http://www.ftdichip.com/Products/Modules/DevelopmentModules.htm#MM232R


If all above could be done, could an example of connections to DC be shown
12th-Feb-2011 04:21 pm (UTC) - Re: Alternative USB for mass storage (Pen drive/Card reader/HDD ect)
All these SD card projects have one common, fatal flaw - no support for CD-Audio.

Connecting SD media to serial port also requires either a special boot disc (so you still need working GD drive) or modified BIOS (not as easy as it sounds, some people have done that but there are a few strings attached). It's also considerably slower than real GD and that shows...
12th-Feb-2011 05:25 pm (UTC) - Re: Alternative USB for mass storage (Pen drive/Card reader/HDD ect)
Anonymous
Zorlon again

I am looking to connect usb mass storage rather than SD media.

Yeah I have seen the results on SD card but don't imagine using USB instead will help with that, being that they all use the Dreamcasts serial port, but it would help more storage devices to be used for testing/dumping, if there is a speed increase great, but fear thats wishfull thinking.

I have looked into boot discs and my last post infact links up such boot discs atleast for SD cards, not sure if it works with anything else or not.

Personly not intending on flashing the bios, but I do know that a very small hardware mod lets you flash it.

Anyway would using the VDIP1 module (1 usb port) work in allowing the use of usb storage devices on a Dreamcast, instead of a direct PC to DC connection (details on this board is in my first post)

Also would special version of dcload be needed to allow access or would any serial software allow this?

Have a feeling new software/hack/mod would need to be developed :(
12th-Feb-2011 08:02 pm (UTC) - Re: Alternative USB for mass storage (Pen drive/Card reader/HDD ect)
You need to brush up on electronics a bit. What exactly are you suggesting here, that we pick some random USB chip and shove it into Dreamcast and it will work, just like that?

There is a reason it's SD cards and not something else. There is a reason those are connected to serial port. Pros are it's a rather simple solution and can be made to work with minimal software changes - though only for some games. I already explained the cons.

Also, BIOS cannot be flashed, the mod you're talking about requires adding another chip that can be switched to "replace" the original one. You need a compatible 5V FLASH memory, a way to program it with custom BIOS, then there is a lot of soldering involved (and also the heat shield must be cut to allow the piggy-back chip to fit in there at all).

Lastly, and this is quite funny considering you'd want to use this solution for homebrew, this only works for games. Because most demos and other stuff access GD drive directly so everything would have to be rewritten.

Obviously a solution where you can use USB mass storage devices or PC uplink is preferable, I do agree on that. I started my own GD-emu project with that in mind, it's anyting but simple and cheap though. If done correctly it'd be a perfect replacement for a GD-drive - thus no need to change any software and full compability with every game. This is nowhere near fully functional yet.
12th-Feb-2011 09:05 pm (UTC) - Re: Alternative USB for mass storage (Pen drive/Card reader/HDD ect)
Anonymous
What I was thinking of, has already been done I was looking at a different chip though, but the same thing in the long run yeah I spotted that while I was waiting for a reply

http://henzenmann.blogspot.com/2006/08/this-is-first-version-of-my-usb-to.html

The above is still based off some of the old designs I posted in my first post

As I said I'm not realy interested in a bios mod booting software via the gd-rom (2 session CD-R's) that can read from USB via the serial port

I was possibly thinking of the region mod that can be done that was just joining two points I don't actually remember off the top of my head, though not of interest to me at all... lets forget about the bios

I do beleive the chip I am asking about can be used with very little adding to it, it's not just some random chip if you checked it out and the info that was given

Homebrew can be put into iso format easy enough and booted via this method and be used to filter out for example in ports on dreamcast what data can be used/compatible and what is not without burning CD after CD only to change 2 or 3 setting or try a bunch of other files or the CD structure itself.

I do however thank you for your time, I think the link I just gave has much of the info I was after a little more looking on my own should be enough, though I must admid I will have to put it off anyway due to lack of money, that and I need to pratice soldering again, not done any in years now, last thing I done was a printer port to PSX multitap for use on PC. (Driver software was already made I don't claim that)

If you do wish to help me though that would also be great either with the chip I mentioned or simular.
12th-Feb-2011 09:29 pm (UTC) - Re: Alternative USB for mass storage (Pen drive/Card reader/HDD ect)
Anonymous
Sorry about the 2nd reply I can see your point about software that looks for seperate files via the GD drive though it would still save the need to reburn only changing the main binary boot file on usb device rather than making a whole new disc, keeping the already burned CD as a data disc if you like.

logic tells me that should work anyway

a USB mass storage rather than a PClink would be preferable for those that don't have a PC and Dreamcast to use next to each other, for example I don't have a PC close by my Dreamcast, infact my desktop is upstairs in my office (ok back bedroom/office I only have 2 bedrooms) :P the other Dreamcast is in my living room, it's easier to move one of my portable usb HDD drives instead of my desktop
12th-Feb-2011 11:12 pm (UTC) - Re: Alternative USB for mass storage (Pen drive/Card reader/HDD ect)
Anonymous
Zorlon yet again

sorry the last link given actually is much the same as yours but using a micro usb, for some reason I thought it was usb A

been looking at another alt that would also maybe work

called a VDrive 2
it converts from serial UART or SPI (jumper to change) as did the other chip I was talking about, but this one seems to be more portable

sample from the pdf for VDrive 2
The VDrive2 module provides an easy solution for adding a USB Flash disk interface to an existing product. Only four signal lines plus 5V supply and ground are required to be connected. Using the Vinculum VDAP firmware the VNC1L’s I/O interface can be selected between the serial UART or SPI using the on-board jumper pins. Not only is the VDrive2 ideal for evaluation and development of VNC1L designs, but also its neat enclosure and attractive quantity discount structure makes this module suitable for incorporation into finished product designs. The VDrive2 is ideal for commercial products such as domestic goods, set top box, etc., as well as industrial products such as data loggers, software upgradable products, etc.

Dreamcast side being
1 5v
2 SCK - don't actually know what that is
3 GND
4 RXD
5 TXD
6 RTS
7 CTS
8 GND
9 RES - don't actually know what that is
0 3.3v

VDrive 2 being
1 GND - connect to DC 3 or 8
2 RTS - connect to DC 6?
3 5v - connect to DC 1
4 RXD - connect to DC 4?
5 TXD - connect to DC 5?
6 CTS - connect to DC 7?
7 NC - No Connect
8 RI# Input Ring Indicator Control Input. Used to resume from suspend.

Not sure if 8 on the VDrive 2 can be used with the Dreamcast serial

Yes I am very rusty with my electronics thats why I am asking for help with the idea

I take it, it is RTS to RTS ect

at the moment I am kinda presuming that the software made to read from SD, can read from any storage device formatted correctly from the serial port with correct controllers ect to hook up such devices

more info for the VDrive 2 at
http://www.ftdichip.com/Products/Modules/ApplicationModules.htm
13th-Feb-2011 12:19 am (UTC) - Re: Alternative USB for mass storage (Pen drive/Card reader/HDD ect)
First of all, if you would please read my blog entry again. This is about connecting DC to a PC via a serial link, but without having either true serial port on the PC side or the necessary connector on DC side. Also, easier than most other projects out there and faster too (with some modifications to dc-load tools I get stable 1.5Mbps).

You want to add USB host to a Dreamcast. You picked a pretty nice one, it's designed to be easy to use so it handles all the USB-specific stuff internally when it comes to mass storage devices. You still need to write proper support for it on the DC side though. This solution will most likely be incompatbile with code alredy written (for SD cards). Are you going to rewrite all that by yourself, because it's not exactly certain that authors of all that software will see things your way.

So... why bother, exactly? Give me one good reason. PC uplink is possible (with some new code on DC side) with just a simple USB to serial converter and SD cards are easiest to interface with DC (and working). This is how I see it. You will get the same thing but with more expensive chip and much more complicated DC code, which might actually not fit in the limited RAM space to allow booting games. So this will have another downside - homebrew only. And it does not solve any of the fundamental problems with the SD approach, that is it's still slow (maybe even slower!) and can't replace GD-drive.

Well, if that's what you want to try I'm not going to stop you. Just saying it has little use other than being fun hobby project.
So, for the connections you'll need to make, you are about right. Not too sure how much power you can draw from that 5V line, that can be a problem if you need more than some 100mA. Also, you need to create a "null-modem" here so you connect RxD with TxD and vice versa. Same with RTS/CTS pair. Look up serial port connections and you will understand why. You won't be able to use RI signal without additional logic so no suspend. It might need to be tied permanently to ground, see the datasheet.

SCK is serial clock, for synchronous transmission. You won't need it. RES is reset line, best not to mess with it :)
13th-Feb-2011 05:21 pm (UTC) - Re: Alternative USB for mass storage (Pen drive/Card reader/HDD ect)
Anonymous
1 reason would be, PC not in accessable location in relation to dreamcast other reasons OS compat, though I admit a bootable linux (or linux based OS) CD/DVD would possibly help

Why stop at just one method when others could be made, though if speed is even more an issue/DC side code too big, it would be pointless, apart from the convenience for developers on actual hardware, though the emulation of the Dreamcast is at a reasonable point now for some testing, plus has a nice debug feature

Unfortionatly I am not a coder, last time I done any sort of programming was back on the olde ZX/Acorn using basic :D

I may see if anyone else would like to look at this, the info you have given though is great and has saved me rushing out on something that I would probobly just end up destroying anyway.

What is the actual speed of the Dreamcasts serial port out of interest?

Wish I could get in touch with jj1odm, this is just one thing, that has yet to be looked at, though I guess cost could very well be one part of the issue though it's not overly expensive but it's not the cheapest either no (£17.50 for that, though it does come in it's own shell, made for easy internal install even external would look ok).

It was kinda wishfully thinking, it seems that the USB drive idea would be a nice easy fast way of uploading data including iso's especially with the last get-up I spotted with it having speciallised chips for usb storage, to help make it simple to make like your own.

Serial port
LAN
SD
USB-B PC link
Original Coders Cable

G2 Bus mods (on Dreamcasts modem port)
LAN (homebrew version)
USB-B PC link
BBA (homebrew version)

Anyway thank you for your help
14th-Feb-2011 12:33 pm (UTC) - Re: Alternative USB for mass storage (Pen drive/Card reader/HDD ect)
You can get about 150kB/s from the serial, and possibly 300 with some rather dangerous modifications - all RC protection elements must be removed and that opens a direct line to SH4 CPU. You touch that wrong way and it's bye-bye motherboard (unless you fancy BGA replacement).

Compression might help but that has to be supported on both sides, add latency, and depends on data. Chances are it's not going to help at all. Not to mention it eats up SH4 time that should be used to run the game/program rather than looking at serial data.

GD-ROM can do about 600-1200kB/s. So you see, it's much slower... SD cards use SPI rather than TTL-RS232, with some decent clock you can get more than 150kB/s that way, but still way slower than GD. True SD speed it only avaiable through it's native 4-bit protocol. That USB chip does have SPI as well but I'm not sure the speed and latency would be good enough - something to test I suppose.

Anyway, as I said I'm more interested in replacing the GD drive. I think it's better solution.
14th-Feb-2011 03:22 pm (UTC) - Re: Alternative USB for mass storage (Pen drive/Card reader/HDD ect)
Anonymous
A relpacement for the GD drive would be great, if possible...

I did give jj1odm a quick email, though I don't realy expect a reply about that.

The GD-Rom running CD's also seems to be slower at getting the data than an actual GD-Rom disc, but this is expected anyway from R media, compared to original media

I will be keeping an eye out on development and wish you all the luck in your project
7th-Dec-2011 03:20 am (UTC) - USB to serial converter with low-voltate
Anonymous
I'll buy that FTDI serves:http://img2.mlstatic.com/s_MLB_v_O_f_207339182_7567.jpg
This page was loaded Oct 26th 2014, 1:47 am GMT.