Shop OBEX P1 Docs P2 Docs Learn Events
Propeller Serial Tool - DONE for PC MAC & LINUX - using Realbasic! — Parallax Forums

Propeller Serial Tool - DONE for PC MAC & LINUX - using Realbasic!

DavidMDavidM Posts: 630
edited 2011-08-26 16:04 in Propeller 1
Hi

I have been reading some threads here regarding writing a serial tool for prop, and I decided to make one myself.

This took me a few hours, ( I did have some code bits elsewhere that got me started)

Attached are 3 versions of the same app for PC, MAC(intel) and LINUX.

I wrote this on a MAC, I have tested the MAC version, but not the others, so I would like anyone with a PC or LINUX machine to try out.

Just so you know, when I wrote this I did NOT have MAC "HAT" ON, or a PC or LINUX "HAT" either. Thats been the main point of what I have posted in various other replies.

To make the PC & LINUX BUILD's I did nothing extra, in realbasic you just set the build options of all the platforms you want to build for and PRESS ONE BUTTON, and a folder with all the builds will be created.

Please let me know if these version work for you.

I am willing to post the full source project if anyone asks

This is a very basic serial port terminal GUI with nothing fancy, the idea was to code the very least to get it to work. from here we can modify it to be as sophisticated as you wish.

So far the BUAD RATE is set ( hard coded) at 57600, 8,N,1 so make sure you "CONNECT" with those settings.

Instructions to operate.

1) Open /run the application
2) click "scan ports" button
3) choose a port form the popup menu
4) click "CONNECT"
5) click "START" this starts the READING of the serial port and is written to the large text area.
6) type any command or characters into the first edit box ( left side of SEND button)
7) Press the "SEND" button ( your message will be sent to the serial device and the message text will clear)
8) if your command get a response from your prop serial device it should appear in the large text area.
9) The CLEAR Button clears the received text area, but does not stop the port.

As I said I have written the absolute bare minimum as a starting point.

NOTE:
The "SerialTool" is the Linux Version
"SerialTool.app" is the MAC(intel) version,
and the "SerialTool.exe" is of course the windows version.

Oh and one more thing, there is nothing "Propeller like" for this app, yet!


Regards

Dave M

Comments

  • Cluso99Cluso99 Posts: 18,069
    edited 2011-08-26 13:42
    DavidM: Since noone has replied yet... It's UPENE right now and activity is often quiet on the forums during this.

    I will give this a try when I get a chance (Windoze XP) - just busy right now. A cross-platform serial tool will be a great addition.
  • MazziniMazzini Posts: 58
    edited 2011-08-26 14:52
    Hello ,

    Good project , I left windows few month ago...I use it just for Propeller

    Windows XP SP3
    SerialTool can rx string from propeller serial demo but I cant send any char to board...C3 doesn't answer
    C3 is configured like 57600 8,n,1
    Pst works.

    On linux my test is in working progress :)
  • DavidMDavidM Posts: 630
    edited 2011-08-26 15:29
    Mazzini wrote: »
    Windows XP SP3
    SerialTool can rx string from propeller serial demo but I cant send any char to board...C3 doesn't answer
    C3 is configured like 57600 8,n,1

    Hi Mazzini,

    If its reciving then the settings are correct,

    Have a look at your "COMMAND" strings/characters that is programmed into your propeller code.

    Please show an example of what you have in their..
    Does your app require a delimiter for the end of each command?

    thanks

    dave M
  • MazziniMazzini Posts: 58
    edited 2011-08-26 15:55
    I use the the demo of Parallax " Parallax serial terminal demo "
    This is the code
    http://pastebin.com/YXwu0i76
    look at "pst.Str(String("Enter a decimal value: ")) <
    HERE "

    On linux
    My FTDI driver is on ttyUSB0. Your Scan port doesn't work so I cant set the right tty
    BST terminal works.
    USB Serial support registered for FTDI USB Serial Device
    dmesg | grep -i ftdi
    ftdi_sio 2-2:1.0: FTDI USB Serial Device converter detected
    usb 2-2: FTDI USB Serial Device converter now attached to ttyUSB0
    usbcore: registered new interface driver ftdi_sio
    ftdi_sio: v1.6.0:USB FTDI Serial Converters Driver
    

    30ngr69.png
  • DavidMDavidM Posts: 630
    edited 2011-08-26 16:04
    HI Mazzini,


    give me a little time I will try to have a look today, I do want to get the BASIC's right first before ai ad any fancy features.

    I do have a PC with XP on it, I will test out this app on that if I get a chance.

    thanks

    Dave M
Sign In or Register to comment.