Shop OBEX P1 Docs P2 Docs Learn Events
Linux to BS2 serial communication — Parallax Forums

Linux to BS2 serial communication

ArchiverArchiver Posts: 46,084
edited 2004-07-01 12:14 in General Discussion
Ive been trying various ways in linux to send data to the basic stamp through teh serial
port. I keep running into dead ends. Has anyone done this before. I just want a small script
that will send a number to the basic stamp through the serial port. Does anyone have any
basic stamp code, along with like a perl script that they have made that i can look at? Also
are there any settings i should be tweaking in linux to make the serial port work right? Any
help would be appriciated. Ive been struggleing with this for a while now.

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2004-07-01 12:14
    I'm not sure if this will help or not, but try going to
    http://www.al-williams.com/gp3.htm and download the Linux library example
    from there. This is a board that allows you to control things from the
    serial port, so the function isn't that interesting to you. However, the
    core library uses a wrapper around the serial I/O code for portability and
    gp3linux.c has just the subroutines for Linux to open the port, send data,
    etc.

    Hope that helps.

    Regards,

    Al Williams
    AWC
    * Kits! http://www.awce.com/kits.htm




    Original Message
    From: cheezew1z [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=urtfyGMNCazVn0HJYrlydPy2U3yraZXs9C6Kgq_BJGzMPuhZsxtxi2hsAzgIREoX5xM3dGEC8qkva6Y]cheezew1z@y...[/url
    Sent: Wednesday, June 30, 2004 3:33 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Linux to BS2 serial communication


    Ive been trying various ways in linux to send data to the basic stamp
    through teh serial
    port. I keep running into dead ends. Has anyone done this before. I just
    want a small script
    that will send a number to the basic stamp through the serial port. Does
    anyone have any
    basic stamp code, along with like a perl script that they have made that i
    can look at? Also
    are there any settings i should be tweaking in linux to make the serial port
    work right? Any
    help would be appriciated. Ive been struggleing with this for a while now.




    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.

    Yahoo! Groups Links
Sign In or Register to comment.