p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Pro Visual Basic 2005 (http://p2p.wrox.com/forumdisplay.php?f=217)
-   -   combining a software and a programming code (http://p2p.wrox.com/showthread.php?t=49250)

poja October 19th, 2006 10:58 PM

combining a software and a programming code
i have an equipment from a company, which has a coordinator and a router.. this device comes with a software which has a some commands to be transfered between the coordinator and the router. now my problem is i don't know how to connect to the software to the programming which has to be done in VB 2005(the software must be in the back ground of the programming)... pls some one help me

woodyz November 8th, 2006 11:25 AM

You will have to provide more information. Does the equipment software provide an API for automation? There are a number of ways to interface between applications. Essentially, the company providing the equipment and the software to run it should also provide information on how to interface with it, if such a facility exists.

Woody Z http://www.learntoprogramnow.com

poja November 8th, 2006 09:25 PM

there is no such information.. the only information they have provided is a flow chart on how the device works.

it says after receiving the command it Uses AT commands to send it to the AT+++ (Software Configuration) if not it takes pin 15 low (Hardware Configuration).

i guess i have to call the AT command of the software into the program.But since i am not familiar with VB.NET i am not too sure how!well there are 2 AT commands.

Enter AT Command Mode: 41 54 2B 2B 2B 0D(this is the command).
Exit AT Command Mode: CC 41 54 4F 0D (this is the command).

but i m not too sure Wheather this is the one that needs to be called

woodyz November 9th, 2006 12:58 AM

This sounds like serial port or modem controls to me... AT = Attention, for example. You have no documentation?

Woody Z http://www.learntoprogramnow.com

poja November 9th, 2006 05:55 AM

nope no documentation? the only thing i have isthe manual of the device.. which has its coomands and eeprom settings.. u r right the coordinator is connected to the usb port in computer and the device has a com port which will be connected to the message board for display

woodyz November 9th, 2006 11:21 AM

You should start by looking at the books by Jan Axelson.
Her site is www.lvr.com
If this is your first try at controlling devices from a PC, then you are in for a lot of fun and an lot of work. A big part of what I origianlly did with programming was controlling devices mostly using basic. It isn't all that hard, but it is very different from typical windows programming.

The manual for the device probably contains all the information you need about how to communicate with it and how to make it do the things it is built to do. You have to learn about the process of sending command - generally, what happens is you tell the device you are going to send a command, it replys that it is ready for the command, you send the command, it replys that it received and understands the command, and so on.

A quick check on the Web indicates you won't have too much trouble getting information on how to do this with VB.NET. However, programming with a USB port is not exactly the same as programming a serial port - they are conceptually the same thing in that they provide a way to communicate with periferal devices, but they aren't programming in the same way.

Woody Z http://www.learntoprogramnow.com

All times are GMT -4. The time now is 11:47 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.