I am not sure if I initialised the user port rs232 correctly, maybe one of you can get a good laugh and either tell me i am completely wrong or that the device in mame currently is simply not working.
I first tried to open the device in c128 mode - no success
I followed some code sample from a script to get a file with xmodem protocol per serial connection
c64 basic xmodem sample code
open 2,2,0,chr$(10)+chr$(9)
?break error
the same open method snippet does produce a little more in c64 mode: (now i try to send some output after openeing it without error message)
open 2,2,0,chr$(10)+chr$(9)
print#2,chr$(21):rem sending a nak first i thought could not be too wrong
print#2,"some text sample line1"
print#2,"some more text line2"
close2
sadly this produced only the following output
|code]
hexdump -C outfile.txt
00000000 f8 f8 f8 00 f8 00 f8 f8 00 f8 f8 00 f8 f8 f8 00 |................|
00000010 00 f8 f8 f8 f8 00 f8 00 f8 f8 00 00 f8 f8 f8 f8 |................|
00000020 f8 00 f8 f8 00 00 00 f8 00 00 f8 00 f8 f8 f8 00 |................|
00000030 00 f8 00 f8 00 f8 f8 00 f8 f8 00 f8 f8 f8 00 f8 |................|
00000040 00 f8 00 f8 00 f8 f8 00 f8 00 00 f8 f8 f8 f8 f8 |................|
00000050 00 f8 f8 00 00 00 f8 00 00 f8 00 f8 f8 f8 00 00 |................|
00000060 f8 00 |..|
[/code]
so my first guess was that 2400 baud setting was not a good starting point, but doing the same with 50 baud only changed the output to zero bytes in the output.
So either I am doing something completely wrong, or my brain is broken or the null modem on c128 simply is broken code right now?
will try this experiment on c64 device now.
update test reszlt file with c64p device
hexdump -C out64.txt
00000000 78 78 78 00 f8 80 78 f8 80 78 f8 80 78 78 78 80 |xxx...x..x..xxx.|
00000010 00 78 78 78 78 80 78 00 78 78 80 00 78 78 78 78 |.xxxx.x.xx..xxxx|
00000020 78 00 78 78 80 00 80 78 80 80 78 80 78 78 78 00 |x.xx...x..x.xxx.|
00000030 80 78 00 78 78 00 78 00 78 00 78 78 78 00 78 00 |.x.xx.x.x.xxx.x.|
00000040 78 80 78 80 80 78 78 78 78 78 80 78 f8 80 78 80 |x.x..xxxxx.x..x.|
00000050 78 80 78 78 78 78 80 80 78 f8 80 78 00 78 78 78 |x.xxxx..x..x.xxx|
00000060 78 80 78 78 78 78 78 78 78 80 f8 78 78 00 |x.xxxxxxx..xx.|
I am diving now into the rs232 Mame source in hope of getting an idea how to get better results, maybe one of you got an idea?
maybe I got a correct bitstream and i only have to translate it back into single bytes of petsci?