Revision History Version Date Descriptions Nov 18, 2012 Initial creation. 1.01 May 12, 2014 Add the terminal starting up description May 12, 2014 Add the description of GDB via USB Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 3...
1.1. Type of Terminal There are two types of VEGA5000S terminal, portable and countertop. The major different is portable type can be battery operated. Portable type is designed as two pieces of hardware, handset and base unit.
Page 7
To start up the terminal,portable type needs to press “F1” key butcountertop typewill auto start when the power connector is connected with adapter. Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 7...
2. Hardware Setup (Portable) 2.1. Parts of the Terminal Front (Portable and Countertop) VEGA5000S 1. LCD Display 9. Smart Card Reader ColorTFT : VEGA5000S 10. LED 2. ProgrambleFunction Keys Left : Green F1 : Power keyfor PT Middle : Orange only.(Press 3s)
Page 10
Side VEGA5000S Portable 22. Power Connector 23. USB Port Base (Portable) 24. Base Connector 29. Com port 3 25. Base LED 30. Modem - Line Port 31. Modem – Tel Port 26. Power Connector 27. Com port 1 32. Ethernet Port 28.
SAM 1 & 2 & 3: Gold contact at upper side of card and facing down. SAM 4 : Gold contact at upper side of card and facing up. Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 12...
Step 1: Push paper roll box handle. Step 2: Gentle open paper roll cover. Step 3: Insert paper roll as direction showed. Paper specification Width: 57mm Outside diameter: 40mm Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 13...
SIM 1 & 2: Gold contact at upper side of card and facing down. Countertop SIM 1 & 2: Gold contact at lower side of card and facing down. Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 14...
Step 2: Insert Micro SD memory card. Portable Micro SD : Gold contact at lower side of card and facing right. Countertop Micro SD : Gold contact at upper side of card and facing up. Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 15...
Press [1] button to select source as RS232 or USB connection and enter ULD download mode. Press [2] button to select source as USB disk. Press [3] button to select source as SD card. Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 17...
7.Power Off Press [3] button to enter Memory Status menu. Memory Status Menu MEMORY STATUS --FLASH Memory-- Total: 31616KB Used : 22640KB --SDRAM Memory-- Total: 31872KB Used : 10908KB Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 19...
Enable (Y) or disable (N) console debug mode. Debug Port Serial port for console debug. Mobil AutoON <TBC> GDB Mode Enable (Y) or disable (N) GDB mode. [VEGA5000S only] GDB Timeout GDB connection timeout. [VEGA5000S only] GDB Channel GDB connection channel. [VEGA5000S only] ETHER IP/PORT GDB Ethernet connection setting.
Page 21
Press [OK] button to change the setting value. Press [] button to toggle Y N Y. Press [F2] button to previous page. Press [F3] button to next page. Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 21...
Page 22
Press [] button to toggle Y N Y. Press [F2] button to previous page. Press [F3] button to next page. Page 4 (VEGA5000S only) SYS SETTINGS GDB Mode GDB Timeout: 60s GDB Channel ETHER IP/PORT 192.120.100.222...
Press [F2] button to enter Communication Test Menu. Press [F3] button to power off. Press [] button to next page. Note: Default password for changing RTC is 8418. Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 23...
Page 24
Press [5] button to diagnose USB. Press [6] button to diagnose modem. Press [7] button to diagnose GPRS. Press [8] button to diagnose all, item 1 to 7. Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 24...
Power off terminal. 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 terminal. Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 26...
FunKey Password New Password: **** Confirm Password **** Enter new password. Enter new password again to confirm. FunKey Password New Password: **** Confirm Password **** PWD Changed OK Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 27...
1.Connect Server 2.SetConfig 3.DelConfig Press [1] button to connect to TMS server. Press [2] button to set TMS configuration. Press [3] button to delete TMS configuration. Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 29...
ULD User Key Encryption Key (RSA) ULD User Signature Key (RSA) For VEGA5000S, 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 32
CAPs without the user permission. ULD Manufacturer Keys Unsigned Kernel Kernel Module CAP Generator CAPs ULD User Keys Unsigned Kernel Signed Kernel CAPs CAP Signing Tool CAPs Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 32...
ULD User Keys, they have to use their original ULD User Keys with the new ULD User Keys to generate a KEY CAP. Original ULD Manufacturer/User Keys New ULD User KEY CAP Key CAP Generator Manufacturer/User Keys Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 33...
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 terminal. Castles Technology provided a tool named “CAP Signing Tool” to perform this task. The CAP Signing Tool is located at:...
Page 35
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. Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 35...
Share library Share files System setting Key CAP (Manufacturer ULD Key Set) Castles Technology provided a tool named “CAP Generator” to perform this task. The CAP Generator is located at: VEGA5000S C:\Program Files\Castles\VEGA5000S\tools\CAPG (KeyCard) Run CAP Generator Confidential •...
Page 37
Insert Key Card and select smart card reader Enter Key Card PIN Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 37...
Page 38
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. Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 38...
Page 39
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 Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 39...
Download by user application Download by Castles TMS User Loader is a tool provided by Castles Technology. It’s the formal way to download file to terminal. User may implement their own ways of updating application or files using CTOS API provided, CTOS_UpdateFromMMCI().
Page 41
Press [F1] button in Program Manager (PM) Press [1] button to select “1. Download AP“ Press [1] button again to select download via RS232 or USB Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 41...
Page 42
Note: To download using USB cable, terminal 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 : N F3: Next Page Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 42...
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 Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 43...
Page 44
Select DW Source o Press [2] button to select USB flash drive. o Press [3] button to select MicroSD card. Finally, terminal will process the file “vxupdate” folder. Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 44...
Technology provided a tool named “Secure Key Generator” to perform this task. For VEGA5000S Run Secure Key Generator Insert Key Card and select smart card reader Enter Key Card PIN, default PIN is “1234”. Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 45...
Page 46
To change Key Card PIN, press “Update PIN” button. If not, please skip this steps. o Enter new PIN, enter new PIN again to confirm, then press [Enter] button to change PIN in Key Card. Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 46...
Page 47
Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 47...
Page 48
To view current key set hash value, goto “Option” and select key. Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 48...
Page 49
To generate new user key set o Run RSA Key Generator o Select Key Length as 2048 (bits), then press [Generate] button to generate the RSA key set. Result: Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 49...
Page 50
Copy RSA key components to RSA Key for Kenc in Secure Key Generator. o Generate second RSA key set for Signature. Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 50...
Page 51
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. Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 51...
Page 52
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. Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 52...
5. Font Management 5.1. Loading New Font Run FontManager.exe Located at C:\Program Files\Castles\Font Manager Select font to download Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 53...
Page 54
Press [Setting] button to configure terminal type. Select VEGA5000, press [Save] button to save and return font manager. Press [Generate] to create the font file. Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 54...
Page 55
Font.FNT Sign the file using CAP Generator, the type must set to “11 – Linux Font”. Lastly, download the signed file (CAP file) to terminal using Loader. Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 55...
Zone 0x80 ~ 0xFF – Free to use, you may use for symbols. Following steps demonstrate how to create a 12x24 font. Run GLCD Font Creator Select [File] [New Font] [Import An Existing System Font] Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 56...
Page 57
You may need to repeat this steps few times to find the best fit font size. Set the import range from 0 to 127. Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 57...
Page 58
Use the following buttons to adjust the font size to match with expected font size. Removecolum nonleft columnonrigh Add column Removecolumn on left onright Add row on Remove row on bottom Add row Remove on bottom row on top Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 58...
Page 59
After adjust font size, select [File] [Export for MicroElektronika]. Select output format as [mikroC]. Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 59...
Page 60
“ 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 Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 60...
Page 61
Enter the file name, font id, and select the size. Click [Create] button, and select the C file previously created using GLCD Font Generator. Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 61...
Page 62
Select [Font Manager] tab and tick the newly creately font, and press [Generate] button to export to FNT file. Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 62...
Page 63
In terminal application, add following code to display message using the newly created font. CTOS_LanguageConfig(0xA000,d_FONT_12x24,0,d_FALSE); CTOS_LanguageLCDSelectASCII(0xA000); CTOS_LCDTPrintXY(1, 1, "ABCDEFGH"); Or print message using the newly created font. CTOS_LanguagePrinterSelectASCII(0xA000); CTOS_PrinterPutString("ABCDEFGH"); Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 63...
5.3. Using TrueType Font (TTF) TrueType Font (TTF) is only supported in VEGA5000S terminal.You may download the TrueType font preferred to terminal for displaying or printing. Following steps demonstrate how to use “Cooper Black” True Type font. Copy the TTF file needed to a empty folder.
Page 65
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"); Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 65...
6. Advance Features 6.1. VEGA5000S GNU Project Debugger (GDB) Developers debug programs directly VEGA5000Sterminal. 6.1.1. About GDB GDB, the GNU Project debugger, allows you to see what is going on `inside' another program while it executes -- or what another program was doing at the moment it crashed.
F2:Prev Page Press [] button to select setting. Press [OK] button to change the setting value. Press [] button to toggle Y N Y. Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 67...
GDB. Step 1: Run Castles CTOS Development Suite Step 2: Open project to debug Step 3: Set project configuration to “Debug” Step 4: Rebuild the project. Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 68...
Page 69
SDK IDE until timeout. Local IP: Open Debug Mode 192.168.0.71 Press OK Confirm? Listen Port: 5000 Y:OK Listening… 59 Step 7: In SDK IDE, from Debug menu select “Attach Debugger…”. Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 69...
Page 70
1. Forexample, if the PC port that the terminal connects with is COM3, pleaseinput“remote /dev/ttyS2” on the “Target” editor.Andselect your application from the “Project” combobox. When finishing, press‘OK’ button to connect with the terminal. Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 70...
Page 71
Step 9: Press OK. After successful connected to terminal, the debug menu will beenable. User may use breakpoint or use “Step Over” for tracing. Confidential • All Right Reserved. Castles Technology Co., Ltd. Pg. 71...
2. When inserting or swiping the cards, there will be some distance between the terminal and human body, rather than be appressed to the human body. 3. The VEGA5000S would not be put into the pocket or tie around the waist. ~ END ~ Confidential •...
Page 73
FCC Regulations This device complies with part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) This device may not cause harmful interference, and (2) this device must accept any interference received, including interference that may cause undesired operation. Changes or modifications not expressly approved by the party responsible for compliance could void the user‘s authority to operate the equipment.
Need help?
Do you have a question about the VEGA5000S and is the answer not in the manual?
Questions and answers