Shop OBEX P1 Docs P2 Docs Learn Events
BS2PX and Linux — Parallax Forums

BS2PX and Linux

terry_bearterry_bear Posts: 84
edited 2008-02-06 01:28 in BASIC Stamp
Hello to all,

I have several BS2PXs that I wisht to program using Linux. Sourceforge provides several tools that work on other bstamps, but not the 2px... I think that I can hack the source code for loading the tokens, but I don't know if there are any differences other than the baud rate for the programming port. I know that there are some commands that are unique to the 2px, but I don't expect to use them.

Any help would be appreciated...

Terry

Comments

  • Adrian SchneiderAdrian Schneider Posts: 92
    edited 2008-02-04 10:24
    As far as I know, there is no 2px-capable tokenizer library·yet available.
    There is limited and experimental support for the 2px in
    http://forums.parallax.com/showthread.php?p=536320
    Limited means that it doesn't support the new commands of the 2px stamp.
    Experimental means that it is a hack and·not extensively used and tested.
    Regards
    Adrian
  • terry_bearterry_bear Posts: 84
    edited 2008-02-04 15:02
    Thanks for the "situation report". It would seem that the tokenizer shouldn't be time-consuming for Parallax to support in Linux, since it is already written for windoze (and has been for over a year, at least). I assumed (wrongly) that the tokenizer would work, if I could establish comm.

    I know that each Stamp acknowledges with a unique character, to a unique request, and that I will have some trouble there, unless someone from Parallax chooses to help out...

    Without the tokenizer, though, it would appear that I'll have to resign myself to using windoze...

    If I can resolve the handshaking issues, I can tokenize it in windoze and load it into the Stamp via Linux (C++, or bash, or perl, or something else!)

    Thanks for the prompt response

    Terry
  • terry_bearterry_bear Posts: 84
    edited 2008-02-04 15:15
    Adrian,

    I followed your link, and see that you have a "showtty" tool. Does that mean that you already know what the "interogate" and "ack" characters are for the 2px?

    Terry
  • terry_bearterry_bear Posts: 84
    edited 2008-02-04 15:22
    Adrian,

    SORRY! I just noticed the attachment in your post on the other thread, and see that you have already covered the same ground...

    I will play with that for awhile...

    Thanks again,

    Terry
  • icepuckicepuck Posts: 466
    edited 2008-02-05 03:36
    Would it be possible for parallax build a WINE friendly version of the editor? The idea being is you wouldn't have to cross complie/rewrite the code in order to support linux, nor having to expose any sensitive code to the public, because the WINE emulator would be handling the windows => linux api translation calls, just minor modifications that would make easier to install using WINE without crashing the installer.
    -dan

    Post Edited (icepuck) : 2/5/2008 3:51:16 AM GMT
  • terry_bearterry_bear Posts: 84
    edited 2008-02-05 16:22
    Dan,

    Actually, I have tried to use the Parallax program with Wine. The program appears to be running under Wine, but I cannot get Wine to recognize my serial port. I loaded a terminal program, and it acts as if the port parameters are waaaay out of whack (highly technical term). The terminal program provides results that lools as if the baud rate is way off. A web search for serial problems with Wine gets all sorts of conflicting "info". People can't seem to agree on whether Wine still looks for a wine.conf file, or not.

    Anyway, Parallax seems to communicate with Wine; now if I can get Wine to communicate with port...

    Even if I get all of this to work, the solution suffers from a basic issue; the chaining together of several applications causes reliability issues, just as they do in hardware. I used to have engineers that would string together several adapters (either too rushed or too lazy to get the correct one) and then wonder why everything was intermittant...

    Oh, well, I have more time than money to play with <grin>

    Terry
  • icepuckicepuck Posts: 466
    edited 2008-02-06 01:28
    unfortunately I haven't had much time to play with linux lately, the last time I messed with wine I couldn't get much to work, simple windows programs that don't use dll's such as notepad worked just fine. I just noticed that stampw.exe doesn't use dll's, which maybe explains why it ran under wine.
    -dan
Sign In or Register to comment.