Shop OBEX P1 Docs P2 Docs Learn Events
Getting error — Parallax Forums

Getting error

ArchiverArchiver Posts: 46,084
edited 2003-02-17 08:37 in General Discussion
I am using "stampbc v1.2.2, compiler using PARALLAX tokenizer library
1.16" on a Linux 2.4.18 i586 slackware box. /dev/ttyS0 is set to:
speed 9600 baud; line = 0;
min = 1; time =1;
-brkint -icrnl -imaxbel
-opost
-isig -icannon -echo

My basic stamp 2 SX is plugged into /dev/ttyS0 on a lynxmotion next
step carrier board, and there is power to it, it is running a
previously loaded program. When I "basicbc -j" though, is takes a
second or so and returns "** no stamp or unable to identify", and the
stamp resets (I can tell because of the LCD screen hooked up to it).

Thank you for any help, I am at my wit's end.

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-02-17 08:37
    hi
    I assume your board and serial cable use to work well under windows
    or so and are thus considered ok so far.

    However, you say stampbc returns after a second, so I think 'time'
    should be 0 (your settings show time = 1, which is probably to short
    for the stamp).

    try the following serial port setup:
    stty -F /dev/ttyS0 9600 raw -echo -hupcl

    or use the 'showtty' utility (just a more convenient 'stty') and
    enter:
    9600 raw -echo -hupcl

    'raw' allone should set the time back to 0, but just use the full
    setup parameters.

    hope this helps
    Adrian
Sign In or Register to comment.