Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 21st, 2003, 01:56 AM
teao teao is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: philippines
Posts: 3 teao User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
barcode scanner

how do barcode scanner scan the code?what sensor or technology they are using?can help me...

Reply With Quote
  #2  
Old July 21st, 2003, 05:09 AM
oscar_park oscar_park is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 1 oscar_park User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Talking

Actually, you don't need to know what sensor it has, the way barcord reader works, and so on, unless you are going to make your own barcode reader.

There are several types among barcode reader things like PS/2, Serial(RS232C type), USB, and even compact flash memory type too.

With my some experiences, PS/2 type(keyboard type) barcode reader was easist way to go on.

You only need "keypress" or "change" event on "textbox" control in VB.



Chiaoooo.

Reply With Quote
  #3  
Old July 23rd, 2003, 04:20 PM
utmostrusselb utmostrusselb is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Canada
Posts: 40 utmostrusselb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
To program something using a barcode reader just think this: It is exactly the same as typing in a text box. A scanner should first be hooked up to your computer. It will scan the barcode and *providing that the text box has focus* I.E. the cursor is blinking inside the text box, it will translate the barcode into a useable code. You will have to have the forms keypress property set to "True" on each form that you wish to use the scanner. This will allow you to catch the changing of the text box. Hope this helps.
__________________
Best regards,
Russ Bergen
Senior Software Developer and Webmaster

Reply With Quote
  #4  
Old July 23rd, 2003, 06:09 PM
Onslaught's Avatar
Onslaught Onslaught is offline
/(bb|[^b]{2})/
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2001
Location: Somewhere in the great unknown
Posts: 4,840 Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 2 Days 27 m 47 sec
Reputation Power: 88
Send a message via ICQ to Onslaught
This holds true for only 1D barcodes though. You will have to do some parsing for 2D barcodes it you intend on using them.

Reply With Quote
  #5  
Old October 30th, 2003, 09:42 AM
morovia morovia is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 14 morovia User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
There are some good articles in www.barcodeschool.com
. You may want to check out them.

The keyboard wedge is easy to use, they simply put the input into the keyboard buffer. However, the input box must have the input focus all the time.

RSC232 programming is easy once you know how to add MSCOMM32 into your application.

You may want to post your question at http://forum.morovia.com. There are some experts on that forum.

Reply With Quote
  #6  
Old October 30th, 2003, 10:11 AM
Fisherman's Avatar
Fisherman Fisherman is offline
Inherits Programmer.Slacker
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Aug 2003
Location: Between my Id and your Ego
Posts: 2,176 Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 9 h 42 m 4 sec
Reputation Power: 111
Send a message via ICQ to Fisherman Send a message via AIM to Fisherman
well, if you're using an MSComm control, then it's a little more complicated than that, ut . You have to remember to set things like parity bits, number of bits per word, stop bits, and the like, or else, barcode number 135233321531 might end up "as ;laksjd;flkajs;dlkfja;sldkjf;alskjdf" (over-exaggeration)
__________________
Fisherman

"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." - A.Einstein

Reply With Quote
  #7  
Old October 30th, 2003, 10:18 AM
morovia morovia is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 14 morovia User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Actually MSCOMM is easy. Using default settings, under most circumstances, produces the correct results.
Two problems associated with keyboard wedge - (1) the input focus; (2) you can only associate one scannner to the computer. With RS232 you fully control the input.

Reply With Quote
  #8  
Old October 30th, 2003, 12:07 PM
Fisherman's Avatar
Fisherman Fisherman is offline
Inherits Programmer.Slacker
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Aug 2003
Location: Between my Id and your Ego
Posts: 2,176 Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 9 h 42 m 4 sec
Reputation Power: 111
Send a message via ICQ to Fisherman Send a message via AIM to Fisherman
I can tell you this much. I've got a Welch Allyn test scanner here that can scan virtually any barcode, in any format. I have 4 programs in use that utilize the MSComm Control, and I got some very interesting results until I intialized everything correctly. There may not be any trouble with other scanners, but I know that it doesn't always work .

Reply With Quote
  #9  
Old November 28th, 2003, 12:11 AM
susana susana is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 2 susana User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi,

I have a related question, will the CRLF of the scanner be interpreted as Enter key by the VB.NET application?

I need to capture the CRLF from the scanner so that a function will automatically be triggered.

Could anyone help me?

Thanks.

Reply With Quote
  #10  
Old November 28th, 2003, 12:39 AM
Fisherman's Avatar
Fisherman Fisherman is offline
Inherits Programmer.Slacker
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Aug 2003
Location: Between my Id and your Ego
Posts: 2,176 Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 9 h 42 m 4 sec
Reputation Power: 111
Send a message via ICQ to Fisherman Send a message via AIM to Fisherman
if it isn't, then try using the Ascw() function to determine the Ascii value of the character you are looking at

Reply With Quote
  #11  
Old November 28th, 2003, 12:47 AM
susana susana is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 2 susana User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thanks for the reply Fisherman...

I will try that...

thanks again

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > barcode scanner


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway