background image

 

BEGA220A 

USER MANUAL

 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

 

 

BOLYMIN, INC.  

 

5F, 38 Keya Rd., Daya Dist., Taichung City 42881, Taiwan, R.O.C. 

 

WEB SITE: 

http://www.bolymin.com.tw

   TEL: +886-4-2565-8689 FAX: +886-4-2565-8689 

 

Features:

 

 

  ARM 9 CPU 
  7” 800X480 TFT with Touch Panel @18bit color 
  Wi-Fi    
  10/100Mbps Ethernet LAN 
  RS-232/485/422 
  Audio 
  Host USB1.1 x 1 
  Device USB2.0 x 1 
  SD/MMC card  
  Support WINCE 5.0 OS 
  Support .Net Compact Framework 3.5 

 

Содержание BEGA220A

Страница 1: ... C WEB SITE http www bolymin com tw TEL 886 4 2565 8689 FAX 886 4 2565 8689 Features ARM 9 CPU 7 800X480 TFT with Touch Panel 18bit color Wi Fi 10 100Mbps Ethernet LAN RS 232 485 422 Audio Host USB1 1 x 1 Device USB2 0 x 1 SD MMC card Support WINCE 5 0 OS Support Net Compact Framework 3 5 ...

Страница 2: ... 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 Note This equipment has been tested and found to comply with the limits for a Class A digital device pursuant to part 15 of the FCC Rules These limits are designed to provide re...

Страница 3: ...h FCC part 15 rules in the United States the system must be professionally installed to ensure compliance with the Part 15 certification It is the responsibility of the operator and professional installer to ensure that only certified systems are deployed in the United States The use of the system in any other combination such as co located antennas transmitting the same information is expressly f...

Страница 4: ... NEW VERSION 2010 05 17 Spec 02 pp 47 Add evc4sp4 pp43 driver download URL pp33 0 9v etc remove SRAM 2010 10 20 Rev 02a Add Troubleshooting Chapter 2010 11 3 Add 02b Remove SPI update SDK download URL Update address 2010 12 10 Rev 03 Reformat bookmark support 2011 1 14 Rev ...

Страница 5: ... of ADC_GPIO Bus 36 2 7 2 GPIO Test 37 2 7 3 ADC test 40 2 7 3 1 ADC test set up 40 2 7 3 2 ADC test procedure 41 3 BEGA220A PROGRAMMING GUIDE 43 3 1 TRANSFER FILE BETWEEN BEGA220A AND PC 44 3 1 1 Connect PC and BEGA220A 44 3 1 2 Transfer Files 48 3 2 PROGRAMMING FOR BEGA220A 49 3 2 1 Setup Development environment 49 3 2 2 Create New Project 50 3 3 SERIAL PORT FUNCTION 53 3 3 1 Overview 53 3 3 2 S...

Страница 6: ...BEGA220A USER MANUAL 6 1 General Information This chapter provides basic information about Bolymin s BEGA220A module and it consists of 1 1 Introduction 1 2 Specifications 1 3 Mechanical Specifications ...

Страница 7: ...e BEGA220A family Order Information Part No RS 485 RS 422 WLAN 20 PIN EXT BUS IOX12 ADCX6 BEGA220A BEGA220A1 BEGA220A2 BEGA220A3 BEGA220A4 BEGA220A5 BEGA220A6 BEGA220A7 1 1 1 Packing Content A complete package should contain all of the following BEGA220A module Female USB to mini USB cable with 20cm length CB04P201LC01 220 communication cable with 3M 40 pin connector and length100cm CB40P1000LC01 ...

Страница 8: ...operation on BEGA220A No Name Description 2 Power socket Use 12V 3A power with a spec of DC Plug_in 2 5 socket 3 ADC_GPIO Bus GPIOx12 ADCx6 4 Communication Bus Device USB 2 0 RS 232x3 RS485 422x1 Optional 5 Host USB 1 1 Connect to USB 1 1 peripheral keyboard mouse etc 6 RJ 45 Connect to Ethernet network ...

