4.1. StarIoExt
Provides human-readable command generation and peripheral device operation.
Constant
Name
Contents
Emulation type constants
Character Code constants
Barcode Reader Model constants
Customer Display Model constants
Melody Speaker Model constants
Method
Name
Contents
Creates the command builder object
Creates the customer display command builder object
Creates the melody speaker command builder object
Creates a barcode reader connection status command response analysis object
Creates a customer display connection status command response analysis object
Creates a melody speaker connection status command response analysis object
4.1.1. Emulation
Emulation type constants
Declaration
public enum Emulation { StarPRNT, StarPRNTL, StarLine, StarGraphic, EscPos, EscPosMobile, StarDotImpact }
Constants
Name
Contents
StarPRNT
StarPRNT emulation
StarPRNTL
StarPRNTL emulation
StarLine
STAR Line Mode emulation
StarGraphic
STAR Graphic Mode emulation
EscPos
ESC/POS emulation
EscPosMobile
ESC/POS Mobile emulation
StarDotImpact
STAR Dot Impact emulation
StarPRNTL emulation
StarPRNTL emulation reduces the command size with the AppendBitmapAsync type method that generates a raster image printing command.The time it takes to send the raster image command is reduced.
StarPRNTL emulation can only be selected on some supported models.For usable models, refer to the supported printers.
Constant of “Emulation” for each model.
Model |
Emulation |
Constants |
---|---|---|
mC-Print2 | StarPRNT | StarPRNT |
mC-Print3 | StarPRNT | StarPRNT |
mC-Label3 | StarPRNT | StarPRNT |
mPOP | StarPRNT | StarPRNT |
FVP10 | StarLine | StarLine |
TSP100IV | StarPRNT | StarPRNT |
TSP100IV SK | StarPRNT | StarPRNT |
TSP100IIIW | StarGraphic | StarGraphic |
TSP100IIILAN | StarGraphic | StarGraphic |
TSP100IIIBI | StarGraphic | StarGraphic |
TSP100LAN | StarGraphic | StarGraphic |
TSP650II | StarLine | StarLine |
TSP650IISK | StarLine | StarLine |
TSP700II | StarLine | StarLine |
TSP800II | StarLine | StarLine |
BSC10II | StarPRNT | StarPRNT |
BSC10 | EscPos | EscPos |
SM-S210i | StarPRNT | StarPRNT |
EscPosMobile | EscPosMobile |
|
SM-S220i | StarPRNT | StarPRNT |
EscPosMobile | EscPosMobile |
|
SM-S230i | StarPRNT | StarPRNT |
EscPosMobile | EscPosMobile |
|
SM-T300i/T300 | StarPRNT | StarPRNT |
EscPosMobile | EscPosMobile |
|
SM-T400i | StarPRNT | StarPRNT |
EscPosMobile | EscPosMobile |
|
SM-L200 | StarPRNT | StarPRNT |
StarPRNTL |
||
SM-L300 | StarPRNT | StarPRNT |
StarPRNTL |
||
SP700 | StarDotImpact | StarDotImpact |
4.1.2. CharacterCode
Character code type constants.
Declaration
public enum CharacterCode { Standard, Japanese, SimplifiedChinese, TraditionalChinese, }
Constants
Name
Contents
Standard
Standard character code
Japanese
Japanese character code
SimplifiedChinese
Simplified chinese character code
TraditionalChinese
Traditional chinese character code
4.1.3. BcrModel
Barcode Reader Model constants
Declaration
public enum BcrModel { POP1, DS9208, }
Constants
Name
Contents
Library version
POP1
Barcode reader : BCR-POP1
USB HID Class (Keyboard mode)
1.1.0+ DS9208
Barcode reader : DS9208
1.7.0+
4.1.4. DisplayModel
added in version 1.3.0
Customer Display Model constants.
Declaration
public enum DisplayModel { SCD222 }
Constants
Name
Contents
SCD222
Customer display: SCD222U
4.1.5. MelodySpeakerModel
added in version 1.7.0
Melody Speaker Model constants.
Declaration
public enum MelodySpeakerModel { MCS10, FVP10 }
Constants
Name
Contents
MCS10
Melody speaker: MCS10
FVP10
FVP10 internal speaker
4.1.6. CreateCommandBuilder
Creates the command builder object
Declaration
public static ICommandBuilder CreateCommandBuilder(Emulation emulation);
Parameter
Return value
Contents
Type
ICommandBuilder object
Examples
ICommandBuilder builder = StarIoExt.CreateCommandBuilder(Emulation.StarLine);
Refer to PrinterFunctions.cs.
4.1.7. CreateDisplayCommandBuilder
added in version 1.3.0
Creates the customer display command builder object
Declaration
public static IDisplayCommandBuilder CreateDisplayCommandBuilder(DisplayModel model)
Parameter
Name
Contents
Type
model
Customer Display Model constants
Return value
Contents
Type
IDisplayCommandBuilder object
Examples
IDisplayCommandBuilder builder = StarIoExt.CreateDisplayCommandBuilder(DisplayModel.SCD222);
Refer to DisplaySamplePage.xaml.cs/ DisplayExtSamplePage.xaml.cs.
4.1.8. CreateMelodySpeakerCommandBuilder
added in version 1.7.0
Creates the melody speaker command builder object
Declaration
public static IMelodySpeakerCommandBuilder CreateMelodySpeakerCommandBuilder(MelodySpeakerModel model)
Parameter
Name
Contents
Type
model
Melody Speaker Model constants
Return value
Contents
Type
IMelodySpeakerCommandBuilder object
Examples
IMelodySpeakerCommandBuilder builder = StarIoExt.CreateMelodySpakerCommandBuilder(MelodySpeakerModel.MCS10);
Refer to MelodySpeakerSamplePage.xaml.cs.
4.1.9. CreateBcrConnectParser
Creates a barcode reader connection status command response analysis object
Declaration
public static IPeripheralConnectParser CreateBcrConnectParser (BcrModel model)
Parameter
Name
Contents
Type
model
Barcode Reader Model constants
Return value
Contents
Type
IPeripheralConnectParser object
4.1.10. CreateDisplayConnectParser
added in version 1.3.0
Creates a customer display connection status command response analysis object
Declaration
public static IPeripheralConnectParser CreateDisplayConnectParser(DisplayModel model)
Parameter
Name
Contents
Type
model
Customer Display Model constants
Return value
Contents
Type
IPeripheralConnectParser object
Examples
IPeripheralConnectParser parser = StarIoExt.CreateDisplayConnectParser(DisplayModel.SCD222);
Refer to DisplaySamplePage.xaml.cs/ DisplayExtSamplePage.xaml.cs.
4.1.11. CreateMelodySpeakerConnectParser
added in version 1.7.0
Creates a melody speaker connection status command response analysis object
Declaration
public static IPeripheralConnectParser CreateMelodySpeakerConnectParser(MelodySpeakerModel model)
Parameter
Name
Contents
Type
model
Melody Speaker Model constants
Return value
Contents
Type
IPeripheralConnectParser object
Exception
Class
Contents
InvalidOperationException
FVP10 is specified
Examples
IPeripheralConnectParser parser = StarIoExt.CreateDisplayConnectParser(MelodySpeakerModel.MCS10);
Refer to MelodySpeakerSamplePage.xaml.cs.