Send Trigger To Print And Recieve Back Print Status 关注

0
Avatar
Legacy Poster

We are trying a test to send an XML file to Commander through the TCP/IP trigger to print a label and receive back a print status. The label print works fine but the calling pc does not get a response back. 

 

For the test we have BarTender and Commander loaded on one PC and we send the xml from another PC using a Java app.  The trigger is set to TCP/IP socket with port 5170 and Socket Disconnected.  We do not save the recieved data to a file as we don't want to do this in production. 

We have a Command type for BTXML script and a second Command type "Send to TCP Socket". The input options on that is "BTXML Response",  and we check "Send the response back through inbound connection" and check "Terminate connection when done". We do not get a response back to the calling pc. 

 

The only way we have been able to get a response back to the calling pc is to enter the IP address and port instead of Send the response back through inbound connection".  What are we missing? 

 

We have tried putting in additional attributes in the Print tag to see if that may do something "<Print WaitForJobToComplete="true" Timeout="20000" ReturnPrintData="true" ReturnSummary="true" ReturnLabelData="true" ReturnChecksum="true">"

 

Any ideas on what to try? 

 

 T

2 评论

0
Avatar
Shotaro Ito
评论操作 固定链接

Because original socket has been disconnected, the response doesn't reach to the sender.

In Sender application, don't disconnect the socket after sent. In Commander trigger setting, detect idle time instead of disconnect.

With this you can receive reply with "Send the response back through inbound connection" setting.

0
Avatar
Legacy Poster
评论操作 固定链接

Thanks, that worked great!

请先登录再写评论。