Страница 9: ...BEGA220A USER MANUAL 9 No Name Description 7 Wi Fi Antenna socket Connect Wi Fi antenna 8 SD Card socket Connect SD and MMC Card 4GB max ...

Страница 10: ...onal Blocks CPU ARM 400MHz NAND FLASH DDR II SRAM EEPROM SD MMC Card Touch IF x4 Wi Fi 10 100 Ethernet I O x 12 KEYx12 DC DC AMP Dual CH 800 480 TFT LCD RS485 422 RS232 x3 SPI Device USB 2 0 Audio codec COMMUNICATION BUS 40 PIN EXT BUS 20 PIN ADC x 6 Host USB 1 1 ...

Страница 11: ...SB 1x USB device USB2 0 for Active Sync only 1XUSB host USB1 1 GPIO Support programmable 12 x IO sharing with Key board interface ADC Support 6 x channel 12 bit high speed A D converter LAN High performance 16 bit 10 100 Ethernet controller Audio Dual channels 2 watts speaker output Wi Fi IEEE 802 11b g Wi Fi compliant OS WinCE 5 0 default preloaded with Net CF3 5 LCD Size 7 TFT LCD LCD Resolution...

Страница 12: ...BEGA220A USER MANUAL 12 1 3 Mechanical Specifications 1 3 1 Module Specifications ...

Страница 13: ...n Testing This chapter provides installation information for BEGA220A module and it consists of 2 1 Connect power 2 2 Connect SD MMC Card 2 3 Connect Host USB 2 4 Connect LAN 2 5 Connect Wi Fi 2 6 Connect Communication Bus 2 7 Connect ADC_GPIO Bus ...

Страница 14: ...BEGA220A USER MANUAL 14 2 1 Connect Power User may prepare a power adaptor with an output of DC12V 3A and a 2 5 as illustrated DC Plug_in 2 5 ...

Страница 15: ...strated and eject card only when it s not at reading mode Note that there is write protection toggle switch on the card and make sure it s not write protected so data can be written into the card WinCE will then detect the SD MMC Card and appears a storage card icon as follows ...

Страница 16: ...BEGA220A USER MANUAL 16 2 3 Connect Host USB Users may connect host USB to any USB1 1 device for example mouse keyboard USB storage through a mini USB cable as illustrated ...

Страница 17: ...A USER MANUAL 17 2 4 Connect to LAN STEP1 Connect to LAN port as illustrated STEP2 Click on Start Setting Networking and Dial up connections to set up a network STEP3 Select DM9ISA1 to set up a LAN parameters ...

Страница 18: ...BEGA220A USER MANUAL 18 STEP4 Select static IP or DHCP IP as appropriate STEP5 Select Internet Explorer STEP6 Enter URL at the Address box ...

Страница 19: ...BEGA220A USER MANUAL 19 STEP7 Enter URL at the Address box ...

Страница 20: ...BEGA220A USER MANUAL 20 2 5 Connect Wi Fi STEP1 Screw up the Antenna on BEGA220A as illustrated STEP2 Click on the network icon as highlighted to enter the wireless setup ...

Страница 21: ...STEP3 Click on Wireless Information tab to set up wireless parameters STEP4 Click on Add New to add a new wireless connection STEP5 Set up SSID WEP IEEE802 1X Authentications parameters as appropriate on BEGA220A then click OK ...

Страница 22: ...r SSID as appropriate then click Connect to enable wireless connection of BEGA220A The connection status is shown right beneath the SSID selection box STEP7 Select IP Information tab and click on renew to refresh IP address STEP8 Select Internet Explorer on desktop ...

Страница 23: ...BEGA220A USER MANUAL 23 STEP9 Enter URL address in the Address box STEP10 then the browser will surf to the URL as specified ...

Страница 24: ...GND Orange White 8 TXD1T Orange 28 RXD1T Orange Black 9 RTS1T Yellow 29 CTS1T Yellow Black 10 VBUS Green 30 GND Green Black 11 TXD2T Blue 31 RXD2T Blue Black 12 NC X 32 GND Red White Red Green 13 TXD3T Purple 33 RXD3T Purple Black 14 VDD2 Grey 34 GND2 Orange Blue 15 A 422R White 35 A 422R White Black 16 A 422T A 485D Pink 36 A 422T A 485D Pink Black 17 VDD2 Grey Black 37 GND2 Red Blue 18 NC X 38 G...

