serial port - com0com intercept opos printer x is offline -


we trying intercept data between pos , printer.

the problem have ran pos reports printer x offline when connect com0com endpoint.

an instance of hyperterminal on each side of com0com endpoints communicate each other.

i never knew there way detect if hardware connected serial port. write com port regardless if there device listening. know pos uses opos it's underlying way communicate printer. event opos firing notify pos application think printer offline? how hardware identify if device connected? there anyway circumvent event when using com0com?

opos follows 3 step process: open(), claimdevice(), , enable. calling open() cause opos common control object (opos cco) construct vendor-provided device specific service object (so), , call open() method on so. initializes software, not attempt talk device @ time.

claimdevice() negotiates make sure device shareable , available app. @ time device reported offline. claimdevice() raise exception resultcode indicating opos_e_offline.

setting enable true, or performing print activities can fail call if device offline. might unplug printer in middle of printing, example.

the responsible performing negotiation , communication device. vendor's provided opos installation package typically installs , configures you. responsibility make sure configured talk correct port , device. if not configured, device offline error when claimdevice() called.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -