문제

I’m testing EMDK .Net SDK 2.5 on a ES400 device and have managed to get basic barcode scanning to work. When I try to scan QRCode’s, I allways get E_SCN_BUFFERTOOSMALL. The ScanData.Buffersize is 112 which probably is to small, but where can I increase the buffersize?

The QRCode decoder is enabled. If I try the same QRCode with the DataWedge on the device, everything works fine. I have checked help files, samples etc without any luck. Any help or suggestions would be highly appreciated. Cheers!

도움이 되었습니까?

해결책

I found a workaround!!
By using Symbol.Barcode2 assembly, instead of the Symbol.Barcode2.DesingCF35 assembly, I am able to control the buffersize with the statement

MyScanner.Config.ScanDataSize = 256;

If you need more control, it looks as if you are better off looking at the “CS_Barcode2Sample” project as an inspiration instead of the “Barcode2ControlSample”. Good luck..

다른 팁

You can set the buffer length on the ReaderData object via its constructor. Then you pass that instance to the Reader:

MyReader.Actions.Read(MyReaderData)

That's all there is to it!

You can use Symbol.Barcode.ReaderDataLengths.MaximumLabel to initialize the ReaderData buffer length to the maximum size.

Symbol.Barcode.ReaderData MyReaderData = 
    new Symbol.Barcode.ReaderData (
        Symbol.Barcode.ReaderDataTypes.Text,
        Symbol.Barcode.ReaderDataLengths.MaximumLabel); 
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top