Shop OBEX P1 Docs P2 Docs Learn Events
Serial Communication with PC — Parallax Forums

Serial Communication with PC

ChristjChristj Posts: 13
edited 2007-04-19 03:29 in BASIC Stamp
Btw, how to make the BS2 send the data logged (temperature values) using its serial port to PC?

Please advise. Thanks in advanced.

--chris

Comments

  • FranklinFranklin Posts: 4,747
    edited 2007-04-19 01:29
    More info please. You use serout or debug to communicate to the PC. What is it exactly that you are trying to accomplish?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • ChristjChristj Posts: 13
    edited 2007-04-19 03:12
    BS2 sense the temperature and log the value in its eeprom. I want to send these value to PC through BS2 serial port, so the program on PC, can record and follow up these data. Can I do it? or have to use one of BS2 port as a "serial port", for using with SEROUT command?

    Thanks.
  • Mike GreenMike Green Posts: 23,101
    edited 2007-04-19 03:29
    You can use the DEBUG statement or SEROUT statement with pin #16 to send data over the programming port. There are some restrictions: 1) The Baud is limited to 9600; 2) Anything sent from the PC is echoed back to the PC; 3) When the serial port (from the PC) is opened, the DTR line is set true. This resets the Stamp. It's part of the programming process.

    Have a look at Stamp Plot Pro (www.selmaware.com) as an example of a program that can be used on the PC side to log information from the Stamp (and graph and analyze it if you wish).
Sign In or Register to comment.