What happens when you scan the barcode into the Scan Diagnostics (accessed through Alt-D in TelnetCE)?
The screen is truncating the full scan. This is from the dumb scanner on my desk into NotePad:
[)> 06P22776729Q3061JUN0396978888F899999121LMX SUR20LSN03BK27FX001PBCARTON7Q12GT
So what is the actual problem? Are you worried about the escape characters in between each of the sections of the barcode? If you were to scan from the "dumb scanner" into Notepad++ and then select the option to view all characters then you would likely see those escape characters in the actual output. You're not seeing them in notepad because they're probably not in the character set (ASCII, unicode, etc.) that Notepad is using and therefore they aren't displayed.
You can use the Scan Handler in the emulation parameters of TelnetCE to strip out or manipulate the barcodes as needed. I can help you out with some of that scan handling but I need to first understand what is going on. Is it your host application that you're sending the scan to thats responding with "Invalid Characters"?
Telnet 5250 emulation screen. The MC9190 never returns a value. It gives an error beep and displays the message at the bottom:
I am an iSeries programmer and I need to know if the information in the 2D barcode is still valid.
Downloaded Notepad++ and it is awesome! Here what the information looks like:
The arrows are most likely group separators, you can remove these by adding a scan handler which is outlined in this doc ScanHandler: removing a GS, FS, RS from a barcode
You may also need to remove other characters outlined in that doc as well.
Sounds like this is exactly what I was looking for!
Problem with that is that I have no idea how to implement a ScanHandler program.
Do I create it in Script Editor or is a Preamble String in the PDF417 settings?
This information got things working. Had to add a couple of my own:
End of Transmission:
Thanks for the help!
Thank you all for the helpful information.
I'm attempting to work with GM 2D PDF417 barcodes as well on an iSeries.
I have a question. What if I wanted to replace the group separator with a Tab Key function?
Keyboard Diagnostics on my MC9190 device tells me that the Tab Key is 000D. I attempted to add the following Scan Handlers. No errors, but I the tabbing doesn't appear to be working.
I have 6 fields on my 5250 emulation screen. My cursor is in the 1st field. The data just runs through all the fields and then finally performs a tab at the end of the scanning.
Scanned into my setup tool showing me the escape (hex control) characters looks like this: I want to a Tab function to happen every time a [1D] is encountered.
Scanned into note pad looks like this:
I have run so many tests, but I have not been successful yet.
Any help would be great.