PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV 2024 → Connect with USB card reader
Connect with USB card reader
Iniciado por guest, mai., 17 2014 11:30 AM - 8 respostas
Publicado em maio, 17 2014 - 11:30 AM
I have a usb reader to read a kenteken card. How is it possible to connect this with Windev 18? I have totaly no idea and can`t find the right thing in the windev help.

Thank you all!
Publicado em maio, 17 2014 - 2:44 PM
Hi Sammy

as with any external hardware, this one must come with a SDK (that you have to get, either free or $$$ from the manufacturer). Once you have it, you'll be able to see how to use it in windev (it may be an activeX, a dll, a .net assembly, etc.)

Of course, in some rare cases, you can find somebody who already did the work and is selling a windev component to do the work more easily. You can always start by having a look on wxshowroom.com, just in case :-)

Best regards
Publicado em maio, 17 2014 - 7:51 PM
Hi Sammy,

most probably it is just a serial device (virtual serial port), so you can use the serial port functions like sOpen(), sWrite() and sRead()
But you have to know the protocol to "ask" the reader for information. This info can only come from the manufacturer.
Something like
sOpen(1) // open serial port 1
sWrite(1,'give me the next license plate')
// now the device will send you info
sInfo = sRead(1) // capture the info send bythe device
Publicado em maio, 17 2014 - 8:08 PM
Publicado em maio, 17 2014 - 8:19 PM
Alexander,

Yes its that kenteken card. But they do not use à specific reader. The demo applicatie works ok with my reader.

Arie it is à USB reader, can i then also use THE serial codes?
Publicado em maio, 18 2014 - 7:20 PM
No, USB driver cannot be used with serial commands, you need to use a .net oder native .dll to access the USB driver....

yours
Alex
Publicado em maio, 19 2014 - 9:18 AM
Alexandre,
you are right about 'real' USB devices. But others come with a built-in usb-to-serial converter. Then it is just a serial port as far as the software is concerned. Mostly rs232 but I also have a device which acts as rs422
Publicado em maio, 19 2014 - 11:11 AM
Looks very much like RS232 protocol to me. I am unable to read the full 90+ pages but if u need more information take the doc file here: https://github.com/eVRMTV/eVR/tree/master/doc. As i understand the sample application is opensource so it should be no problem to figure out how it works.
Publicado em maio, 19 2014 - 4:52 PM
Hi Sammy Broeders ,

first , find a card reader that support kenteken card and make sure that it come with the SDK . hence that not all card reader device come with SDK , make sure you check with the manufacture before you purchase the device.

the sdk should include a sample program and library detail . just read throught it , you should able to guess how to implement into windev