03-25-2022 06:46 AM - edited 03-25-2022 06:48 AM
im using essae weighing machine i need to send print command on usb hid port how can i do .
if i coonect keyboard to this port and press F12 key the printer prints . i need to replace that keyboard and send print command to printer through labview.
03-25-2022 09:38 AM
What is the model of the essae weighing machine?
03-25-2022 04:39 PM
DC815
03-26-2022 09:05 AM
USB is an asymmetric bus. You have an USB host side, which usually uses an USB-A connector and a device side, which uses typically the USB-B connector or sometimes an USB Mini or Mini connector. Your USB ports in your PC are all USB host connectors that can not simply act as an USB device. For that you need the according USB controller hardware that is prepared to work as device and an according driver that makes the hardware available to the system and applications. Even if you happen to have such an USB port in your computer, Windows would not know what to do with it and will simply present it as an Unknown USB device in the device manager. And if that hardware comes with a fully working Windows device driver, Windows still would not know how to integrate it in its device driver stack to be a standard device, but instead you would need to explicitly access that device driver yourself through Windows API calls.
All in all a lot of ifs and almost all of them very unlikely and you still end up with nothing!
The most "simple" way would be to use an embedded device that has on one side an RS-232 (or Ethernet) interface and with documented command protocol on that interface and on the other side an USB device connector that can emulate a keyboard.
You could hack a Raspberry Pi Zero as a keyboard emulator. It's USB port supports USB On the Go, just as most mobiles do and can therefore act as host or device, depending what is needed. Same applies for Arduino boards or Teensy's.
If you want to go with less hobbying and with something more off the shelf, something like this would work but they seem to be located in India. So it may be hard to get at it in the first place and just as hard to get any useful technical information to do what you want.
03-28-2022 05:46 AM
@Rushi119 wrote:
DC815
Is it this one? https://www.essae.com/dc-810-counting-scale.php
It looks like it does not have a USB Port.
I guess that you have a USB-RS232-Adapter that you want to use. Is this true?
Do you have the manual of the DC815?
03-28-2022 06:18 AM
Actually, it also seems to have a PS/2 connector. So that is even more different than what the OP made us believe and trying to simulate an PS/2 keyboard nowadays is even more esoteric!
https://www.essae.com/brochure/industrial-counting-scale/CAT-DC-810_815.pdf
03-28-2022 06:39 AM
@rolfk wrote:
Actually, it also seems to have a PS/2 connector. So that is even more different than what the OP made us believe and trying to simulate an PS/2 keyboard nowadays is even more esoteric!
Then again, it's probably more fun and easier to debug than setting up an USB keyboard emulator. On that note: The Arduino Due has USB OTG and the libraries seem reasonably mature. There are PS2-Libraries for most Arduini. Have not tested any of them, though. It might even be feasible to solder a bridge to the "print" key on the device and hook that up to a controller.
I'd still like to see the manual on that device first. I suspect that there are still some surprises left.
03-28-2022 08:40 AM
@rolfk wrote:
Actually, it also seems to have a PS/2 connector. So that is even more different than what the OP made us believe and trying to simulate an PS/2 keyboard nowadays is even more esoteric!
https://www.essae.com/brochure/industrial-counting-scale/CAT-DC-810_815.pdf
Not to mention that the documentation describing the command structure for this device seems to be non-existent. I could not find a single document which described the command set.
03-28-2022 08:43 AM - edited 03-28-2022 08:46 AM
@Mark_Yedinak wrote:
Not to mention that the documentation describing the command structure for this device seems to be non-existent. I could not find a single document which described the command set.
<sarcasme>
That's very normal nowadays! In a world of "zero programming" that is just an expense that makes no sense.
</sarcasme>
Sometimes they do have a Programmers Manual, if you happen to find the right person to ask for it. And if you are lucky it is more than a two page facsimile of handwritten notes scribbled down by someone who tried to make sense of some even more obscure notes.
03-28-2022 09:36 AM
@rolfk wrote:
@Mark_Yedinak wrote:
Not to mention that the documentation describing the command structure for this device seems to be non-existent. I could not find a single document which described the command set.
<sarcasme>
That's very normal nowadays! In a world of "zero programming" that is just an expense that makes no sense.
</sarcasme>
Sometimes they do have a Programmers Manual, if you happen to find the right person to ask for it. And if you are lucky it is more than a two page facsimile of handwritten notes scribbled down by someone who tried to make sense of some even more obscure notes.
Fully compatible with LabVIEW.
Programming optional.