Page 1 of 1

Framing Error

Posted: Tue Dec 03, 2019 6:12 pm
by steve_c
Hello,

I have a .net application with the 2019 SDK that is printing to a SATO M-84Pro which currently has an RS232 interface.

We are in the process of migrating our labels to NiceLabel so for now this app has to print using the NiceLabel SDK as well as by sending raw data to the COM port using SATO's API for the labels that haven't been upgraded to NiceLabel yet. I was using the .net Ports.SerialPort object prior to NiceLabel but installing the SATO printer driver prevented me from continuing to use this as it was blocking the COM port.

My problem now is if I have my COM port / printer interface baud set to 9600 then the raw data is fine but NiceLabel takes about 5 seconds to print per label. If I set that higher (tried all that my printer allowed - 19200, 38400, 57600) then I do see improved performance for NiceLabel but also get random framing errors on my printer for both types of labels.

I'm wondering if NiceLabel recommends a specific interface for printing? We've used LAN connections for high speed lines and haven't had a problem. This is a standalone station so I was hoping to stick with a 232 interface. Would anyone have experience using a USB interface? I think that might be my best option at this point but don't know its performance and would be reluctant to purchase the new interface cards unless I know it's going to help.

Thanks in advance -

Re: Framing Error

Posted: Tue Dec 03, 2019 10:15 pm
by margy82
Hi, I use USB connection with Sato Printers and I found that connecting through unique address to the printer has better performances than connections through drivers. It is well explained in the documentation of Sato API

Re: Framing Error

Posted: Tue Dec 10, 2019 5:34 pm
by steve_c
Hi Margy,

Thanks for the reply. I have a USB interface card ordered and hope to have it to test next week as a replacement to my existing RS232 interface.

Can you use the SATO API as a replacement for NiceLabel's .Print command and be able to print using the NiceLabel SDK without installing the SATO driver? Or are you saying that I should be using the unique address for non-NiceLabel printing?

Re: Framing Error

Posted: Tue Dec 10, 2019 10:30 pm
by margy82
You could use Sato SDK to send SBPL commands or Nicelabel SDK. As you prefer. I use SATO SDK to connect to printer via USB using unique address for connection bypassing driver to speed up communication to check printer status and then nicelabel sdk to open labels, edit variables and print.

Re: Framing Error

Posted: Tue Dec 10, 2019 10:48 pm
by steve_c
So do you still have the driver installed? If not, how do you select the printer of your label object prior to printing it?

The lag I'm experiencing using the SATO RS232 interface is on the .Print command, not on connecting or checking the status. I'm hoping that switching from RS232 to USB takes care of that lag. My .NLBL files are only 8KB but it takes about 5 seconds from the time I execute the .Print command until the label comes out. And the ONLINE light is blinking the entire time so I'm assuming RS232 can't handle that much data.

I also tried .AppendToOutputFile and .OutputFileName with NiceLabel and then sent the contents of that file using .SendRawData with SATO and it still took around 5 seconds.

Re: Framing Error

Posted: Wed Dec 11, 2019 6:22 am
by margy82
Are you sure that RS232 is configured correctly?

Re: Framing Error

Posted: Wed Dec 11, 2019 2:05 pm
by steve_c
Yes. When testing the different baud rates I have been changing my port settings in code to correspond with the DIP switch settings on the RS232 card. 9600 works but is very slow. Anything above that up to the card's max of 57600 is faster but will randomly give the "Framing Error" message in the display.

Something else I should mention though is I am using an old Belkin USB-to-RS232 converter since I don't have a PC in this office with an onboard RS232 port. This printer's final destination is in another location on a PC with an onboard RS232 port.

Re: Framing Error

Posted: Wed Dec 11, 2019 7:06 pm
by margy82
Ok I understand. I suppose that USB connection can help you to speed up things. You can use driver if you print from nicelabel using sdk. It you still prefer to print without nicelabel unique address and permanent connection. The initial connection is slow but then the communication (send/read) from printer is fast and stable enough.

Re: Framing Error

Posted: Mon Dec 16, 2019 10:40 pm
by steve_c
My USB card arrived today and fixed my problem. I am printing NiceLabel labels using the NiceLabel SDK .Print command and printing non-NiceLabel labels using the SATOPrinterAPI .SendRawData command. Both come back almost instantly with no errors.

Re: Framing Error

Posted: Sat Dec 21, 2019 7:59 pm
by margy82
Well, I'm happy to read this. Good work