⌘BABAKOV.NET Let's code!
100% [dark] [ru]

Getting a Programmatically Generated Serial Number on Cipher 9300 C#

One peculiarity of data collection terminals Cipher with Windows CE is that, unlike other TSDs (at least Motorola(Symbol) and Datalogic), standard methods of obtaining a serial number will not work. To get it, you can, but it will be the same for all devices, which personally does not suit me.

However, this glitch can be bypassed and a serial number obtained using the API with the SystemApi_Ce_Net.DLL library, which is supplied with the terminal.

Below is a small code snippet on how to do this:

using Cipherlab.SystemAPI;


int err = 0;

DataType.DataStruct.SYSINFO sysinfo = new DataType.DataStruct.SYSINFO();
            
err = SystemAPI.Function.GetSysInfo(ref sysinfo);

string serial = Encoding.UTF8.GetString(sysinfo.SerialNum,0,sysinfo.SerialNum.Length);


I assume comments are unnecessary, and everything is simple and clear enough.

Comments (0)

No comments yet.

Leave a comment
Comment
Images (up to 5 MB)
Your comment will appear after moderation.