Running SD2IEC on a PC or RPi

Modding and Technical Issues

Moderator: Moderators

Post Reply
User avatar
akator
Vic 20 Afficionado
Posts: 328
Joined: Wed Apr 14, 2010 6:01 pm

Running SD2IEC on a PC or RPi

Post by akator »

The idea:
  • an IEC to USB cable connects the VIC to a PC or RPi
  • the PC / RPi is running an emulated SD2IEC
  • the PC / RPi is running Samba
  • the user can transfer / organize files remotely over the network to the PC / RPi, updating the emulated SD2IEC content
Is something like this possible? I think it would be nice to be able to upload new software to the VIC so it's all sitting there and ready to play the next time the VIC is fired up.

Would there be a better way to do this?

My inspiration for this came from the various Atari computer options available. AspeQt and RespQt have been around for quite a while. Even better is the new FujiNet device that emulates a drive, printer, modem, and full network connection. FujiNet PC is currently being developed to bring the FujiNet capabilities to a computer or RPi.

I don't have the skills to do this, but I know enough that a starting point would be compiling the SD2IEC source on a PC.
User avatar
srowe
Vic 20 Scientist
Posts: 1340
Joined: Mon Jun 16, 2014 3:19 pm

Re: Running SD2IEC on a PC or RPi

Post by srowe »

IEC -> USB -> PC isn't likely to be functional. The SD2IEC code relies on having a direct interface to the IEC lines via GPIO pins and interrupts generated for events such as ATN being asserted.

It would be viable to use a microcontroller (like the Atmega the SD2IEC is based on) as a 'bridge' between a CBM and a PC, although the timing requirements of IEC + USB might still be tricky.
User avatar
beamrider
Vic 20 Scientist
Posts: 1452
Joined: Sun Oct 17, 2010 2:28 pm
Location: UK

Re: Running SD2IEC on a PC or RPi

Post by beamrider »

Couldn't you just use one of those SD cards with a Wifi interface?

https://thedroidguy.com/6-best-wifi-sd- ... 19-1096952

or even this

https://www.aliexpress.com/item/3281507 ... lsrc=aw.ds

Someone has already started investigating the SD adapter. Seems like an interesting project..

https://www.youtube.com/watch?v=c7UQaQpexzY

[edit]

This is another option and it's open source firmware..

https://www.fysetc.com/products/fysetc- ... 8391027887

https://www.aliexpress.com/item/4001095471107.html
User avatar
akator
Vic 20 Afficionado
Posts: 328
Joined: Wed Apr 14, 2010 6:01 pm

Re: Running SD2IEC on a PC or RPi

Post by akator »

Thanks for the links. I didn't think of trying those WiFi SD cards before.
User avatar
beamrider
Vic 20 Scientist
Posts: 1452
Joined: Sun Oct 17, 2010 2:28 pm
Location: UK

Re: Running SD2IEC on a PC or RPi

Post by beamrider »

I've ordered the FYTEC one from Ali-Express.
User avatar
mathom
Vic 20 Dabbler
Posts: 80
Joined: Wed Aug 07, 2019 11:37 am
Location: Centennial, Colorado
Occupation: Software Engineer

Re: Running SD2IEC on a PC or RPi

Post by mathom »

Do let us know how that FYTEC device works out. Looks very interesting!
...mathom...
User avatar
beamrider
Vic 20 Scientist
Posts: 1452
Joined: Sun Oct 17, 2010 2:28 pm
Location: UK

Re: Running SD2IEC on a PC or RPi

Post by beamrider »

mathom wrote: Tue Jul 13, 2021 8:57 pm Do let us know how that FYTEC device works out. Looks very interesting!
sure will
User avatar
grondinm
Vic 20 Amateur
Posts: 55
Joined: Thu Dec 10, 2020 11:54 am
Location: Canada

Re: Running SD2IEC on a PC or RPi

Post by grondinm »

Not sure if you have heard of this project

https://cbm-pi1541.firebaseapp.com/

I've got one and it's great. Only thing missing is the network file transfer(its been suggested and might be worked on i think) but that minor to me cause i just pop out the sdcard and copy things over then pop it back in... It's only got basic SD2IEC functions as it's more meant to emulate a disk drive but it works wonderful. The VIC knows no different.
User avatar
nbla000
Salmon Run
Posts: 2582
Joined: Thu Oct 13, 2005 8:58 am
Location: Italy

Re: Running SD2IEC on a PC or RPi

Post by nbla000 »

grondinm wrote: Wed Aug 04, 2021 8:53 am Not sure if you have heard of this project

https://cbm-pi1541.firebaseapp.com/

I've got one and it's great. Only thing missing is the network file transfer(its been suggested and might be worked on i think) but that minor to me cause i just pop out the sdcard and copy things over then pop it back in... It's only got basic SD2IEC functions as it's more meant to emulate a disk drive but it works wonderful. The VIC knows no different.
I'm playing a bit with the pi1541 that is a full 1541 drive replacement that works with any kind of fastloader and yes a wifi support should be a very nice addon, anyway sd-wifi could be very useful for SD2IEC devices.
Mega-Cart: the cartridge you plug in once and for all.
User avatar
akator
Vic 20 Afficionado
Posts: 328
Joined: Wed Apr 14, 2010 6:01 pm

Re: Running SD2IEC on a PC or RPi

Post by akator »

beamrider wrote: Tue Jul 13, 2021 3:47 am I've ordered the FYTEC one from Ali-Express.
Any luck with this working in a SD2IEC?
User avatar
beamrider
Vic 20 Scientist
Posts: 1452
Joined: Sun Oct 17, 2010 2:28 pm
Location: UK

Re: Running SD2IEC on a PC or RPi

Post by beamrider »

It landed on the doormat this morning - will take a look sometime before/during the weekend and report back.
User avatar
beamrider
Vic 20 Scientist
Posts: 1452
Joined: Sun Oct 17, 2010 2:28 pm
Location: UK

Re: Running SD2IEC on a PC or RPi

Post by beamrider »

Couldn't get it to work.

I saw the IP address on the router but it didn't respond to anything either File Explorer or WinSCP. Also doesn't seem to work as a direct card reader either, it managed to lock up my computer putting the USB bus in a funny state so I had to physically power the machine off and on.

Oh and in the SD2IEC the power light doesn't even come on like in the PC.

And it has to be right next to the router to connect to WiFi.

Seems very flaky to say the least, not something I would recommend.
User avatar
akator
Vic 20 Afficionado
Posts: 328
Joined: Wed Apr 14, 2010 6:01 pm

Re: Running SD2IEC on a PC or RPi

Post by akator »

^ Thanks for checking this out.
Post Reply