Summary of Contents for Castles Technology UPT1000
Page 1
CASTLES TECHNOLOGY UPT1000 Book 2 User Manual Confidential Version 1.1 Jan. 2017 Castles Technology Co., Ltd. 6F, No. 207-5, Sec. 3, Beixin Rd., XindianDistrict, New Taipei City 23143, Taiwan R.O.C. http://www.castech.com.tw...
Page 2
Castles Technology Co., Ltd. All trademarks mentioned are proprietary of their respective owners.
Page 3
Revision History Version Date Descriptions Author Dec 19, 2016 Initial creation. Jeff Jan 11, 2017 Add “7. Appinex” and “7.1 Cautions”. Jeff Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 3...
Contents Introduction ........................6 Hardware Setup......................7 2.1. Parts of the UPT1000 ..................7 2.2. Communication Support ..................8 Basic Operation ......................9 3.1. Program Manager ....................9 3.2. Download AP ..................... 10 3.3. System Info......................11 3.4. Memory Status ....................12 3.5.
Page 5
Custom Font ...................... 54 5.3. Using TrueType Font (TTF) ................62 Technical Notes ......................64 6.1. Serial Cable PIN Assignment ................64 Appendix ........................65 7.1. Cautions ......................65 Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 5...
1. Introduction This document provides a guideline on operating and configuring Castles UPT1000 . The scope of this document includes setting up the UPT1000, basic operation, application life cycle, and some advance features. Castles Technology Co., Ltd. Confidential • All Right Reserved.
3. Basic Operation 3.1. Program Manager Once the power is on in normal status, UPT1000 will enter Program Manager if no default application selected. All user applications are listed in Program Manager. Users can select an application and run the application, view the application info, delete the application, or set application to the default one to run once the power is on.
System Menu System Menu 1.Download AP 2.System Info 3.Memory Status 4.Sys Settings 5.Test Utility 6.Factory Reset 7.Power Off Press [1] button to enter Download AP menu. Download AP Menu Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 10...
7.Power Off Press [3] button to enter Memory Status menu. Memory Status Menu MEMORY STATUS --FLASH Memory-- Total: 130688KB Used : 44644KB --SDRAM Memory-- Total: 65408KB Used : 32384KB Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 12...
GDB Timeout Set GDB connection timeout. GDB Channel Set GDB connection channel. ETHER IP/PORT GDB Ethernet connection setting. RTC Time Zone Set Time Zone of RTC (Real Time Clock). Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 13...
Page 14
GDB Mode : GMT Debug Port GDB Timeout Mobil AutoON GDB Channel Bklit Auto Off ETHER IP/PORT BklitOff Time PWR KEY OFF 1: Prev 2: Next 1: Prev 2: Next Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 14...
Page 15
Press [OK] button to change the setting value. Press [˂ ] button to toggle Y N Y. Press [1] button to previous page. Press [2] button to next page. Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 15...
Press [4] and [OK] to diagnose smart card module. Press [5] and [OK] to diagnose backlight. Press [6] and [OK] to diagnose magnetic stripe card reader. Press [↓] button to page 2. Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 16...
Page 17
Press [8] and [OK] to diagnose RTC. Press [9] and [OK] to check Printer. Press [10] and [OK] to check FONT file in UPT1000. Press [11] and [OK] to check CL transparent. Press [12] and [OK] to test Cantactless Card.
Press [6] button to enter Factory Reset menu. FacRest Password OK to reset? Press [OK]. FacRest Password Enter Password: **** Enter password and press [OK]. Enter factory reset password.(Default password: 8418) Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 18...
Power off the machine. System Menu System Menu 1.Download AP 2.System Info 3.Memory Status 4.Sys Settings 5.Test Utility 6.Factory Reset 7.Power Off Press [7] button to power off the machine. Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 19...
User must have to change the Default key to user own key at the first time. The Default Key Value in Password Manager is as below: Function Key 0000 PMEnter Key 0000 Factory Key 8418 Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 20...
Press [1] button to connect server. Press [2] button to enter system config menu. Press [3] button to reset config. Press [4] button to set compatible config. Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 22...
Press [4] button to view Font Management. FontManagment Font Mng 1.FNT File 2.TTF File Press [1] button to view FNT Font list. Press [2] button to view TTF Font list. Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 23...
7.HW Detect Press [7] button to run HW detection. HW TYPE Original HW-TYPE : EGCB HW-TYPE : EGCB Please Any Key. Press any key to reboot system. Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 26...
Key Injection function. (Factory use only.) System Menu (Page 3) System Menu 1.Bluetooth Setup 2.Plug-in Mng 3.Key Injection Press [3] button to view Key Injection. Key Injection Waiting for Command Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 29...
ULD User Key Encryption Key (RSA) ULD User Signature Key (RSA) For UPT1000, the RSA key length is 2048bits. 4.1.1. ULD Manufacturer Key The system consists of several kernel modules. These kernel modules are provided by the Manufacturer, and released in CAP format file with encryption and signing via ULD Manufacturer Keys.
Page 31
Key, to perform Triple DES encryption again on the cipher data segment of the kernel CAP files. This ensures that the system cannot retrieve the correct data from the kernel CAPs without the user permission. Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 31...
In other words, if the user would like to change the ULD User Keys, they have to use their original ULD User Keys with the new ULD User Keys to generate a KEY CAP. Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 32...
Castles will release new version of kernel module in “unsigned” form. This files required to sign with ULD User Key before it can load to UPT1000. Castles Technology provides a tool named “CAP Signing Tool” to perform this task. The CAP Signing Tool is located at: C:\Program Files\Castles\UPT1000\tools\Signing Tool ...
Page 34
Enter Key Card PIN CAP Signing Tool is ready, press “Select MCI File” button to browse the file. Output file will be located in “signed” folder. Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 34...
4.2.2. Signing User Files Following files are required to sign before load to UPT1000. This is to ensure the application data and codes confidential and integrity. The output file will be “CAP” file which format is defined by Castles. User application ...
Page 36
Insert Key Card and select smart card reader Enter Key Card PIN Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 36...
Page 37
CAP Generator is ready, select the correct Type from the list. Press “Step 1: Select AP Executable File” to select file to sign. This is valid for all the files to sign. Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 37...
Page 38
Note: If user would like to load multiple set of signed file, create a new file with extension of “mmci”. Then put the mmci file contents with the list of mci file. MultiApp.mmci Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 38...
Download by Castles TMS User Loader is a tool provided by Castles Technology. It’s the formal way to download file to UPT1000. User may implement their own ways of updating application or files using CTOS API provided, CTOS_UpdateFromMMCI().
Page 40
Select COM port Browse and select mci file or mmci file Setup UPT1000 to enter download mode Press [0] button in Program Manager (PM) Press [1] button to select “1. Download AP“ Press [1] button again to select download via RS232 or USB Castles Technology Co., Ltd.
Page 41
Press “Download” button to start. Note: To download using USB cable, UPT1000 must enable CDC mode. Set USB CDC Mode to Y. SYS SETTINGS Key Sound Exec DFLT AP: Y -AP Name USB CDC Mode: Y FunKeyPWD PMEnterPWD 2: Next Page Castles Technology Co., Ltd.
Note: If user would like to load multiple application, create a new file with extension of “mmci”. Then put the mmci file contents with the list of mci file. MultiApp.mmci Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 42...
Page 43
Insert removable media to UPT1000, and select the removable media type in “Download AP” menu. Download AP Menu Download 1.RS232 or USB 2.USB Disk 3.SD Card Select DW Source o Press [2] button to select USB flash drive. o Press [3] button to select MicroSD card. (Not support) ...
Technology provided a tool named “Secure Key Generator” to perform this task. Run Secure Key Generator Insert Key Card and select smart card reader Enter Key Card PIN, default PIN is “1234”. Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 44...
Page 45
To change Key Card PIN, press “Update PIN” button. If not, please skip this steps. Enter new PIN, enter new PIN again to confirm, then press [Enter] button to change PIN in Key Card. Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 45...
Page 46
To view current key set hash value, goto “Option” and select key. Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 46...
Page 47
Please generate the RSA key by yourself,thelengthof the RSA key set should be 2048 (bits). Copy RSA key components to RSA Key for Kenc in Secure Key Generator. Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 47...
Page 48
Generate second RSA key set for Signature. Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 48...
Page 49
You will need this if you need to create duplicate Key Card. To generate the key CAP for the newly generated user key set, press [Make Key CAP File] button. Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 49...
Page 50
The output file will be located in the Secure Key Generator folder. SecureKeyGenerator key.mci key.cap To update the newly generated key set to Key Card, press [Save to Card] button to write the key set to Key Card. Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 50...
5. Font Management 5.1. Loading New Font Run FontManager.exe Located at C:\Program Files\Castles\Font Manager Select font to download Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 51...
Page 52
Press [Setting] button to configure the type. Select VEGA5000, press [Save] button to save and return font manager. Press [Generate] to create the font file. Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 52...
Page 53
Font.FNT Sign the file using CAP Generator, the type must set to “11 – Linux Font”. Lastly, download the signed file (CAP file) to UPT1000 using Loader. Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 53...
5.2. Custom Font User may create font they preferred for displaying or printing on UPT1000. There are two zone defined: Zone 0x00 ~ 0x7F – ASCII characters, you may replace with the font type preferred or your own language character set.
Page 55
You may need to repeat this steps few times to find the best fit font size. Set the import range from 0 to 127. Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 55...
Page 56
Use the following buttons to adjust the font size to match with expected font size. Removecolum columnonrigh nonleft Add column Removecolumn on left onright Add row on Remove row on bottom Add row Remove on bottom row on top Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 56...
Page 57
After adjust font size, select [File] [Export for MicroElektronika]. Select output format as [mikroC]. Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 57...
Page 58
Remove comment “// Code for char “from offset 0x00 to 0x1F. Remove empty line if found. Then click [Save] button to save to file. Remove Remove Remove Remove Run Font Manager Tool. Click [Setting] button Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 58...
Page 59
Enter the file name, font id, and select the size. Click [Create] button, and select the C file previously created using GLCD Font Generator. Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 59...
Page 60
Select [Font Manager] tab and tick the newly createdfont, and press [Generate] button to export to FNT file. Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 60...
Page 61
Set type to [11 – Linux Font], press [Step 1] button select the FNT file. Then press [Step 2] to generate CAP file. Download the font CAP file to UPT1000. In the application, add following code to display message using the newly created font.
5.3. Using TrueType Font (TTF) TrueType Font (TTF) is supported in UPT1000. You can download the TrueType font to UPT1000 for displaying or printing. Following steps demonstrate how to use “Cooper Black” TrueType font. Copy the TTF file needed to an empty folder.
Page 63
CTOS_LCDTTFSelect("COOPBL.TTF", 0); CTOS_LCDFontSelectMode(d_FONT_TTF_MODE); CTOS_LCDTSelectFontSize(0x203C); // 32x60 CTOS_LCDTClearDisplay(); CTOS_LCDTPrintXY(1, 1, "Hello World"); Or print message using the newly added font. CTOS_PrinterTTFSelect("COOPBL.TTF", 0); CTOS_PrinterFontSelectMode(d_FONT_TTF_MODE); CTOS_LanguagePrinterFontSize(0x203C, 0, 0); // 32x60 CTOS_PrinterPutString("Hello World"); Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 63...
Note: The country code selection is for non-US model only and is not available to all US model. Per FCC regulation, all WiFi product marketed in US must fixed to US operation channels only. ~ END ~ Castles Technology Co., Ltd. Confidential • All Right Reserved. Pg. 65...