Intermec PC23d IDL Smart Printing Resource Kit Developer Guide - Page 23

Con the Printer, About Printer Command Language Modes

Page 23 highlights

Configure the Printer The C# API provides the ability to configure printer settings. Networking and network services configuration parameters require authentication (as itadmin) before you can change printer settings. This sample code illustrates switching to user itadmin temporarily to set an IPv6 IP assignment: // Init Security security = new Security(); Configuration configuration = new Configuration(); // Switch to itadmin security.SetUser("itadmin", "pass"); // Update IPv6 IP assignment method configuration.SetParameter( "Communications,Ethernet,IPv6,IP Assignment Method", "DHCP"); // Switch back to user security.SetUser("user", ""); // Cleanup configuration.Dispose(); security.Dispose();} About Printer Command Language Modes The printers can run either with or without a command language parser listening. Set the command language mode from menu/Settings/System Settings/General: • Smart Printing: The printer disables the Fingerprint language and instead expects your C# application to handle everything. • Other languages: The selected command language handles the printer. If you start a C# application while Fingerprint is the selected language, general firmware features are overridden based on which classes the C# application instantiates, as listed in the next table. Fingerprint Feature Behavior Overridden by C# Applications Class Communication PrintControl UI Behaviors Communication I/O (Telnet port 9100, Serial, Parallel, USB Host, USB Device, Bluetooth, XML printing, PrintSet support) is released by Fingerprint and can be controlled by the C# application. Print engine control is released by Fingerprint and can be controlled by the C# application. User interface elements (LCD, LED, Buttons) are released by Fingerprint and can be controlled by the C# application. Certain firmware functionalities are always available and active, independent of command language selection or whether a C# application is running: • Web page service • SNMP service & email events • Avalanche • SmartSystems IDL Smart Printing Resource Kit Developer Guide 17

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28

IDL Smart Printing Resource Kit Developer Guide
17
Configure the Printer
The C# API provides the ability to configure printer settings. Networking and
network services configuration parameters require authentication (as
itadmin
)
before you can change printer settings. This sample code illustrates switching to
user itadmin temporarily to set an IPv6 IP assignment:
// Init
Security security = new Security();
Configuration configuration = new Configuration();
// Switch to itadmin
security.SetUser("itadmin", "pass");
// Update IPv6 IP assignment method
configuration.SetParameter(
"Communications,Ethernet,IPv6,IP Assignment Method", "DHCP");
// Switch back to user
security.SetUser("user", "");
// Cleanup
configuration.Dispose();
security.Dispose();}
About Printer Command Language Modes
The printers can run either with or without a command language parser listening.
Set the command language mode from menu/Settings/System Settings/General:
Smart Printing: The printer disables the Fingerprint language and instead
expects your C# application to handle everything.
Other languages: The selected command language handles the printer.
If you start a C# application while Fingerprint is the selected language, general
firmware features are overridden based on which classes the C# application
instantiates, as listed in the next table.
Certain firmware functionalities are always available and active, independent of
command language selection or whether a C# application is running:
Web page service
SNMP service & email events
Avalanche
SmartSystems
Fingerprint Feature Behavior Overridden by C# Applications
Class
Behaviors
Communication
Communication I/O (Telnet port 9100, Serial, Parallel, USB Host,
USB Device, Bluetooth, XML printing, PrintSet support) is released
by Fingerprint and can be controlled by the C# application.
PrintControl
Print engine control is released by Fingerprint and can be controlled
by the C# application.
UI
User interface elements (LCD, LED, Buttons) are released by
Fingerprint and can be controlled by the C# application.