Страница 25: ...1 Connect Serial Port 1st set of RS 232 Debug Port for update only Connect 1st set of RS 232 on BEGA220A to DB9 female on PC s COM port This RS 232 port is used as debug port ONLY with a signal level of 12v Pin Assignment of RS 232 RS 232 DB9 Female BEGA220A Pin No Pin Name Pin No Pin Name 1 DCD 2 TD 8 TXD1T 3 RD 28 RXD1T 4 DTR 5 GND 27 GND 6 DSR 7 CTS 29 CTS1T 8 RTS 9 RTS1T 9 RI ...

Страница 26: ...S 232 to PC s COM port BEGA220A reserves COM3 port for the 2nd set of RS 232 and its signal level is at 12 v Pin Assignment of RS 232 RS 232 DB9 Female BEGA220A Pin No Pin Name Pin No Pin Name 1 DCD 2 TD 13 TXD3T 3 RD 33 RXD3T 4 DTR 5 GND 32 GND 6 DSR 7 CTS 8 RTS 9 RI ...

Страница 27: ...t of RS 232 which is defaulted to COM4 on BEGA220A to DB 9 COM port of PC The signal level runs at 12v Pin assignment of RS 232 RS 232 DB9 Female BEGA220A Pin No Pin Name Pin No Pin Name 1 DCD 2 TD 11 TXD2T 3 RD 31 RXD2T 4 DTR 5 GND 30 GND 6 DSR 7 CTS 8 RTS 9 RI ...

Страница 28: ...nect Pin14 to Pin 12 and Pin 34 to Pin 32 otherwise connect Pin 14 and 34 to a voltage of 5 10 voltage 4 75 5 25v RS 485 Option COM1 BEGA220A support one set of RS 485 serial interface and defaulted to COM1 port During connectivity test it is applicable to use a RS 232 to RS 422 485 converter board to connect to PC s COM port Pin assignment of RS 485 Pin No Pin Name 37 GND2 16 A 485D 36 A 485D Not...

Страница 29: ...un the hyper terminal program to test if receiving and sending function normally Here is the step guide PC set up STEP1 Run hyper terminal program under start program accessories communication then enter a name for this session and click ok STEP2 Select PC s COM port in Connect using box to connect to serial port on BEGA220A Then click OK ...

Страница 30: ...l down Bits per second to set up communication speed usu Ranges from 9600 to 115200 Make sure the baud rate value is identical to that on BEGA220A Select None for Flow control then click Apply and click OK Bits per second Flow control ...

Страница 31: ...BEGA220A USER MANUAL 31 BEGA220A set up procedure STEP1 Select My Device on BEGA220A STEP2 Select Windows folder STEP3 Run SerialPortTest ...

Страница 32: ...priate Pull down at Baud Rate ranged between 9600 to 115200 and use the same value at both BEGA220A and PC end Then click on Open port to activate a serial connection STEP6 If everything goes right you will see the pop up window as follows Click on OK to proceed Serial port select BaudRate select Open port ...

Страница 33: ...3 STEP7 Enter text at Tx window and click on Send Tx button STEP8 At PC end you will see the same text entered echoed back STEP9 Enter some text at PC end and note an echo of the text will appear at RX window at BEGA220A end ...

Страница 34: ... to communicate with a PC through ActiveSync software for data sync Here illustrates the connection of Device USB Please refer to chapter 3 1 1 for ActiveSync operation Pin assignment of Device USB USB BEGA220A Pin No Pin Name Pin No Pin Name 1 VBUS 10 VBUS 2 D 26 USBDN 3 D 6 USBDP 4 GND 30 GND ...

Страница 35: ...t to 8 2W speaker Connect speakers as illustrated to support audio playback 1st set of Speaker Pin Assignment of Speaker Speaker BEGA220A Pin No Pin Name Pin No Pin Name 1 3 DSPC1 2 23 DSPC2 2nd set of peaker Pin Assignment of Speaker Speaker BEGA220A Pin No Pin Name Pin No Pin Name 1 4 DSPC3 2 24 DSPC4 ...

