Serial Connection
Home ] Up ] Basic Concepts ] [ Serial Connection ] Plotting Basics ] Logging, Saving and Printing ] Interactive Control ] Macro Basics ] Macros - Default & Events ] Macro Math Discussion ] Defined Macro Buttons/Menus ] Drawing Basics ] Media and Paths ] Drawing Coordinate Modes ] Plot Objects ] Macro Editor ] Using Templates ] External Applications ] Historical/Logged Data ] Internet ] Binary and Special Data ]

 

StampPlot assumes that you will connecting on COM1 at 9600 baud (when using the Stamp's DEBUG command, 9600 is the baud rate used).  If COM1 will not be used, use the Configuration button on StampPlot to change the port configuration.
  1. If you will always be using the same COM port (or other port configurations), click Set as default to save this configuration.
  2. Micro echoes data informs StampPlot that data sent to the controller will be echoe'd back.  In this case data sent to the controller is suffixed with |Q| so returned data can be ignored. (The BS2 echo's data on the programming port)
  3. Queue size is the amount of data to be held awaiting processing.  Should the number of bytes (characters) exceed twice the queue size, StampPlot will disconnect.
  4. If DTR Enabled is selected, the BS2 will reset whenever connection is made on StampPlot.
  5. Use RTS/CTS to control flow may be used to signal the controller when StampPlot has at least 50 bytes (characters) in the queue.
  6. RTS always on allows a constant signal back to the controller to indicate StampPlot is connected or in special cases for power to the controller.
  7. Changes on this tab will take effect next time you connect.

Note:

Queue Size does not normally need to be changed unless macro routines are extremely long or you are sending a large amount of data for delayed processing (possibly logged data being dumped). 

Control Instructions:
PORT baud, bits, parity, stopbits, Queue Size, 
DTR Enabled, RTS Enabled, RTS Always on

!PORT 19200,7,E,1,2000,0,1,0
See the Configuration window for legal values. 
DTR and RTS = 1 for enabled, 0 for disabled.
Allows the micro to configure the plot port.
!QSIZ value
!QSIZ 5000
Sets the size of the queue.
!ECHO ON/OFF
!ECHO OFF
Enables micro echo.
!SDTR ON/OFF
!SDTR ON
Manually Set the DTR line.  Set after !CONN, ensure DTR enable is NOT selected in configuration or it will reset to on.
!SRTS ON/OFF
!SRTS ON
Manually set the RTS Line.  Set after !CONN.
!CONN ON/OFF
!CONN ON
Open the serial (or TCP) connection
 

Serial Problems:

bulletSome BS2 serial configurations have problems communicating to StampPlot.
By default, StampPlot is configured with DTR enabled (StampPlot Lite is configured with DTR disabled).  When DTR is enabled it will cause the BS2 to reset and start any programs over.
bulletOn most BS2 boards, there are capacitors in series to the BS2's ATN input to only allow a momentary change in DTR to reset to the BS2, allowing the stamp to be reset.  But some configurations may be lacking a capacitor causing the BS2 to lock up.
bulletFixes:
bulletDisable DTR in the configuration and save as default.
bulletOr, insert capacitors in series with the DTR.