Serial.device selection under amigaos

Feature requests for future versions of Hollywood can be voiced here
Post Reply
plouf
Posts: 71
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Serial.device selection under amigaos

Post by plouf » Sun Aug 18, 2019 10:39 pm

Recently i start investigating Serial under amigaOS

i found really "limiting" the hardcoded selection of "serial.device" since under morphos for example there is never serial.device but usb>serial devices where it is needed to select another device e.g serialpl2303.device

therefore selection under amigaos is needed :)

SamuraiCrow
Posts: 240
Joined: Fri May 15, 2015 5:15 pm
Location: Ft. Collins, Colorado USA

Re: Serial.device selection under amigaos

Post by SamuraiCrow » Mon Aug 19, 2019 3:08 am

What's wrong with a preprocessor macro for the different OS's serial devices?

plouf
Posts: 71
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: Serial.device selection under amigaos

Post by plouf » Mon Aug 19, 2019 7:26 am

sorry, but how can this help ?

User avatar
jPV
Posts: 279
Joined: Sat Mar 26, 2016 10:44 am
Location: RNO
Contact:

Re: Serial.device selection under amigaos

Post by jPV » Mon Aug 19, 2019 8:48 am

Oh yeah, I haven't checked serial stuff in Hollywood yet, but if you really can't define the device driver to be used, it's quite limiting in many aspects.

Not only in MorphOS, but on real Amigas you also might want to use USB serial adapters (I have Spider USB on my main classic Amiga).

And not to talk that many use serial.device replacements on real Amigas. For example, in modem based BBS/Internet times people commonly used 8n1.device and other newer devices that were much quicker than the original Commodore's serial.device. I can't see why they wouldn't be using them still.

And then there are serial port hardware expansions. A1200 had many clockport adapters, bigbox Amigas have MultiFaceCards etc. And in my case, my main Amiga's internal serial port is broken, so I just can't use serial.device with it. I've been using MultiFaceCard III instead.. that works fine with communication programs and with games where you can select the device (like Napalm etc).

And preprocessor for this wouldn't be enough alone, there should be a way to make it user selectable. So, just add that option to OpenSerialPort?

plouf
Posts: 71
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: Serial.device selection under amigaos

Post by plouf » Mon Aug 19, 2019 9:58 am

as a temporary solution i found that replacing serial.device in morphos with a 68k one like 8n1.device_000
(thats renaming serial.device to mos_serial.device and 8n1.device_000 to serial.device)

step 1 renaming serial.device to mos_serial.device and 8n1.device_000 to serial.device (in sys:dev)
step 2 download setpat20 from aminet and patch "serial patch serialpl2303.device"
works with temr4.8 but with SerialThing i can incoming data but fails to send out (maybe its a bug in serialthing thought)

User avatar
airsoftsoftwair
Posts: 3185
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Serial.device selection under amigaos

Post by airsoftsoftwair » Mon Aug 19, 2019 8:54 pm

Sure, it's possible to extend the Amiga API to allow a device name to be specified. I have no experience with the serial device on Amiga so I was just of the opinion that serial.device is all there is. But since that obviously isn't the case, I can add support for manually specifying the device to use. I guess they're all compatible with the serial.device API then.

plouf
Posts: 71
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: Serial.device selection under amigaos

Post by plouf » Mon Aug 19, 2019 9:22 pm

first thanx

i dont have API knowledge of devices but considering my test's
a) term4.8 a 20+ year old program that still using new "devices" under morphos
b) patchserial a 26+ year old patch that succefully patch moprhos serial with success

i believe they are the same :)

User avatar
airsoftsoftwair
Posts: 3185
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Serial.device selection under amigaos

Post by airsoftsoftwair » Wed Aug 21, 2019 10:15 pm

plouf wrote:
Mon Aug 19, 2019 9:22 pm
i believe they are the same :)
I think so too. Wouldn't make much sense otherwise...

Post Reply