Shop OBEX P1 Docs P2 Docs Learn Events
serial for socket server and Flash — Parallax Forums

serial for socket server and Flash

frosliefroslie Posts: 67
edited 2008-04-29 17:54 in BASIC Stamp
hi,

I am planning to use a Bs2 to communicate with Flash using a socket server.

I am using Dan O'Sullivan's found here:
http://itp.nyu.edu/~dbo3/SerialServer/SerialServer.html

I think I understand what needs to happen, but have limited experience using serial with the BS2. I'm assuming there is probably some simple code that will allow me to watch for an incoming message from the socket/Flash.

Can anyone suggested a simple serial code or location for me to look?

thanks so much

Comments

  • Chris CChris C Posts: 50
    edited 2008-04-29 01:07
    The Syntax Reference manual in the Downloads section is awesome for BS2. It'll explain everything you need.
  • frosliefroslie Posts: 67
    edited 2008-04-29 01:09
    that is great, thank you chris.
  • frosliefroslie Posts: 67
    edited 2008-04-29 04:18
    So, I am using a USA19H keyspan USB/serial adapter with Mac os x to communicate with the BS2. I need to know the port it is attached to -- does someone know a quick check for this?

    thanks
  • ForrestForrest Posts: 1,341
    edited 2008-04-29 10:21
    Launch Keyspan Serial Assistant, select the Keyspan device and choose Window - Get Device Info. On my system, it reports Port 1 and while running MacBS2 it reports Port 1 in use 9600

    Post Edited (Forrest) : 4/29/2008 10:36:58 AM GMT
  • frosliefroslie Posts: 67
    edited 2008-04-29 16:05
    thanks forrest. that works, though it does not reveal '9600' or the like. it just indicates that port one is available..

    I believe there may difficulty getting the server socket I'm using to recognize the keyspan.. I may need to try another model form FTDI.
  • ForrestForrest Posts: 1,341
    edited 2008-04-29 16:51
    9600 is displayed because MacBS2 is communicating with the Stamp at 9600 bps. To troubleshoot communication between the Stamp and your computer, try Zterm set to 9600 bps

    homepage.mac.com/dalverson/zterm/
  • allanlane5allanlane5 Posts: 3,815
    edited 2008-04-29 17:54
    And are you sure you've put the RXTX library in the right place in your Java subdir tree?
Sign In or Register to comment.