Problem in finding correct serial port name for a communication program
  • Caterpillar
    Caterpillar
    Posts: 21 from 2020/8/2
    Good morning all,
    I wrote a communication program who exchange files between computers through null-modem cable, named "Serial Door", who has been released for various platforms and I want to release it for MorphOS also. Program acts by taking in input the name of the serial port who must be used (e.g. "serial.device" for OS4, "COM1" for Windows). Every port name I used during my tests doesn't work. These are the port names who I entered, without any success (the first three with ".device" suffix and without):

    - serialcp210x
    - serialpl2303
    - serialch34x
    - serial.device

    I dont't know if I simply mistaken the port name, or I missed some configuration who is needed before.
    Testing has been made under MorphOS 3.20 not registered under QEMU.

    Any suggestion?
  • »08.12.25 - 09:18
    Profile
  • Moderator
    Kronos
    Posts: 2512 from 2003/2/24
    Since you're running emulated, does that include any supported serial HW?

    There is no onboard serial for anything Mac, so no "serial.device" and unless QEMU passes through USB devices the other also won't work.
  • »08.12.25 - 09:27
    Profile
  • MorphOS Developer
    zukow
    Posts: 650 from 2005/2/9
    From: Poland
    Poseidon USB stack genenerates *.device in memory, so you can only open it when you have connected usb2com converter. Api is the same as amiga serial.device if serial.device works on amiga, the same code (with different name provided) will work on morphos.
  • »08.12.25 - 12:30
    Profile Visit Website
  • Caterpillar
    Caterpillar
    Posts: 21 from 2020/8/2
    I made other tests with the following syntax:

    Code:
    -chardev serial,path=COM3,id=acm -usb -device usb-serial,chardev=acm


    AND

    Code:
    -chardev serial,path=COM3,id=serial -usb -device usb-serial,chardev=serial


    Things went slightly better because in both cases a green ("Operative") ‘QEMU USB SERIAL’ device, class ‘Vendor’, is appeared in Poseidon. However, when trying to associate a class with it, none of the available ones seems to work (Serial ch34x, Serialcp210x, and Serialpl2303 were tried), because a communication cannot be established; I could not find any available serial ports.

    I think I'll publish program anyway, because it could work in non-emulated environments if the user has adapters or cards with serial ports that work under MorphOS, or computers other than Macs that have serial onboard, and also under emulated environments if, in the future, appropriate drivers will be implemented.

    Thank you for your replies.
  • »08.12.25 - 19:25
    Profile