Serial.device selection under amigaos

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

Serial.device selection under amigaos

Post by plouf »

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 :)
Christos
SamuraiCrow
Posts: 475
Joined: Fri May 15, 2015 5:15 pm
Location: Waterville, Minnesota USA

Re: Serial.device selection under amigaos

Post by SamuraiCrow »

What's wrong with a preprocessor macro for the different OS's serial devices?
I'm on registered MorphOS using FlowStudio.
plouf
Posts: 467
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: Serial.device selection under amigaos

Post by plouf »

sorry, but how can this help ?
Christos
User avatar
jPV
Posts: 603
Joined: Sat Mar 26, 2016 10:44 am
Location: RNO
Contact:

Re: Serial.device selection under amigaos

Post by jPV »

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: 467
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: Serial.device selection under amigaos

Post by plouf »

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)
Christos
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Serial.device selection under amigaos

Post by airsoftsoftwair »

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: 467
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: Serial.device selection under amigaos

Post by plouf »

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 :)
Christos
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Serial.device selection under amigaos

Post by airsoftsoftwair »

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...
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Serial.device selection under amigaos

Post by airsoftsoftwair »

Code: Select all

- New [Amiga]: OpenSerialPort() can also be passed a string in the format "<devicename>:<port>" now in
  case you want it to open an alternative serial device, e.g. "serialpl2303.device:0" will try to open
  serialpl2303.device port 0
Post Reply