Shop OBEX P1 Docs P2 Docs Learn Events
Want to write Windows application that controls BS2 using eb500 — Parallax Forums

Want to write Windows application that controls BS2 using eb500

radmaniacradmaniac Posts: 1
edited 2007-08-13 23:58 in General Discussion
·· I am trying to write an application for Windows XP that uses the DBT-120
·· USB Bluetooth adaptor to communicate to a Basic Stamp 2 / BOE with an
·· eb500.· I have the DBT-120 drivers and software installed and the eb500
·· connected to the BOE.· I wrote a simple BS program to read characters
·· from the eb500 and write them back; i.e., it just echos back what was sent
·· to it.· This works fine when I use it with HyperTerminal, so I know it can be done.
·· I have a small C program that writes characters to a serial port and
·· then reads them back from the same serial port; functionally similar to
·· HyperTerminal.· This program works just fine when I use it with COM4 and
·· a slightly modified BS2 program that echos characters using DEBUGIN and
·· DEBUG (hence using COM4).· Problem is that I can't get the application
·· to work with the Bluetooth connection; it just crashes my system!· I can
·· send a copy of the C program to anyone interested.
·· So, my question is: Is there some code sample (in C) available to illustrate
·· the proper system calls to communicate with an eb500 from a Windows XP
·· system?·
··
·· Other info:
····· The DBT-120 software maps the eb500 to COM40 using the
····· A7 Serial Port Service.
····· I'm aware that for COM ports greater than COM9 the [url=]\\.\COMnn[/url] syntax
····· must be used when naming the device.
Sign In or Register to comment.