Click here to Skip to main content
15,891,423 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
my boss ask me to make a system that are use to audit the fixed asset(fa) of the company. they want the system must be a website(asp or php is ok for me).create the website is not the problem, my big problem is that how the wireless barcode scanner interact into my website and database? or it is possible to interact the wireless scanner to the website and database? can you give some referrences or sample codes to study.

thnx a lot.
Posted

1 solution

Barcode scanners usually comes in two flavours when it comes to the connection the host PC.

1. The are connected as a HID either via USB or the old PS2 port.
In this case the scanner works as a keyboard and anything you scan will appear in the active input control.
The benefit with this setup is that it requires no programming in order to use the barcode scanner, but your are limited to scan to the focused input box.

2. The scanner is connected to a dedicated port
Usually this is a COM port, either a physical RS232 port or a virtual COM port.
There are also scanners that uses Power Over Ethernet, and then of course uses TCP/IP communication.
In either case you have write code to listen to the connected port, read the data when it arrives and send it to the correct input box.

For the scanner you got, you have to find out how it is connected to the host PC.
You say it is wireless. Is it WiFi, Bluetooth or something else.
What you need to do is to read the documentation about the scanner so you know which type it is and also download drivers and maybe some example applications from the vendor.

I know this is a very general answer, but without any specific details it is difficult to say more.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900