Download Print this page

Advertisement

Quick Links

FES91W Series
User's Manual (Preliminary)
http://www.forenex.com.tw
-1-

Advertisement

loading
Need help?

Need help?

Do you have a question about the FES91W Series and is the answer not in the manual?

Questions and answers

Summary of Contents for Forenex FES91W Series

  • Page 1 FES91W Series User’s Manual (Preliminary) http://www.forenex.com.tw...
  • Page 2 Customer: Customer Approved By: Comment: Module No: Document No: Version: V2.3 Arthur Sung Benson Wang Hank Kuo Approved By Checked By Prepared By http://www.forenex.com.tw...
  • Page 3 1.Add Section 2-4.2 Serial port Rs485 test 2.Add Section 4-5.3 Example code V2.2 2013-01-13 1.Add PCL Printer Driver V2.3 2013-06-04 2.Add SPI Write and Read of the lastTransfer parameter (page 42-43). 3. Re-define the pin assignment of J7 & J9 http://www.forenex.com.tw...
  • Page 4 ……………………………………… Specifications with FES91W series 1-1. Function Block Diagram 1-2. System Specifications 1-3. Mechanical Dimension ……………………………………… System Installations with FES91W series 2-1. Power Plugging 2-2. Touch installation 2-3. Debug Port installation 2-4. Serial port installation 2-4.1 Serial port Rs232 test 2-4.2 Serial port Rs485 test...
  • Page 5 4-5 Serial port Control 4-5.1 Overview 4-5.2 Member function of class SerialPort 4-5.3 Example code 4-6. SPI (Serial Peripheral Interface) Control 4-6.1 How to control SPI for FES91W ***The content of this document is subject to be change without notice*** http://www.forenex.com.tw...
  • Page 6 FES91Wxx-080 1024x768 FES91Wxx-104 Packing List ● •FES91W series device with metal housing. •Download Cable: USB-A male to mini-5p USB with 70cm length. Numbering: WYUSBMINI500900 •Debug cable: header housing (2x5pin) to D_sub9 female connector. Numbering: WH810B090173 •Utility software CD (including example program code).
  • Page 7 1.Specifications (FES91W series) 1.1 Function Block Diagram 10/100 Ethernet Wi-Fi (WLAN) RJ45 Option ADC x 4 DDR2 GPIO x 16 NAND Flash PWM x 2 (ARM926EJ/400MHz) SD/MMC Card SPI0 Atmel AT91SAM9M10 SPI1 EEPROM COM4 Touch Audio COM3 COM2 DC/DC 4-wire...
  • Page 8 ■ COM4 (3 wire RS232 only). IEEE802.11 b/g/n, WiFi compliant (under development with an WiFi option external dongle) CAN BUS option (under development with an external module) Power Supply DC9V ~ 28V single power input. Operating -20 ℃ ~ 80℃ Temperature http://www.forenex.com.tw...
  • Page 9 1.3 Mechanical Dimension *Dimension Notice • FES91xxx_080 with metal housing : 193.2(mm) x 145.8(mm) x 36.3(mm). • FES91xxx_070 with metal housing : 178(mm) x 108(mm) x 34.4(mm). http://www.forenex.com.tw...
  • Page 10 2. System installation (FES91W series) 2.1 Power Plugging Power jack 9 ~ 28V/1A equivalent equivalent 2.2 Touch installation The following steps show how to use Coordinate calibration. STEP 1. On Windows CE desktop, click on “My Device”. STEP 2. Select “NandFlash” folder.
  • Page 11 STEP 3. Select the “forenex-ap” folder. STEP 4. Click Touch icon, then Touch AP will display. STEP 5. Click “Adjust” button. http://www.forenex.com.tw -11-...
  • Page 12 This is WinCE Touch Calibration running in screen. After using “Touch Calibration”, system need reboot over suspend to store new touch parameter. http://www.forenex.com.tw -12-...
  • Page 13 Using HyperTerminal on PC end can read information from FES91W or input command to FES91W. ●It was necessary that PC connect with FES91W. The following steps show how to setup HyperTerminal on PC end. STEP 1. Run the HyperTerminal on PC. http://www.forenex.com.tw -13-...
  • Page 14 ●To find applicable COM port, click Control panel –> system –> hardware –> device manager –> COM&LPT ports. STEP 3. Port Settings Bits per second (or Baud rate): 115200, Data bits: 8, Parity: None, Stop bits: 1, Flow control: None. Click Apply, and then OK. http://www.forenex.com.tw -14-...
  • Page 15 When PC connects to FES91W with cable, reboot FES91W, PC-HyperTerminal will display information from FES91W. STEP 4. Save information from FES91W On HyperTerminal, click Transfer -> Capture Text. Then select where to save the information and name it and click Start. http://www.forenex.com.tw -15-...
  • Page 16 COM2 be dedicated to work with mode RS485/422. ●Both working mode of RS232 and RS485/422 can not be enabled in simultaneously. COM2 D_SUB9/male COM2 PC_Rx PC_Tx RTS1 PC_CTS CTS1 PC_RTS A1/Y1 PC_A/Y B1/Z1 PC_B/Z PC or equivalent http://www.forenex.com.tw -16-...
  • Page 17 COM3 D_SUB9/male PC_Rx PC_Tx PC_A/Y A2/Y2 PC or equivalent B2/Z2 PC_B/Z COM4 ●The port (COM4) provided 3-wire RS232 on two pin headers of extension port2. COM4 Extension Port2 Header 2x7pin, pitch 2.0mm COM4 PC_Rx PC_Tx PC or equivalent http://www.forenex.com.tw -17-...
  • Page 18 The following steps show how to set HyperTerminal at PC end. STEP 1. Run the hyper-terminal on PC. STEP 2. Select the applicable COM port, click OK. ●To find applicable COM port, click Control panel –> system –> hardware –> device manager –> COM&LPT ports http://www.forenex.com.tw -18-...
  • Page 19 ”Flow control” settings “None”. Click on apply, then OK. ●Steps of PC end is complete. Below steps guide is use Serialport-ap at Windows CE. STEP 1. On Windows CE desktop, click on “My Device”. STEP 2. Select “NandFlash” folder. http://www.forenex.com.tw -19-...
  • Page 20 STEP 3. Select “Forenex-ap” folder. STEP 4. Click SerialPort icon This is SerialPort-ap running On Windows CE desktop. http://www.forenex.com.tw -20-...
  • Page 21 ●If COM port opened success, it will display an open message. ●If not, it will display an error message. STEP6. Typing some strings on the TX block, and click Send button for testing. If everything goes fine, user will see the same strings on the HyperTerminal. http://www.forenex.com.tw -21-...
  • Page 22 The following steps show how to use Rs485 on Serialport-ap. STEP 1. Select Rs485 and confirm parameters setting as same as HyperTerminal STEP 2. RE/DE Select and then click “Open” to open serial port. ●Rs485 can’t write and read at same time. http://www.forenex.com.tw -22-...
  • Page 23 It is necessary to download free software” Microsoft ActiveSync”. The download website is “http://www.microsoft.com/downloads/en/details.aspx?FamilyID=9e641c34-6f7f-404d-a04 ” b-dc09f8141141 The following pictures are ActiveSync. After Install ActiveSync, when connect FES91W and computer with USB cable, the ActiveSync will display Connected and display green cycle. Connect Not connect http://www.forenex.com.tw -23-...
  • Page 24 User can transfer files between PC and FES91W over USB cable. When user transfer or delete data to folder (Mobile Device), FES91W folder (My Device) will synchronize. ●The folder (Mobile Device) is equivalent to the “My Device” folder of FES91W. Windows CE6.0 end PC end http://www.forenex.com.tw -24-...
  • Page 25 ●JACK A-Type On board: Support a Host/Device port with USB2.0 compliant. Provide for upload data stream from external USB device. 2.7 SD/MMC card installatio ●Support 1/4 bit data transmission ●Supported card SD/MMC ●When user insert SD Card, FES91W will display a “Storage Card” folder. http://www.forenex.com.tw -25-...
  • Page 26 Pin13 ComRX3 Pin14 ComTX3 : SPI-0 group ●FES91W supports two sets of SPI, SPI 0 and SPI 1. ●Each SPI can supported Master or Slave mode. ***If CAN BUS installed, SPI_1 is responsible for CANBUS write /read. *** http://www.forenex.com.tw -26-...
  • Page 27 Throughput Rate Max. 440KSPS Pin21 GPIO8 Pin22 GPIO4 : PWM Pins Pin23 PWM2 Pin24 GPIO3 group Output Low-level 0.4V Pin25 Pin26 Output High-level 2.8V 3.3V Pin27 GPIO1 Pin28 GPIO2 Pin29 Pin30 Frequency Range 15Hz 999KHz Pin31 GPIO0 Pin32 PWM1 http://www.forenex.com.tw -27-...
  • Page 28 2.8-3> GPIO test The following steps show how to use GPIO-ap on Windows CE. STEP 1. On Windows CE desktop, click on “My Device”. STEP 2. Select “NandFlash” folder. STEP 3. Select “Forenex-ap” folder. http://www.forenex.com.tw -28-...
  • Page 29 STEP 4. Click GPIO icon This is GPIO-ap running On Windows CE desktop. http://www.forenex.com.tw -29-...
  • Page 30 As Output mode, each voltage level of GPIO port can be set to 1 or 0 by selecting “Hi” or “Low”. As Input mode, each voltage level of GPIO port can be read “Hi=1” or “Low=0” by system automatically. http://www.forenex.com.tw -30-...
  • Page 31 STEP 1. Select GPIO-ap, and choose PWM/ADC page. ●Button “ON/OFF”; enable/disable PWM channel individually. ●Button “Default” recover the Frequency value back to 500 Hz and duty become 50. “Factory Test” is set Duty value change from 30 to 60 to 90. http://www.forenex.com.tw -31-...
  • Page 32 STEP 1. Select GPIO-ap, and then choose PWM/ADC page, ADC block is on the right side. ●Click “START” button, the value of each channel of ADC1 ~ 4 will be updated once in 100ms until click “STOP” button. http://www.forenex.com.tw -32-...
  • Page 33 2.9 External stereo earphone installation ●Inside speaker would be muted while earphone has had plugged. ●AC97 Codec inside. Ext. earphone Ext. speaker with 8Ohm/1W http://www.forenex.com.tw -33-...
  • Page 34 STEP1. Insert the internet line into the LAN port. STEP2. Click Star-> Setting-> Network and Dail-up connections. STEP3. Click “EMACB1” and Set specify an IP address or obtain an IP address via DHCP. ●Check the network connection status is normal or not. http://www.forenex.com.tw -34-...
  • Page 35 STEP4. Input a website. 2.11 Wi-Fi installation (with an external dongle) ●Optional WLAN Module with SDIO Interface. ●Support WLAN module compliant with IEEE802.11b/g/n. ●Operating on 2.4GHz ISM radio band. ●WiFi compliant. http://www.forenex.com.tw -35-...
  • Page 36 Example CAN-Interface type 1 The following schematic shows the needed interface between FES91X and CAN bus. It has no galvanic isolation. Example CAN-Interface type 2 The following schematic shows the needed interface between FES91X and CAN bus. It has galvanic isolation. http://www.forenex.com.tw -36-...
  • Page 37: Table Of Contents

    3. FES91W series Programming Guide FES91W provide DLL file (fn_9g45_lib.dll), it include some function call for control FES91W IO pins. User can refer below function table list to understand how to use these function. 3-1 Function table Item Function name...
  • Page 38: Gpio_Output

    Return value is 1 means the voltage level is Hight, 0 means Low. ●It only reads one time in this function. Example input_status =gpio_input( 0) // Set GPIO pin 0 as input mode. gpio_input( ) will read the voltage level from GPIO pin 0, and return the value to input_status. http://www.forenex.com.tw -38-...
  • Page 39 Parameters pwm_num (integer) state (integer) Return value None Description pwn_num(1 ~2) sets PWM(1 ~2). ●state : Start/Stop 1 : start, 0 : stop Example pwm_status(1, 0) // Set pwm 1 stop pwm_status(2, 1) // Set pwm 2 start http://www.forenex.com.tw -39-...
  • Page 40: Adc_Config

    // read ADC(1) value and divide by 1000 to get real ADC(1) voltage level. Function touch Prototype void touch() Parameters None Return value None Description The function call is for calibration of touch panel on WinCE directly. Example touch() // The calibration of touch panel will starting at FES91W. http://www.forenex.com.tw -40-...
  • Page 41: Spi_Config

    Initialize Parameter of SPI. Example spi_config( 0, 133, 8, 0, 1, 1, 0) // Initialize parameter of SPI 0 : Serial Clock Baud Rate set 1MHz; bits set 8; No delay ; mode in master; phase set 1; polarity set 0 http://www.forenex.com.tw -41-...
  • Page 42: Spi_Write

    (Need to prepare an array to receive data, because data would transmit to address by SPI). ●lastTransfer : Set CS in active mode. 0 : CS keep active after the last data has been read-in. 1 : Disable CS after the last data has been read-in. http://www.forenex.com.tw -42-...
  • Page 43: Rs485_Status

    ●hi_low : Set Com port in read or write mode. 1 : Write mode 0 : Read mode Rs485 can not be read or write at same time. Example rs485_status(2,1) // Set Com Port 2 to be Rs485 and as Write mode. http://www.forenex.com.tw -43-...
  • Page 44 6> Windows Embedded CE 6.0 R3 ●User can get more development information for VS2005 from MSDN website. http://msdn.microsoft.com/en-us/library/ms950416.aspx 4-1.2> Create New Project User could create a new project for your application by following steps: STEP 1. Select File -> New Project http://www.forenex.com.tw -44-...
  • Page 45 STEP 3. The first time user want to close project, Visual Stdio 2005 will display a message to ask user want to save project or not, click “Save” Select the location where is user want to save to. ●User can get more development information from MSDN website. http://msdn.microsoft.com/en-us/library/ms950416.aspx http://www.forenex.com.tw -45-...
  • Page 46 4-1.3> Visual Basic simple Introduction. Introduction Interface Object Properties of Object Object User can double click object or drag object from toolbox to Form, and From will display the choice object. http://www.forenex.com.tw -46-...
  • Page 47 Some object wont display on the Form, it will display on below block, for example: Serial port. Select object and click the mouse right key; it can select view code, and will display program code. It also can double click object, program code will display too. ●Program code is in “Form1.vb” page. http://www.forenex.com.tw -47-...
  • Page 48 1) 'Set GPIO(0) to be output mode and set voltage is HI End If End If ComboBox1.SelectedIndex = 1 Then ' Select GPIO become Input mode RadioButton1.Checked = True Then 'LOW End If End If End Sub http://www.forenex.com.tw -48-...
  • Page 49 RadioButton1_CheckedChanged(sender, e) ElseIf input_status = 0 Then ' If read voltage is Low RadioButton2.Checked = True RadioButton2_CheckedChanged(sender, e) End If End If End Sub ●When GPIO as Output mode, user can select voltage level Hi or Low by RadioButton. http://www.forenex.com.tw -49-...
  • Page 50 'The following program is how to execute PWM function pwm_status(1, 1) 'Set PWM(1) Star frequency = HScrollBar2.Value duty_cycle = HScrollBar1.Value 'Set frequency and duty_cycle of PWM1 pwm_config(1, frequency, duty_cycle) ●frequency and duty_cycle value will follow the HScrollBar to change. http://www.forenex.com.tw -50-...
  • Page 51 ' Declaration loaded ADC control function from DLL file <DllImport("fn_9g45_lib.dll")> _ Public Shared Function adc_config(ByVal adc_num Integer) As Integer End Function 'The following program is how to execute ADC function adc1_val As Single 'Read ADC1 value, and divide by 1000 adc1_val = adc_config(1) / 1000 http://www.forenex.com.tw -51-...
  • Page 52 Gets or sets the sFtandard length of data bits per byte. Parity Gets or sets the parity-checking protocol. StopBits Gets or sets the standard number of stop bits per byte. ●More Properties details in website MSDN. http://msdn.microsoft.com/en-us/library/system.io.ports.serialport_properties%28v=VS.85%29.aspx ●The source code located the folder of “CD\FES91Wxx_xxx \FES91W-AP source code\Serialport” http://www.forenex.com.tw -52-...
  • Page 53 'Write Byte to Bytearray() array Me.SerialPort1.Read(Bytearray, 0, rcvBytes) 'Convert Byte array to a string TmpStr = Encoding.Default.GetString(Bytearray, 0, rcvBytes) 'Display on textbox TxtTerminal.Text &= TmpStr Loop While rcvBytes <> 0 End Sub ● More serial port information in website MSDN. http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.portname%28v=VS.80%29.aspx http://www.forenex.com.tw -53-...
  • Page 54 'The following program is how to control Com2 in Rs485 to write or read Private Sub ComboBox8_SelectedIndexChanged(ByVal sender System.Object, ByVal System.EventArgs) Handles ComboBox8.SelectedIndexChanged 'com2 control Select Case ComboBox8.Text Case "Write" rs485_status(2, 1) Case "Read" rs485_status(2, 0) End Select End Sub http://www.forenex.com.tw -54-...
  • Page 55 As Integer End Function <DllImport("fn_9g45_lib.dll")> _ Public Shared Function spi_write(ByVal spi_num Integer, ByVal length Integer, ByRef write_data Integer) As Integer End Function 'The following program is initialize SPI’s parameter. spi_config(0, 133, 8, 0, 1, 1, 0) ●Initialize SPI 0 http://www.forenex.com.tw -55-...
  • Page 56 Spi_Wri_Data(1) =2 Spi_Wri_Data(2) =3 'spi_write(SPI_NUM , Length, Spi_Wri_Data) spi_write(0, Spi_Wri_Len, Spi_Wri_Data(0)) 'spi_read(SPI_NUM , Length, Spi_Rea_Data) spi_read(0, Spi_Rea_Len, Spi_Rea_Data(0)) ●SPI 0 was initialized, so 3 data(1, 2, 3) can be transmitted by SPI 0, and receive data from SPI 0. http://www.forenex.com.tw -56-...

This manual is also suitable for:

Fes91w0 seriesFes91w1 seriesFes91w a seriesFes91w b seriesFes91w c seriesFes91w-070 series ... Show all