Shop OBEX P1 Docs P2 Docs Learn Events
Unicode Question — Parallax Forums

Unicode Question

madjackmadjack Posts: 9
edited 2008-04-10 21:18 in Propeller 1
·
Am I correct in assuming that the “FullDuplexSerialPlus” object
expects to receive 16 bit characters, “Unicode” and will stumble if sent
8 bit characters old “ASCII”. I am using the rx, tx and getdec methods
·
I have a project that works great In HyperTerminal but has some problems connected to some old hardware that predates Unicode and only sends & receives 8 bit characters.
·
Has anyone dealt with this. I can eliminate the old hardware but would like to have the option of using it if modifications to the propeller object·are not a huge undertaking for a newbe to spin and assembly language.
·
I would rather not spend a lot of time beating a dead horse so to speek.
·
Anyone care to give me some advice?
Are there any good books?
·
Thank you in advance for any advice.

Comments

  • PerryPerry Posts: 253
    edited 2008-04-10 18:21
    The FullDuplexSerial is only 8bit characters, not unicode.

    getdec reads a string until it sees a CR, then attempts to convert into a integer

    Perry
  • madjackmadjack Posts: 9
    edited 2008-04-10 18:43
    Ok
    I made an assumption that it running in assembly would eliminate the need for a buffer as it could process the input faster than the 9600 baud I am sending to it.

    I must have to create a transmit sub that sends one character at a time to the propeller rather than sending strings.

    Dose this sound like a solution?

    Jack
  • PerryPerry Posts: 253
    edited 2008-04-10 18:56
    Perhaps you should actually look at the “FullDuplexSerialPlus” object much of it is in "spin".

    even the assembler part only has 16 character buffers.
    You might need to add some overhead so the propeller can tell you when it is ready to receive more input.

    Perry
  • madjackmadjack Posts: 9
    edited 2008-04-10 19:27
    The strings that I’m sending to the propeller are short, 10 to 12 characters max
    I shouldn’t need any back & forth communication for flow control. I may need to setup a small buffer or array at the propeller if my one character at a time sub fails me

    A lot of the “FullDuplex Serial” object is in spin.
    I guess I m guilty of wishful thinking.
    Nothing comes easy for me

    Thanks for the info

    Jack
  • madjackmadjack Posts: 9
    edited 2008-04-10 21:18
    Sending the characters one at a time was it
    I have successfully replaced an old Step motor
    Index card with the propeller on and old CNC bender

    I still have to make a PCB
    and fine tune it

    Thank you all for your input

    Jack
Sign In or Register to comment.