문제

너무 많은 게시물이므로 Google에서 내 문제에 대한 답변을 찾을 수 없었습니다.비슷한 질문의 대부분은 Windows / VB / .NET / C # / Java Centric입니다.

ISC 명령을 Zebra USB 프린터 (TTP2130)로 보내고 C / C ++를 사용하여 상태를 다시 가져와야합니다.다음을 사용하여 (기본 프린터로 설정된 Zebra Generic Driver와 함께 설정된 Zebra 일반 드라이버 포함)을 인쇄 할 수 있습니다 :

$ lpr file.prn 
.

Zebra 도구 상자를 사용하여 Windows에서 통신하고 Esc 명령으로 * .prn 파일을 생성합니다.

그러나 프린터에서 응답이 필요한 명령으로 파일을 보냈습니다.

이것을 성취하기위한 최선의 방법은 무엇입니까?어쩌면 libusb1.0 님이 직접 사용 하시겠습니까?

도움말셔서!

도움이 되었습니까?

해결책

Found a solution after searching for 'Swecoin'. This is the old manufacturer of Zebra's TTP line of printers. Swecoin on Wikipedia.

This guy made a simple and direct app to communicate with TTP printers (ttputil): http://www.rainbow-software.org/linux/

After downloading and compiling, I was able to send commands directly:

sudo ./ttputil enquiry sensor /dev/usblp0

I will modify its code to fit my needs.

Unfortunately, I haven't found a way to contact (and thank) the original developer from his website.

다른 팁

Well I had a similar issue and in the end this post helped me a lot: https://blog.peter.skarpetis.com/archives/2005/04/07/getting-a-handle-on-usbprintsys/ it is Windows centric but the principle is the same also on Linux and Mac.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top