Shop OBEX P1 Docs P2 Docs Learn Events
Serial Port Communication with Board of Education — Parallax Forums

Serial Port Communication with Board of Education

WaldoDTDWaldoDTD Posts: 142
edited 2005-07-10 12:28 in General Discussion
Hello,
I unfortunately did not buy the starter kit and just now bought a board of education after messing around with 3rd party carrier boards, is it possible to set something up with the hyperterminal like it is with the javelin carrier board using the board of education rev.C which doesn't have the convientent COM port?

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-06-22 00:53
    Hello,

    ·· Not sure I know what you mean, but if you need communication with the Stamp, just use the programming port once you're done programming.· You can SEROUT to port 16.



    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-06-22 14:58
    Hello,

    ·· Minor edit...I thought you were using a Javelin Demo Board with a Stamp, and now wanted to use a BOE.· I now see you most likely have a Javelin, but no demo board, and want communication on the BOE.· The Javelin can use the PRINTLN command to print to the built-in temrinal window.· Not sure what you were looking to do, but one other alternative is the RS-232 DCE AppMod we have.· It will plug right into the BOE and provide you with the same type of extra COM port the Javelin Demo Board provides.· Sorry I misread your original post.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • WaldoDTDWaldoDTD Posts: 142
    edited 2005-06-23 18:56
    The main thing I want to do is to key in a command signal in the hyperterminal on my comp and then send it to the stamp. The stamp then gets the signal and opens a circut. Also, to make the javelin generate voltage I use the DAC object right? Also is there a javelin equivalent to the BOE bot? Thanks!- Hacker
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-06-24 01:12
    Hello,

    ·· I'm no JAVA expert, but I believe there is a function to read input through the programming port on the Javelin.· From there you can do whatever you want, including change the state of an I/O pin.· As for the DAC, yes, if you want to output an analog variable voltage, you would need one.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • WaldoDTDWaldoDTD Posts: 142
    edited 2005-07-04 04:03
    Yes i know about the terminal class thing in the terminal test sample program I am working on a computer based program that communicates through the hyperterminal to send control signals to the stamp. Is there anyway to get the IDE to interface with the program in order to use the terminal to communicate with the stamp that would be fast and easy or is it possible to send back the BOE and ask instead of a refund for a javelin demo board to be sent (i understand there will be a restock fee). Also, if i use the circut in the writePin example could I use this to supply power to a DC motor? I have already tested that Vin has enough voltage to effectively activate the motor but I am still trying to understand how the wiring schematic is setup and what major role the stamp plays in the circut. Thanks!-Hacker
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2005-07-04 15:04
    If you work on a PC program yourself, assuming you have the sources,

    why not communicate directly with the COM port, instead of using

    hyperterminal to do the communicating?

    You find C sources how to use the com port here:

    http://f3.grp.yahoofs.com/v1/8E7JQlNFgyXQkPy61DSjwQFXudPNw9UvKkMSx-ft-AgB80pm-cx6OcOWdpLyyCDsmR90HjokGHDzpGZ7fbm1Ow/JideTerm/JideTerm_1_2.zip

    regards peter
  • WaldoDTDWaldoDTD Posts: 142
    edited 2005-07-04 18:48
    dead link, also the pc program is also being written in java
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2005-07-04 21:56
    Here is the link for the folder:
    http://groups.yahoo.com/group/JavelinCode/files/JideTerm/

    The important piece is in de main.c file and consists
    of a statemachine loop (switch statement), that is very easy portable to java.

    regards peter
    ·
  • WaldoDTDWaldoDTD Posts: 142
    edited 2005-07-06 03:58
    Thank you, it is designed for the jide port so would this mean i must purchase the RS 232 kit for the appmod slot in order for it to work or can i just go in and use the programming port on the boe? Thanks-Hacker
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2005-07-06 05:16
    The programming port of the BOE is the JIDE port when

    using a Javelin on the BOE, so you don't need a rs232 kit

    for that port.

    regards peter
  • WaldoDTDWaldoDTD Posts: 142
    edited 2005-07-10 06:32
    hey,
    Quick question how can i port the .pas file that needs replaced also i was looking through one of the header files and i noticed the windows header file is included, has this already been ported to java in the sdk? Also, what is #pragma and finally i know that pointers have something to do with memmory allocation, since java does this automatically is it safe to delete all pointers when porting? Thanks!-hacker
  • WaldoDTDWaldoDTD Posts: 142
    edited 2005-07-10 06:38
    Also, i have noticed when i try to send the control signals over a messages terminal in the IDE the stamp is unresponsive and there is no movements in the servos, i need to send these signals to the the stamp and get an output in the stamp, is there some way to configure the javelin so i don't have to reprogram it everytime i want to run my program on it or does it automatically clear it's memory?Thanks-Hacker
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2005-07-10 12:14
    You need to use your Java sdk function to open a com port,

    and then use your Java sdk receive and transmit methods.

    In the attachement I have isolated the protocol using the

    Javelin Uart to open a comport (as an example).

    No pointers are used.

    regards peter
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2005-07-10 12:28
    Not sure what you mean by unresponsive.

    When you have a program running in the Javelin without it being connected to the PC,

    then when you connect the programming port the PC comport and run the Javelin IDE program,

    nothing is shown in the Javelin IDE messages window.

    The Javelin IDE message window only shows output when you download

    a program to the Javelin and keep the Javelin connected and the Javelin IDE program running.



    My JideTerm program (command line application) and JideWinTerm program (windows application)

    allow you to connect at any time to the Javelin, and they show whatever is outputted from the

    Javelin. The test program JideTerm_test receives (text)data from the PC via the Javelin programming

    port and then outputs that received data back to the PC.

    This behaviour you need to·get running with your application. Then you know that commands

    are received properly and can you parse the received commands for specific data.

    http://groups.yahoo.com/group/JavelinCode/files/JideTerm/



    regards peter
Sign In or Register to comment.