General discussion

Locked

Port Communication

By kashifidrees ·
I have made a web E-Commerce Application. But the benifit of this is that the same web site will be run in the store of the company for shopping.
My problem is that when the person in the store clicks the enter button after doing all the shopping then, because we r doing the shopping in the store and stores have cash registers in which they give the money, the door of the cash register should open. So i want that by Clicking on the Web Page i want to open the door of the cash register. And remember i am using ASP. So please suggest me something. I am new bee i this Port communication business.
Please give me any solution for this and aldo how would i tell the cash register to open its door??? what will ebthe commands for that?????
Please explain this. I need this as soon as possible

This conversation is currently closed to new comments.

4 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Port Communication

by DKlippert In reply to Port Communication

A couple of leads:

http://www.codeproject.com/system/serial.asp

The echo function to send a control G character to either lpt1 or com1:

command.Format("command.exe /c Echo 0x07>Com1");

Collapse -

Port Communication

by kashifidrees In reply to Port Communication

Poster rated this answer

Collapse -

Port Communication

by kashifidrees In reply to Port Communication

As the Cash register will be on the client side so i think the have to use ActiveX for this.

Collapse -

Port Communication

by n.mehta In reply to Port Communication

A better alternative is to use the Win32 APIs namely CreateFile()and WriteFile() functions to open a raw serial communications file on the desired COM port.

First open a shared read/write file by the use of the CreateFile() API on COM port, you will get a handle to the file. After that give the relevant command bytes to the COM port by using the WriteFile() API with the handle you got in CreateFile(). Then call the __flushall() API. Please refer to the MSDN documentation for more details on these APIs.

Its you who has to find out what input the cash register takes to open the door. And then you can give the same input via the COM port for opening the door.

Hope that gets you started.

Back to Web Development Forum
4 total posts (Page 1 of 1)  

Related Discussions

Related Forums