PDA

View Full Version : bare code --question--


sided
10-30-2008, 11:46 AM
I have a question, is it possible to plug in USB scanners to read codes bare, and that reading is displayed in Input.GetText or other

thanx advance for reply

Eliminator
10-30-2008, 11:51 AM
Yes, your barcode scanner will put the text in any focused object (ie, ams, notepad...) You just have to focus your input before you scan the product. The ENTER command will be also send after scanned ;) (if you want to put on key event)

sided
10-30-2008, 11:55 AM
Yes, your barcode scanner will put the text in any focused object (ie, ams, notepad...) You just have to focus your input before you scan the product. The ENTER command will be also send after scanned ;) (if you want to put on key event)

Quick response thank you, but what are the command to recognize the scanner which is located in usb :huh

mwreyf1
10-30-2008, 03:00 PM
There is no command.

Look at the scanner as a keyboard.

You scan, it inputs.

Another words, if you were to open Notepad in Windows and then scanned a barcode with a scanner you would see it typed into Notepad automatically.

Hope this helps.

sided
10-30-2008, 05:16 PM
There is no command.

Look at the scanner as a keyboard.

You scan, it inputs.

Another words, if you were to open Notepad in Windows and then scanned a barcode with a scanner you would see it typed into Notepad automatically.

Hope this helps.

thanx, is very well :yes

if I understood
Page.SetFocus("Input1");
sCode = Input.GetText("Input1");
I scan the code bare and will be displayed in "Input1"

Protocol
10-30-2008, 06:42 PM
We're talking about an infared barcode scanner right? A hand-held unit?

I will be very interested to hear if this works. Can anyone think of other input devices that could so easily input data into an AMS object?

RizlaUK
10-30-2008, 08:34 PM
Can anyone think of other input devices that could so easily input data into an AMS object?

im in need of a time keeping machine (card swipe kind of thing) that can send some info back to an app, name or account number (ID), time and date

anyone know of a bit of USB kit that can do that, any ideas?

i was thinking something rigged to a serial port, but im lacking a machine shop to make the hardware and my last attempt with an old PDQ machine and a used phone card dident go very well!!!

Protocol
10-30-2008, 10:10 PM
Hahaha,

It's funny you should mention that. I just went on to ebay and purchased a $1.00 usb mini keyboard and some phototransistors. Although I don't have anything particular in mind, I was thinking about experimenting with a basic punch card reader. I was considering the purchase of a bar code scanner for $10.00 (gotta love ebay), but I thought that this would be more fun (since I could arrange the photo sensors and resistors into any sort of machine I want). You might want to take a look at this... http://www.parallax.com/Store/Sensors/CustomKits/tabid/134/CategoryID/9/List/0/SortField/0/Level/a/ProductID/118/Default.aspx

I built a QC system using AMS4 years ago which tested MP3 players for necessary drivers, giving the QC'ers a green or red screen for pass or fail. Pretty simple. Simultaneously, I was working in assembly code, making the machines that would package the devices. I can see a beautiful marriage here, but I just don't know how to access those ports anymore (nor is it my job to anymore). Well... short story long, I am actually considering soldering myself a puch card reader. It's totally useless for me, but I thought it would be some old-school fun. =)

If I can just get data sent out of the computer (ideally using the com port and wrapping Worm's dll here: http://www.indigorose.com/forums/showthread.php?t=12182&highlight=output into an AMS function), then we'd be talking industrial robotics. A VERY cool field. I mean making a logo bounce around the screen is fun, but making robotic packaging arms respond to various conditions is like a rollercoaster for programmers. hahaha

RizlaUK
10-31-2008, 08:36 AM
You might want to take a look at this... http://www.parallax.com/Store/Sensor...8/Default.aspx

i thinking a robotic arm by the fridge and a tracked cup holder buggie, just press Ctrl+B and a cold one arrives at my feet!, or a home defence system, strap a webcam and a couple of steel BB guns to it and let rip at the neighbours!

seriously, thats some kit and its not as expensive as i imagined it to be, for £300/£400 i could build a bot, dont know what it would do, but it would be lots of fun

as for serial ports, a few weeks back i got a new Acer pc which along with my laptop has no serial ports or floppy drive, so im thinking USB is the way to go

mwreyf1
10-31-2008, 09:21 AM
I just tested AMS 7 on a POS keyboard with a card swipe and it worked fine.

Also tested with a laser barcode scanner (USB and RS232)and both worked fine.

Derek
10-31-2008, 03:59 PM
Indeed! I use a barcode scanner at work plugged into a ps2 keyboard port and it all works fine.
A barcode is just text displayed as bars. Like wingdings is just text displayed as ... wingdings!!

Derek
10-31-2008, 04:10 PM
... my last attempt with an old PDQ machine and a used phone card dident go very well!!!
This may have been due to compatibility. The scanner (PDQ or infrared) must be compatible with the source.
One of the most common and generic barcodes is 'Code39' but not all barcode scanners can read this, as they are designed specifically for other types of code.
So the PDQ may have worked ... just not with a phone card.