PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV 25 → WD20 connect to USB magnetic card reader
WD20 connect to USB magnetic card reader
Iniciado por Bruce Lee, jan., 25 2016 9:09 PM - 20 respostas
Publicado em janeiro, 25 2016 - 9:09 PM
Hello Everyone,

I am working on a magnetic card reader (by USB). It has usb-to-serial converter.

But when I insert it to my computer, the device manager in Windows system only showed it as HID(human interface device)-compliant device, it doesn't show the port number.

The card reader also comes with a programmer manual and DLL. From the programmer manual, it seems that we can send escape code to card reader to write/read card.

However, if I don't have port number, how can I send code to the card reader? (sopen() needs port number. iEscape() looks like doesn't work in this case).

any advice/experience would be highly appreciated!

Thanks!

Bruce
Publicado em janeiro, 25 2016 - 9:19 PM
I would first try another computer to see if a virtual serial port does show up there.
I've seen cheap usb-serial converters which don't work on all computers, like my laptop for instance!
Publicado em janeiro, 25 2016 - 10:30 PM
Hi Arie,

Sorry about the confusion. The usb-serial converter is software driver, no a cable.

This card reader comes with a software, when I plugged in, and run the software, the software works well. It can do read/write to card. (Even the device manager treats it as HID-compliant device.)

I also tried other computers, it does the same thing.

Also, I am thinking, is there anyway to treat it as a printer? So we can use iEscape() to send command.
Thank you.

Bruce
Publicado em janeiro, 26 2016 - 7:57 AM
Hi, Bruce.

The following may or may not be of help in solving your problem but it refers to
trying to control a GPS device designed for serial ports through USB.

You seem to have installed the driver successfully so this is what the article suggests:
1. Open the Device Manager
2. In the displayed list of devices look for "Ports (COM and LPT)"
3. Below that you should see an entry for the virtual COM port created by the USB driver
something like this: Prolific USB to Serial Comm Port (COM4).
I guess "Prolific" is the brand of the device using COM port # 4.

Hope this helps.

- Mike H.
Publicado em janeiro, 26 2016 - 10:27 PM
Hi, Mike,

Thank you for your reply.

I did what you said, the device manager didn't find my device.

BTW, could you send the link of "control of a GPS device designed for serial ports through USB"? Maybe I can get some useful information from there.

Thank you.

Bruce
Publicado em janeiro, 27 2016 - 3:05 AM
Hi Bruce

Sorry my post didn't help your problem. Interfacing serial devices through USB has been
of interest to me but not urgently.

Anyway, here's the link to the information I posted:
https://tnp.uservoice.com/knowledgebase/articles/172101-determining-the-com-port-of-a-usb-to-serial-adapte
(That's right - there is no "r" at the end)

Here's another link that describes how the interface works
http://plugable.com/2011/07/04/how-to-change-the-com-port-for-a-usb-serial-adapter-on-windows-7

Hope you get some ideas that I might have missed.

- Mike H.
Publicado em janeiro, 27 2016 - 11:03 AM
Hi Bruce

What model card reader do you have.

ISO
Publicado em janeiro, 27 2016 - 3:44 PM
Thank you!

Bruce
Publicado em janeiro, 27 2016 - 3:47 PM
Hi iso,

I am using MSR605 and MSR606.
Thank you.

Bruce
Publicado em janeiro, 27 2016 - 9:12 PM
I use Magtek sureswipe readers in HID mode and prefer HID over keyboard wedge as you don't have to manage control focus prior to card swipe. Magtek publishes an ActiveX control to trap events in HID mode from their readers. Pretty easy to setup. Not sure about the MSRs if they have an ActiveX or like facility to trap swipe events. If you can, I would recommend HID over keyboard wedge..
Publicado em janeiro, 29 2016 - 12:27 AM
Hi Mr Black,

Thank you for your reply.

Could you tell me what model of Magtek you were using?
Can it write to swipe card?

I don't see the documentation of MSR mention about ActiveX.

Bruce
Publicado em janeiro, 29 2016 - 2:53 PM
Right.. Didn't realize you also wanted to write card data..

Here is a link to the readers we use: http://www.newegg.ca/Product/Product.aspx…

For writing, we use Zebra Q3 series card printer with encoder because we also need to print on the card name and ID numbers along with branding graphics.. These things aren't cheap but they work well in the field and are a synch to get working in WD.
Publicado em janeiro, 29 2016 - 3:43 PM
Hi Mr Black,

How does Zebra Q3 series work? Does it work like normal printer? Do we send escape code command to it and let it write/print card?

Thank you very much. Your information is very helpful!

Bruce
Publicado em janeiro, 29 2016 - 3:54 PM
It works like a normal printer. In the driver, you have the option of using default escape sequences or custom to write track data. We create a report in WD with a static control that has the track data escaped by the same sequences as specified in driver. The static control can be overlaid right on top of the report and the Zebra will omit it as it sees it as track data. Pretty easy... No custom DLL stuff or Zebra SDK needed, unless you need to get the responses back from the printer on success or failure etc, then you would need the SDK.
Publicado em janeiro, 29 2016 - 4:28 PM
Thank you!

I will do some more research about it.
Thank you for your help.

Bruce
Publicado em setembro, 09 2020 - 7:42 PM
Publicado em setembro, 11 2020 - 4:58 PM
SD-WAN has become a vital word in various industries related to IT. If you have clients in this industry or related to this sector, there’s no doubt, you will have been asked about the deployment of SDWAN routers. Indeed, by 2018, 40% of WAN edge infrastructure was expected to be SD-WAN. It is a way of simplifying enterprise connectivity between remote locations and various branch offices.

https://www.fieldengineer.com/c1/deployment-of-sd-wan-routers
Publicado em outubro, 23 2020 - 2:45 PM
The BPO Group is the foremost web designers and developers in Australia that believes in highly interactive website and responsive designs. People who are need of a website in Australia can depend on the BPO Group website development and designing services, as our website designers are highly proficient and efficient.

We are Authentic Digital Marketing agency in Australia. We have vast involvement in all the main aspects of digital marketing. This includes social media marketing, paid promotion, email marketing, creative content marketing, SEO, web analytics, and more. For more please visit at https://thebpogroup.com
Publicado em novembro, 03 2020 - 9:32 AM
I am a Medical Doctor in Australia and I am at this time specializing in Pediatrics. I am very loving about the work that I do. Our mission is to provide centered services with un-matched quality that support empowers permanent disable persons to make their own journey of life.

As a support provider we help people with significant and permanent disability to achieve goals in their life by assisting in Community Participation, Household Tasks and many more. At Authentic Life Care, we provide home care support services to families, to assist them through challenging times in their lives.

Here at Authentic Life Care, we set out our current arrangements for meeting the needs of customers who have significant and permanent disability. We maintain and improve current standards of accessibility to services for people with disabilities or those whose mobility is impaired. We will support independent travel as far as possible, with the principles of information and access elevated across the board so that clienteles with agility complications have more self-assurance in traveling.




:gracias: Visit Here-> https://authenticlifecare.com.au/
Publicado em novembro, 03 2020 - 11:33 AM
This is good topic of discussion.
Narrative Conventions
Visit here- https://www.totalassignmenthelp.com/blog/narrative-conventions/
Publicado em novembro, 03 2020 - 11:36 AM
Thanks for choose this topic.
Business Life Cycle
https://www.totalassignmenthelp.com/free-sample/business-life-cycle