Страница 36: ...T1 Orange 12 ADCT4 Blue Black 3 ADCT2 Brown Black 13 ADCT5 Purple 4 GND Orange Blac k 14 GND White 5 KEY1 Red 15 KEY6 Purple Black 6 KEY2 Yellow 16 KEY7 White Black 7 KEY3 Red Black 17 KEY8 Grey 8 KEY4 Yellow Black 18 KEY9 Light Blue 9 KEY5 Green 19 KEY10 Grey Black 10 KEY11 Green Block 20 KEY12 Light blue Black ...

Страница 37: ... 4 The typical signal length is around 10 to 15 cm and the rated voltage is as follows Item Symbol Min Typ Max Unit High Level Input Voltage VIH 2 3 3 6 V Low Level Input Voltage VIL 0 3 0 9 V High Level Output Voltage VOH 3 1 3 3 V Low Level Output Voltage VOL 0 2 V Test Procedure STEP1 Select My Device on BEGA220A STEP2 Select Windows folder ...

Страница 38: ...BEGA220A USER MANUAL 38 STEP3 Run GpioTest_220A STEP4 Here is the initial screen of GpioTest_220A and defaulted to test all KEYs as inputs STEP5 A green light at KEY stands for a high input signal ...

Страница 39: ...20A USER MANUAL 39 STEP6 To test output pull down the Input and change the KEY to output STEP7 While KEY is defined as OUTPUT as step6 check on red circle to the left of KEY to generate a high output voltage ...

Страница 40: ...ting connect ADCT0 port as illustrated Use a Vdd of 3 3 volt and voltage divider to limit maximum ADCT0 to be 1 6 volt ADC readout as 4095 12 bit unsigned Then run the ADC test by using test program as BEGA220A provided Note that the maximum voltage of ADCTO should not exceed 1 6 volt ...

Страница 41: ...BEGA220A USER MANUAL 41 2 7 3 2 ADC test procedure STEP1 Select My Device on BEGA220A STEP2 select Windows folder STEP3 Run ADCTest program by double clicking the icon ...

Страница 42: ...AL 42 STEP4 ADCTest initial screen is as follows STEP5 Click Start button to start testing ADC STEP6 Adjust variable resistor VR and observe the changes in read out of ADC Port value Click on Stop to finish the ADC test ...

Страница 43: ...ion from BEGA20A to PC and how to use software to control serial port GPIO ADC and Backlight This chapter consists of the following 3 1 Transfer File Between BEGA220A and PC 3 2 Programming for BEGA220A 3 3 Serial Port Function 3 4 GPIO Control 3 5 A D Converter and Backlight Adjustment ...

Страница 44: ...o restart PC STEP 2 Connect desktop PC and BEGA220A by USB cable Below picture shows the hardware connection between desktop PC and BEGA220A for file transfer Please note that the USB cable should plug into the connector of device USB wiring from the 40 pin communication bus Below table shows the pin assignment of device USB on the 40 pin external bus USB connector 40 pin communication bus of BEGA...

Страница 45: ...driver by following procedures 1 Select the advance item on below dialog and click Next button 2 Click Browse button and then select the directory which includes USB device driver file of BEGA220A Click Next button The following download URL contain all needed driver for 220AActive Sync Samgsung drivers http www bolymin com tw manual dnw rar Directory which includes USB device driver file of BEGA2...

Страница 46: ...BEGA220A USER MANUAL 46 3 Click Continue button 4 Click Finish button Now BEGA220A may connect to PC by ActiveSync ...

Страница 47: ...BEGA220A USER MANUAL 47 5 Select No and click Next button to cancel the synchronization ...

Страница 48: ...onnecting PC and BEGA220A below screen will display The green cycle means the connection between PC and BEGA220A has been built Execute Explore program and move into the folder of BEGA220A you can transfer files between PC and BEGA220A Folder of BEGA220A ...

