Forum

Barscanner as keypad

Hi there,

I have connected a bar code scanner via USB to my PC. My PC detect the scanner as a keyboard.

In Wordpad it writes down the correct bar code in numbers.
But if i use the Keyboard Node in vvvv the keyboard output is really stange and has nothing to do with the code. The output is often diffent to the scan right bevor.

Edit: I’m sorry, there was something wrong with the scanner, now it works.

Thanks,
Fraggle

Ok, another Problem with the bar code scanner, maybe someone have an idear:

I’m scanning the code and windows get it correct. But vvvv get it via the keyboard node only sometimes correct. Mostly some strings are missing.

What can the problem be? Is there a correlation to the framerate of vvvv?

Thanks for your help,
Fraggle

Could it be that vvvv just updates itself in the middle of the code being entered as it does it char by char.

How about making a buffer that last a little while that everything is added to. And then combine it to form the complete string.
Should only need to last a few cycles to do it’s job.

@evilfraggle:

are you sure that some chars are missing?
are you aware that the IOBox (String) has a (configuration pin which enables displaying ascii chars #0-#32 and #127 ?

nice username btw.

@David_Web:

What exactly do you mean with buffer?
For my testpatch see the attached file, please.
I disconnected the pins to avoid the control 1 input. :)

The correct code that sould be shown is 6345564584493
Sometimes it scans the whole code, but mostly there are some random missing chars.

@Kalle:
I have checkt the iobox concerning the ascii button, but it is disabled. Since I have changed the SliceCount Mode to “ColsRowsPages” vvvv get the code better, but not satisfying :(

Some idears?

Thanks,
Fraggle

Test2_2009.01.20-11.43.43.jpg (34.3 kB)

I have checkt the iobox concerning the ascii button, but it is disabled

that means exactly that ascii chars #0-#32 and #127 will not be displayed. perhaps you should enable this…

Damn, that’s correct :) But it takes no effekt :(

Sadly, I have to report you that I had this strange issues too. Same behaviour word is correct, V4 not.

Some years ago for my diploma. I never could figure out what the problem was because of lack of time.

May be you can run a little program inbetween like a barcode reader prog, which is transporting message by TCP then.

Hi Guys

I am doing almost the same. I am using the Barcode scanner as keypad.
But i got a diffrent question.

How to diplay the incoming string in a row?
How to make the chars stay in the box, render window?

I tryed diffrent setups but the result still upsets me :)
I want to scan and to compare the result afterwards.
So I need the string in one row of chars.

MfG kaei

humm, my post i just wrote disappeared.

my suggestion is that vvvv just doesn’t display the received number due to patching reasons.
how does the signal flow from the barcode scanner work? does it send an empty string if nothing is scanned, and then a number for 1 frame?
what did you try on the logic side?

what i mean: did you already try something like in the attached patch, or just inserted in the queue every frame?

cucme barcode.v4p (4.2 kB)

thanks for the patch.
whitch version are you using? I am working with 40beta19.1
i guess you aim was to display the numbers in the io box.
well on me computer it doesn´t seem to work.

how does the signal flow from the barcode scanner work?
Well it work exactly like a keyboard.
if you scan 13 numbers they appear in a row, within 0.2 sec.
And if nothing scanned there is no return.

so i try many things. to queue. as string, RegExpr, I try to use the clipToRec option in the textpatch, writing the string in a txt file and reading it out.

But this is to complicated. vvvv is smarter. I think there must be an other way.
Maybe when in a coming update the multiline option in the textpatch is fixed, it may probably work this way ???
I attached this patch. It shows what i am trying to do.

the numbers are coming and i need them to be displayed
then they are compared and with the result “matches scan”( 1) an soundfile is starting.

thanks. I hope there is a solution. kaei

thatwasonetry.v4p (7.1 kB)

sorry, my answer above was adressed to Evilfraggle. Forgot to mention when wiriting it the second time (as it dissapeared after posting it the first time).

i think i don’t understand your problem in detail.

I’m scanning the code and windows get it correct. But vvvv get it via the keyboard node only sometimes correct. Mostly some strings are missing.

How to diplay the incoming string in a row?

fixed for betas >20

Use the new output of Keyboard (System Global) called “Buffered Keyboard Output” in combination with Tokenizer (String). The Barcodescanner should send some kind of separator, e.g. <RETURN> , after the actual string.

See also