How do I use serialpl2303.class with MorphOS SDK?
  • Caterpillar
    Caterpillar
    KuyaMarc
    Posts: 32 from 2014/12/3
    Hello MorphZone! As an aspiring MorphOS developer, my first order of business is to port my already successful embedded speech synthesizer projects into MorphOS. I just need to know how to use serialpl2303.class in C to send data at 9600 bps. I have generic PL2303 USB-to-Serial cables that I can use with my open-hardware projects. Target goal is to make shell commands that may or may not accept any arguments.

    If someone has a sample source code that sends "Hello World" at 9600 bps using serialpl2303.class, that would be very helpful, as I can build from there. Thanks in advance!

    Marcos "Kuya Marc" Miranda
    I AM NO LONGER A MORPHOS USER!
    I AM NO LONGER SUPPORTING MORPHOS!
    PLEASE DELETE ALL MY POSTS! PLEASE DELETE MY ACCOUNT!
  • »03.12.14 - 03:09
    Profile
  • MorphOS Developer
    zukow
    Posts: 642 from 2005/2/9
    From: Poland
    Hello,

    serialpl2303.class creates serialpl2303.device with serial.device compatible api

    check this for reference:
    http://amigadev.elowar.com/read/ADCD_2.1/Devices_Manual_guide/node009A.html
  • »03.12.14 - 07:54
    Profile Visit Website
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Jeckel
    Posts: 133 from 2007/3/11
    FYI:

    Regarding the last tests I did, this device seems to be buggy (on both MorphOS & AmigaOS 3.x Poseidon USB stack).

    It can receive but do not send anything.

    Then I switched to a cp210x device (using the serialcp21x0 class) and it works perfectly (also, on both MorphOS & AmigaOS 3.x).
  • »03.12.14 - 10:15
    Profile
  • Caterpillar
    Caterpillar
    KuyaMarc
    Posts: 32 from 2014/12/3
    Quote:

    Jeckel wrote:
    FYI:

    Regarding the last tests I did, this device seems to be buggy (on both MorphOS & AmigaOS 3.x Poseidon USB stack).

    It can receive but do not send anything.

    Then I switched to a cp210x device (using the serialcp21x0 class) and it works perfectly (also, on both MorphOS & AmigaOS 3.x).


    Good to know! My USB-to-Serial cable is PL2303, where the circuit in my Icom PCR1500 uses the cp210x device. So, pl2303 is still a no-go on the tx?
    I AM NO LONGER A MORPHOS USER!
    I AM NO LONGER SUPPORTING MORPHOS!
    PLEASE DELETE ALL MY POSTS! PLEASE DELETE MY ACCOUNT!
  • »03.12.14 - 13:53
    Profile
  • MorphOS Developer
    zukow
    Posts: 642 from 2005/2/9
    From: Poland
    Serial PL2303 converters should be working without problems in next Morphos release.
  • »11.12.14 - 17:24
    Profile Visit Website