Страница 49: ... 4 for eVC 4 0 and here is the download URL http download microsoft com download a 7 3 a735c7fb dcbd 429f 9090 d09b3b15d3fa e vc4sp4 exe After the patch the eVC sp4 version is 4 00 1610 0 3 Connect BEGA220A and Desktop PC by procedures in section 3 1 2 4 Install SDK of BEGA220A provided by Bolymin The installation file may be found in the product CD Here is the download URL http www bolymin com tw...

Страница 50: ...ext section directly You may create a new project for your application by following steps STEP 1 Execute eVC 4 0 sp4 STEP 2 Select File New function STEP 3 Select your application type setup the location and name of your project and Please select WCE MFC AppWizard exe as application type Application type Project name Project location Only select ARMV4I as CPU type ...

Страница 51: ...BEGA220A USER MANUAL 51 STEP 4 Select Dialog based and language setting Click Next button STEP 5 Click Next button ...

Страница 52: ... STEP 6 Click Next button STEP 7 Click Finish button STEP 8 Now you can add your codes into this new project You can get more development information from below MSDN website http msdn microsoft com en us library bb847963 aspx ...

Страница 53: ...orts in BEGA220A The following table lists the function of each serial port Name Function Comment COM1 RS 422 or RS485 port Option COM3 Used by application program 2 wire RS 232 COM4 Used by application program 2 wire RS 232 Debug port Internal used May not open by application program ...

Страница 54: ...pt of class CSerialPort The object of class CSerialPort will handle all data transfer and receive of opened serial port Once there is any data is received by the opened serial port CSerialPort object will send a user defined message to user defined window which should be main window of application program Below picture shows the flow Window of user application CSerialPort object Call Send function...

Страница 55: ...fail Send Function Send specified data by this serial port Syntax BOOL Send LPCVOID buf_ptr DWORD data_len Parameters buf_ptr Memory pointer of data will be sent data_len Length of data will be sent UNIT byte Return value TRUE Send data successful FALSE Send data fail SetCommMsg Function CSerialPort object will send a receive message to specified window User need to call this function to set the r...

Страница 56: ... to catch the receive message STEP 1 Define a receive message in your code as below const UINT WM_CMD_OK WM_USER 1 STEP 2 Declare a message processing function in the window that will process receive message STEP 3 Create message mapping STEP 4 Implement the receive message processing function ...

Страница 57: ...EN_COM OnOpenCom ON_BN_CLICKED IDC_CLOSE_COM OnCloseCom ON_BN_CLICKED IDC_SEND OnSend ON_BN_CLICKED IDC_CLEAR_SEND OnClearSend ON_BN_CLICKED IDC_CLEAR_REC OnClearRec ON_WM_DESTROY AFX_MSG_MAP ON_MESSAGE WM_CMD_OK OnCommRecv END_MESSAGE_MAP CSerialPortDlg message handlers Select serial port and setup its parameter values Open Close selected serial port Data will be sent by selected serial port Rece...

Страница 58: ...al port COM1 m_ComboStop SetCurSel 0 Define stop bit 1bit m_ButClose EnableWindow FALSE Close Button is disable m_strRecDisp _T m_cSendBuffer new char 60 UpdateData FALSE m_pSerialPort new CSerialPort m_pSerialPort SetCommMsg m_hWnd WM_CMD_OK return TRUE Implement function used to process receive data from serial port LRESULT CSerialPortDlg OnCommRecv WPARAM wParam LPARAM lParam CString tmp char b...

Страница 59: ...ed to open selected serial port void CSerialPortDlg OnOpenCom UpdateData TRUE CString strPort PorTbl m_ComboPort GetCurSel DWORD baud BaudTbl m_ComboBaud GetCurSel DWORD databit DataBitTbl m_ComboData GetCurSel BYTE stopbit StopBitTbl m_ComboStop GetCurSel BYTE parity ParityTbl m_ComboParity GetCurSel BOOL ret m_pSerialPort Open strPort baud databit stopbit parity if ret FALSE MessageBox _T Open s...

