ShendoXT / memcarduino

Arduino PlayStation 1 Memory Card reader
GNU General Public License v3.0
258 stars 39 forks source link

Not getting serial output on Uno or Nano #36

Open Deadking2010 opened 8 months ago

Deadking2010 commented 8 months ago

Hoping someone here can help me get this running.

I have tried on both a Uno and Nano clone, uploading the sketch seems fine but I do not get any responses if using the serial monitor other than a bunch of question marks. I should be able to get some info from the serial monitor, Right??

At this point, I can't even tell if I am accessing the memory card or not. Maybe someone can point me in the right direction to start.

I have also tried the test branch with the same results.

TheBlueTroll commented 8 months ago

https://github.com/ShendoXT/memcarduino (Reading saves from a PC)

To read saves from the Memory Card to your PC use MemcardRex if you are using Windows. Make sure to use the latest version because MemCARDuino now runs at 115200bps while older releases used 38400bps. For other operating systems you can use a provided Python script.

In short, use MemcardRex to interact with the memcarduino, the serial monitor wont really show anything.

Deadking2010 commented 8 months ago

https://github.com/ShendoXT/memcarduino (Reading saves from a PC)

To read saves from the Memory Card to your PC use MemcardRex if you are using Windows. Make sure to use the latest version because MemCARDuino now runs at 115200bps while older releases used 38400bps. For other operating systems you can use a provided Python script.

In short, use MemcardRex to interact with the memcarduino, the serial monitor wont really show anything.

Okay, thanks for the input. I will keep trying.

Something else I should have asked is if anyone has had luck using Memcardrex under Wine in Linux. I have set the COM ports to be seen by it but I am not sure if I should be testing with a Windows-based PC instead. I might try the Python script as well.

TheBlueTroll commented 8 months ago

I did try using wine to run memcardrex under Linux about 10 years ago(wow time flies) and at the time memcardrex ran, but i couldn't set the serial ports correctly. i just tried with wine 9.0 and the latest Memcardrex. attempting to read from the memcarduino causes memcardrex to crash, so i cannot recommend trying to read the card with memcardrex, but the save editing still works perfect. Edit: see later comment

i would recommend trying via the python script to get the memory card image, then rex to edit it, then the script to write it back.

the python script is a command line only solution to read and write card images (not individual saves).

ShendoXT commented 7 months ago

Any luck @Deadking2010 in getting this to run?

As @TheBlueTroll already explained serial communication and it's commands are binary and that's why you aren't getting anything in the console. You need to interface it either via python script or MemcardRex.

Maybe I should add a simple test command like sending capital T to the console to get human readable output in the console. Just for cases like this one.

As for linux and wine it should all work, even the serial ports. WinForms are a little ugly under Wine but other than that should be all good. Make sure to add your user to dialout group for serial access.

TheBlueTroll commented 7 months ago

As for linux and wine it should all work, even the serial ports. WinForms are a little ugly under Wine but other than that should be all good. Make sure to add your user to dialout group for serial access.

you are correct, i am a idiot and tried to run memcardrex via WINE (which does crash on serial reads) but should have run it via mono. as its a mono program. and it works perfectly.

ShendoXT commented 7 months ago

Haha, I even wrote wine and thought mono :)

New 2.0 will feature dark mode. Now winforms are custom drawn which should move the ugly away. This is alpha build running on winlator which is using mono.

311538510-55c0d945-ca13-42e0-a302-83ea1c18f63f

Deadking2010 commented 7 months ago

Haha, I even wrote wine and thought mono :)

New 2.0 will feature dark mode. Now winforms are custom drawn which should move the ugly away. This is alpha build running on winlator which is using mono.

311538510-55c0d945-ca13-42e0-a302-83ea1c18f63f

I never did get it working and I kinda gave up on it for the time being as I had other projects clogging up my work space. I was working with an older laptop and could never get the drivers to install properly. I will see if I can make some headway on it this weekend as I would love to get mine up and running.