Shop OBEX P1 Docs P2 Docs Learn Events
Linux utilities and the stamp --- help! — Parallax Forums

Linux utilities and the stamp --- help!

ArchiverArchiver Posts: 46,084
edited 2003-08-22 07:19 in General Discussion
I downloaded the sourcecode for the linux stamp utils. I ran make
and make install. It compiled fine.

Tokenizing works

but when i run the program i get the following:

[noparse][[/noparse]root@l... bstamp]# ./bstamp_run stepper.tok
Error: Could not open /dev/bstamp for reading/writing!

Any ideas how to open the /dev/bstamp device?

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-08-19 21:45
    Do you have permission to write to the device?

    > I downloaded the sourcecode for the linux stamp utils. I ran make
    > and make install. It compiled fine.
    >
    > Tokenizing works
    >
    > but when i run the program i get the following:
    >
    > [noparse][[/noparse]root@l... bstamp]# ./bstamp_run stepper.tok
    > Error: Could not open /dev/bstamp for reading/writing!
    >
    > Any ideas how to open the /dev/bstamp device?
  • ArchiverArchiver Posts: 46,084
    edited 2003-08-20 19:21
    I did this as root. So I should have the rights.


    --- In basicstamps@yahoogroups.com, Bill Boyer <daweasel@s...> wrote:
    > Do you have permission to write to the device?
    >
    > > I downloaded the sourcecode for the linux stamp utils. I ran
    make
    > > and make install. It compiled fine.
    > >
    > > Tokenizing works
    > >
    > > but when i run the program i get the following:
    > >
    > > [noparse][[/noparse]root@l... bstamp]# ./bstamp_run stepper.tok
    > > Error: Could not open /dev/bstamp for reading/writing!
    > >
    > > Any ideas how to open the /dev/bstamp device?
  • ArchiverArchiver Posts: 46,084
    edited 2003-08-20 20:18
    I had a similar problem with a Palm program and I had to go in and
    change the permissions on the serial port.

    > I did this as root. So I should have the rights.
    >

    > > Do you have permission to write to the device?
    > >
    > > > I downloaded the sourcecode for the linux stamp utils. I ran
    > make
    > > > and make install. It compiled fine.
    > > >
    > > > Tokenizing works
    > > >
    > > > but when i run the program i get the following:
    > > >
    > > > [noparse][[/noparse]root@l... bstamp]# ./bstamp_run stepper.tok
    > > > Error: Could not open /dev/bstamp for reading/writing!
    > > >
    > > > Any ideas how to open the /dev/bstamp device?
  • ArchiverArchiver Posts: 46,084
    edited 2003-08-21 02:26
    Look through some of my early posts about running a different Linux
    utility. I never tried to get the one you are using to work. I had
    good luck with the other one off the parallax site.

    Regarding the program you are using, it sounds to me like /dev/bstamp
    never got created on your machine. Check to see if it is there. If
    not, look at the documation for your program about how to create it. If
    the documentation doesn't help you, I would then try making a symbolic
    link to your serial port device.

    nestlerv wrote:
    > I did this as root. So I should have the rights.
    >
    >
    > --- In basicstamps@yahoogroups.com, Bill Boyer <daweasel@s...> wrote:
    >
    >>Do you have permission to write to the device?
    >>
    >>
    >>>I downloaded the sourcecode for the linux stamp utils. I ran
    >>
    > make
    >
    >>>and make install. It compiled fine.
    >>>
    >>>Tokenizing works
    >>>
    >>>but when i run the program i get the following:
    >>>
    >>>[noparse][[/noparse]root@l... bstamp]# ./bstamp_run stepper.tok
    >>>Error: Could not open /dev/bstamp for reading/writing!
    >>>
    >>>Any ideas how to open the /dev/bstamp device?
    >>
    >
    >
    > 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.
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2003-08-22 07:19
    Thanks, the link to the serial port did it.

    --- In basicstamps@yahoogroups.com, Bob Reite <bobr@t...> wrote:
    > Look through some of my early posts about running a different Linux
    > utility. I never tried to get the one you are using to work. I
    had
    > good luck with the other one off the parallax site.
    >
    > Regarding the program you are using, it sounds to me
    like /dev/bstamp
    > never got created on your machine. Check to see if it is there.
    If
    > not, look at the documation for your program about how to create
    it. If
    > the documentation doesn't help you, I would then try making a
    symbolic
    > link to your serial port device.
    >
    > nestlerv wrote:
    > > I did this as root. So I should have the rights.
    > >
    > >
    > > --- In basicstamps@yahoogroups.com, Bill Boyer <daweasel@s...>
    wrote:
    > >
    > >>Do you have permission to write to the device?
    > >>
    > >>
    > >>>I downloaded the sourcecode for the linux stamp utils. I ran
    > >>
    > > make
    > >
    > >>>and make install. It compiled fine.
    > >>>
    > >>>Tokenizing works
    > >>>
    > >>>but when i run the program i get the following:
    > >>>
    > >>>[noparse][[/noparse]root@l... bstamp]# ./bstamp_run stepper.tok
    > >>>Error: Could not open /dev/bstamp for reading/writing!
    > >>>
    > >>>Any ideas how to open the /dev/bstamp device?
    > >>
    > >
    > >
    > > 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.
    > >
    > >
    > > Your use of Yahoo! Groups is subject to
    http://docs.yahoo.com/info/terms/
    > >
    > >
Sign In or Register to comment.