Страница 60: ...rtDlg OnSend UpdateData TRUE int len m_strSendEdit GetLength for int i 0 i len i m_cSendBuffer i char m_strSendEdit GetAt i BOOL status m_pSerialPort Send m_cSendBuffer len if status MessageBox _T Can t write string to COM _T Error MB_OK Destory function of serial port test dialog void CSerialPortDlg OnDestroy CDialog OnDestroy m_pSerialPort Close delete m_pSerialPort delete m_cSendBuffer Close cu...

Страница 61: ...function STEP 4 Execute GPIO control functions by the address got at STEP3 Below is a simple example code to use the GPIO control functions variable declaration HINSTANCE m_hModule BOOL m_pGetGPInput int void m_pSetGPOutput int BOOL BOOL m_pIsOutput int void m_pSetIOAttribute int BOOL m_hModule LoadLibrary _T pGPIO_220A dll m_pGetGPInput BOOL int GetProcAddress m_hModule _T GetGPInput m_pSetGPOutp...

Страница 62: ...value definition value New value of specified GP output TRUE Set specified GP output to HIGH FALSE Set specified GP output to LOW Return value None IsOutput Function Check if the specified GPIO is output or not Syntax BOOL IsOutput int gpio_index Parameters gpio_index The index of specified GPIO Refer to section 3 4 3 for the value definition Return value TRUE The specified GPIO is output FALSE Th...

Страница 63: ...put KEY5 GIO_KEY6 User defined general purpose input output KEY6 GIO_KEY7 User defined general purpose input output KEY7 GIO_KEY8 User defined general purpose input output KEY8 GIO_KEY9 User defined general purpose input output KEY9 GIO_KEY10 User defined general purpose input output KEY10 GIO_KEY11 User defined general purpose input output KEY11 GIO_KEY12 User defined general purpose input output...

Страница 64: ...ntrol functions by GetProcAddress function STEP 4 Execute control functions about A D converter by the address got at STEP3 STEP 5 Call FreeLibrary function to free the reference of CtrlFunc_220A dll while ending the application program Below is a simple example code to use the control functions about A D converter and backlight adjustment variable declaration HINSTANCE m_hModule BOOL m_pInitADC v...

Страница 65: ...tADC Parameters None Return value TRUE Initial A D converter successfully FALSE Fail to initial A D converter ReadADC Function Read A D converted data from specified A D converter channel Syntax Int ReadADC int adc_channel Parameters adc_channel The index of specified A D converter channel ADC_CHANNEL0 ADC_CHANNEL5 Return value A D converted data from specified A D converter channel ...

Страница 66: ...light controller successfully FALSE Fail to initial backlight controller GetBrightness Function Get current brightness value of backlight Syntax int GetBrightness Parameters None Return value Current brightness value of backlight 0 100 SetBrightness Function Set brightness value of backlight Syntax Int SetBrightness int new_value Parameters new_value New brightness value of backlight 0 100 0 Turn ...

Страница 67: ... reboot A2 There are two folders available as non volatile memory which is partitioned from flash memory Note that on embedded system the whole OS is running on 64MB DDR2 SDRAM meaning most directories seen such as temp windows my documents etc are all volatile will be gone after reboot Only PocketMory and PocketMory1 are good for permanent data storage Click on My Device icon on desktop to bring ...

Страница 68: ...BEGA220A USER MANUAL 68 End of BEGA220A User Manual ...

Страница 69: ...UT FURTHER NOTICE TO ANY PRODUCTS HERIN TO IMPROVE RELIABILITY FUNCTION OR DESIGN BOLYMIN INC DOES NOT ASSUME ANY LIABILITY ARISING OUT OF THE APPLICATION OR USE OF ANY PRODUCT OR CIRCUIT DESCRIBED HERIN NEITHER DOSE IT CONVEY ANY LICENSE UNDER ITS PATENT RIGHTS NOR THE RIGHTS OF OTHERS CUSTOMERS ARE ADVISED TO CONSULT WITH BOLYMIN INC OR ITS COMMERCIAL DISTRIBUTORS BEFORE ORDERING BOLYMIN INC 5F ...

Отзывы: