Home
EPM-3032/3337/3438/3112/DK01 Modules User`s Manual
Contents
1. 4 Select the security option for your network Then click Configure Profile Management General Security Advanced Set Security Options O WPAAWPA2 WPA MPA EAP Type LEAP O Passphrase 902 1 EAF Allow Association to Mixed Cells Profile Locked Firme tor Finding Conan LI i LI ad 4 59 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 5 Enter the password Profile Management General Security Advanced Contigure Pre Shared Keys Static WEP Entry Hexadecimal 0 9 A F O ASCII Text all keyboard characters Encryption WEP Key Size Transmit Key 128 152 WEP 1 1234567890 WEP Key 2 O WEP Key 3 O WEP Key 4 6 The connection will now be established wireless Network Connection Status Connection Status Connected Network MOMASY S Duration 01 46 27 Speed 54 0 Mbps Signal Strength aiii Activity Received Packets Disable View Wireless Networks _ 4 60 3032 3337 3438 3112 1 Modules Getting Wireless Module nformation Software Installation and Programming Guide The Atheros Client Utility helps you to get wireless information and manage wireless connections 1 Double click the Atheros client utility shortcut the desktop and change to the Current Status ta
2. 4 46 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 5 Select 4 accept the terms of the license agreement and then click Next Atheros Client Installation Program License Agreement Please read the following license agreement carefully Atheros Communications Inc software License Agreement PLEASE READ THIS SOFTWARE LICENSE AGREEMENT LICENSE CAREFULLY BEFORE USING THE ATHEROS SOFTWARE USING THE ATHEROS SOFTWARE YOU ARE AGREEING TO BE BOUND BY THE TERMS OF THIS LICENSE IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE DO NOT USE THE SOFTWARE IF YOU DO NOT AGREE TO THE TERMS OF THE LICENSE YOU MAY RETURN THE ATHEROS SOFTWARE TO THE PLACE WHERE YOU OBTAINED IT FORA REFUND IF THE ATHEROS SOFTWARE WAS ACCESSED ELECTRONICALLY CLICK DISAGHEE DECLINE FOR ATHEROS SOFTWARE INCLUDED WITH YOUR PURCHASE OF HARDWARE YOU MUST RETURN THE ENTIRE HARDYYARE SOFTWYARE PACKAGE 2 O I do not accept the terms of the license agreement 6 Select Install Client Utilities and Driver and then click Next Atheras Client Installation Program setup Type select the setup type that best suits your needs Click the type of setup you prefer Install Client Utilities and Driver Description Install Driver Only Choose this option to install the Make Driver Installation Diskette 5 driver and client utilities This is the recommended option 4 47
3. 9 3 Gently insert the module into the slot 77 MMM lt p h 24 4 When finished tighten the screws to hold the module in place 3 2 3032 3337 3438 3112 DKO1 Modules Hardware Connection Description Connecting Data Transmission Cables In this section we explain how to connect the EPM modules to devices Connecting to the EPM 3032 Serial Port Module Use a serial cable to plug your serial device into the module s serial port Serial ports 1 and 2 have male DB9 connectors and can be configured for RS 232 RS 422 or RS 485 communication by software The pin assignments are shown in the following table DB9 Male Port RS 232 422 485 Pinouts 12345 RS 232 RS 422 RS 485 RS 485 L 4 wire 2 now 6789 Connecting to the 3337 Wireless GPS Module The EPM 3337 module comes with 4 connectors that can be used to connect antennas including 2 WiFi antennas 1 cellular antenna and 1 GPS antenna Refer to the following figure for the location of the different antennas Antenna Connector x 4 Connecting to the EPM 3438 DI DO Module The EPM 3438 module comes with 8 digital input channels and 8 digital output channels See the following figures for pin definitions and wiring methods DI Channel x 8 DO Channel x 8 3032 3337 3438 3112 DKO1 Modul
4. break getwchar sin getwchar wtoi amp sin while 1 0 return 0 4 32 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide EPM 3438 Driver Installation Before installing the EPM 3438 please select the counter mode or DI mode for the module There is a dip switch on the EPM 3438 If DIP switch 1 is on the DIO will work in digital input port mode DIO just reflects whether the input signal status is HIGH or LOW If DIP switch 2 is on the DIO works as a 16 bit counter It increases the counter when the input pulse is toggled from low to high See the following figures for DIP switch settings Counter Counter Dil DI Counter mode made Before using the EPM 3438 expansion module you need to update the driver Please install the driver before inserting the expansion module Use the following steps to install the EPM 3438 module driver 1 Run EPM3438Setup exe to begin installation and then click Next i EPM 3438 Welcome to the EPM 3458 Setup Wizard The installer will quide you through the steps required to install 3438 Expansion Module Driver an pour computer WARNING This computer program protected by copyright law and international treaties Unauthorized duplication or distribution of this program any portion of it may result in severe civil or criminal penalties and will be prosecuted to the maxi
5. HWIndex 1 for EPM 3438 board 1 HWIndex 2 for EPM 3438 board 2 for HWIndex 0 HWIndex lt HW TOTAL HWIndex Lor port 0 port lt 8 port since List is LIFO last callbacks are added first if digit io timer add callback mngr HWIndex port DGTIO INPUT STATE CHANGE Interval input ehg cb Sport lt 0 4 printf add d input change callback error n port ret rn 24 if digit io timer add callback mngr HWIndex port DGTIO GET INPUT interval input get cb amp port lt 0 printi Tadda Input Callback errori e return 3s if digit io timer add callback mnor HWIndex port DGTIO SET OUTPUT interval output set cb amp port 0 printf add set output callback error n port return 4 if digit io timer add callback mngr HWIndex port DGTIO GET OUTPUT interval Outpursget ob amp port lt 0 printf add d get output callback error n port return digit io timer dispatch mngr return 0 Examples Counter Program Source Code File Example File and Folder digit input change tcounter c Description This file is an example of the EPM 3438 couter programming read the counter value read the counter value and clear the counter include lt stdio h gt include lt stdlib h gt include lt sys time h gt include SEODnbL m include lt nistd h gt include lt signal h gt include mxdgio h For co
6. 4 Click Close to complete the driver installation i EPM 3112 Installation Complete 3112 has been successfully installed Click Close ta exit 4 63 EPM 3032 3337 3438 3112 DK01 Modules Software Installation and Programming Guide 5 Click Action gt Scan for hardware change to install the module driver automatically si Device Manager wiew Help LE 4 Computer B Device Drivers Disk drives Display adapters Sy ATA ATAPI controllers Monitors 37 CAN Controllers 9 CAN Controller 0 9 CAN Controller 1 24 CAN Controller 2 CAN Controller 3 Moxa Device CANBUS CARD PCI Device CANBUS CARD PCI Device 8 Multi port serial adapters Network adapters 9 Ports amp LPT Processors 6 Sound video and game controllers 3 System devices EPM 3112 Programming Guide CANBUS Library Description Close an open port O on failure otherwise the bus speed in KHz int mxcan_get parameters int fd CANPRM param Gets the parameter of an open port fd the open port Output lt param gt pointer to the CANPRM structure Return Value O on failure otherwise returns a negative value int mxcan get registers int fd unsigned char buffer int num Gets the register values of an open port fd the open port Output buffer gt pointer to a buffer for these value
7. usi 4 21 Ea 4 23 EPM 3032 Driver I nistallatloli ostante 4 23 Contqgurghg erial Porte ariani al A i A i MD EID D 4 27 Changing UART Mode Through Programming 0 0 0 0 1 nnns 4 31 EPM 3439 Driver tistalla HON irinen ts AE DOR 4 33 EPM 3438 Programming tutte tubi uw mico EET I DRE 4 36 EPM 3337 Driver Ihstallatlohi sess ek pe Sabina a rni c 4 37 Wireless Mod le Driver Installation sana iii dte Lac e pa tae p va po Same ve Tes 4 45 Configuring the GPRS HSDPA Connection without GPS 2 2 222 2 4 4 51 GPS lalla 4 56 Configuring a Wireless 4 58 Getting Wireless Module Information 4 61 EPM 3112 Dfiver Installation DUE ta 4 62 EPME3112 Programming mcum bau 4 64 1 Introduction Moxa s EPM series modules which include modules with serial ports a wireless GPS a digital input output channel card a CANbus card and a mini PCI PCle work with Moxa s V2422 and V2426 embedded computers giving end users the ability to set up and expand a variety of i
8. EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 7 Click Next Atheros Client Installation Program Choose Destination Location Select the folder where the installation program will install the files The installation program will install the client utilities in the following location Destination Folder C Program Files 4theros 8 Click Next Atheros Client Installation Program select Program Folder Select program folder The installation program will add program icons to the Program Folder listed below ou may enter a new folder name or select one from the Existing Folders list Program Folder ETE Existing Folders Accessories Administrative Tools Cinterion Startup 4 48 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 9 Click Next Atheros Client Installation Program Atheros Client Installation Program IMPORTANT Please Read On Windows you can configure Your Atheros Wireless LAN Client Adapter through the Atheros Client Utility ACU or a third party supplicant Because third party tools may not provide all of the functionality available in the ACU Atheros recommends that you use the ACU Please note that a patch from Microsoft might be required to use the Microsoft tool with security On the next screen select whether you want to use the ACU or a third party tool to con
9. Jared 08 10 2010 HWIndex to support multiple boards item last signal mxdgio get input signal mngr fd HWIndex port return 05 void digit io timer dispatch quit DGIOMNGR mngr Tf MIE gt 0 define MAX TIME OXFFFFFFFF start and dispatch the timer operations Inputs lt mngr gt the manager Returns none a i vold digit io timer dispatch DGIOMNGR mngr tlf DGIOITEM Ttem unsigned int ms sleep n defined _WIN32 amp amp defined WIN32 struct tameval to endif mngr gt dispatch 1 while mngr gt list mngr gt dispatch for item mngr gt list item NULL item item gt next 4 10 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide if mngr gt now_time lt item next time not yet continue mngr gt now_time item gt next_time over due executable item gt next_time mngr gt now_time titem gt interval n move to the next time 9 dgio input change exec mngr item ms sleep TIME get the amount of time to sleep for item mngr gt list item NULL item item gt next if mngr gt now_time lt item next time not yet item gt next_time mngr gt now_time if n lt ms sleep ms sleep continue if ms_sleep MAX_TIME dif defined WIN32 WCE amp amp defined WIN32 to tv sec ms slee
10. 0 to 5 VDC Output Current Max 20 mA per channel Output Voltage Logic 0 0 to 0 55 Logic 1 4 2 to 5 0V Connector Type Terminal block Physical Characteristics Weight 120 g Dimensions 104 x 121 x 34 mm 4 09 x 4 76 x 1 34 in Environmental Limits Operating Temperature 40 to 70 C 40 to 158 F EPM 3552 Specifications Display Graphics Controller DsiplayLink DL 195 VGA Interface 15 pin D sub connector female DVI Interface 24 pin DVI D connector female Resolution Up to 1920x 1600 2048 x 1152 for wide screen resolution Physical Characteristics Weight 130 g Dimensions 104 x 121 x 34 mm 4 09 x 4 76 x 1 34 in Environmental Limits Operating Temperature 25 to 55 C 13 to 131 F 1 6 2 Hardware Introduction The EPM Series expansion modules are designed to work with Moxa s V2422 and V2426 embedded computers By providing different modules with different connectors the EPM series offers the greatest flexibility and convenience for users who would like to easily establish industrial applications that require different communication interfaces The following topics are covered in this chapter O Appearance Dimensions EPM 3032 3337 3438 3112 DKO1 Modules Hardware ntroduction Appearance EPM 3032 Serial Port x 2 RS 232 422 485 DB9 RS 232 422 485 42 Serial Port LED Indicators TX x 2 RX x 2 EPM 3112 CAN Port x 2 DB9 EPM 3337 Antenna Conn
11. Changing UART Mode Through Programming EPM 3438 Driver Installation gt EPM 3438 Programming Guide gt EPM 3337 Driver Installation gt Wireless Module Driver Installation gt Configuring the GPRS HSDPA Connection without GPS gt Enabling GPS Functionality gt Configuring a Wireless Connection gt Getting Wireless Module Information gt EPM 3112 Driver Installation gt EPM 3112 Programming Guide EPM 3032 3337 3438 3112 DK01 Modules Software Installation and Programming Guide Linux System EPM 3032 Driver Installation The EPM 3032 supports Linux standard termios control The normal tty device node is located at dev ttyM8 ttyM9 dev ttyM16 and ttyM17 are the second device files for the EPM 3032 module The Moxa UART Device API allows you to configure ttyMx for RS 232 RS 422 4 wire RS 485 or 2 wire RS 485 The EPM 3032 driver has been pre installed at the following location and will be loaded automatically when the system boots up Moxa lib modules 2 6 30 bpo 2 686 kernel drivers char mxser ko EPM 3032 Programming Guide Example to set the baud rate define MOXA 0x400 define MOXA SET SPECIAL BAUD RATE MOXA 100 define MOXA GET SPECIAL BAUD RATE MOXA 101 include lt termios struct termios term int fd speed fd open dev ttyM8 O_RDWR tcgetattr fd amp term term c cflag amp CBAUD CBAUDEX term c cflag B4000000 tcsetattr fd TCSANOW amp term speed 115
12. Mdm mode for Linux Now convert EPM 3337 module with the moxa hc25 setup mdm sh script at home Moxa home sh moxa hc25 setup mdm sh Confirm that the conversion is completed Moxa home lsusb Bus 001 Device 010 ID 0681 0047 Siemens Information and Communication Note You only need to do this conversion once 4 14 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 4 Configure the driver to load at startup The default run level is 2 setup in etc inittab Issue the following command Moxa etc rc2 d mv N98moxa hc25 load driver Note You need to reboot to load the driver or issue etc init d moxa_hc25_load_ driver 5 Install software from internet for wireless functionality Moxa home apt get install wpasupplicant wireless tools 6 Create the correct links for wpa supplicant Moxa etc network if up d ln sf etc wpa_supplicant ifupdown sh wpasupplicant Moxa etc network if down d ln sf etc wpa supplicant ifupdown sh wpasupplicant Moxa etc network if pre up d ln sf etc wpa supplicant ifupdown sh wpasupplicant Moxa etc network if post down d ln sf etc wpa supplicant ifupdown sh wpasupplicant 7 Mount root file system as read only Moxa umount 8 Reboot your device to complete installation ATTENTION ppp 2 4 4 may get the incorrect DNS after connection here are two workaround solutions 1 Assign the DNS manually Comment the
13. 3112 DKO1 Modules Software Installation and Programming Guide 6 Make sure the port names are correct and then click OK to take effect HOXA MUGO UART CHIP PCI Bus Properties Computer Management File Action View Window Help ca 5 1 PMORN V GS Computer Device Drivers Disk drives E Display adapters Human Interface Devices IDE controllers vx Keyboards 77 Mice and other pointing devices 4 Monitors Multi port serial adapters MUSEO UART CHIP PCI Bus Network adapters Ports COM amp LPT E osa Port 1 COMI 7 Port 2 18 Port 3 COMIS Port 4 20 die Processors e Sound video and game controllers Se Storage volumes 4 30 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide NOTE Make sure each port name is unique duplicate names will lead to inaccessible devices fl Device Manager MUSGO UART CHIP PCI Bus Properties File Action View Ci FE z E m General Ports Configuration Driver Details Resources Pot Ax Level Tx FIFO Level Smartio industio Family Board Configuration Error This COM name is being used by another device such as another cam port modem Using duplicate names can lead to inacce
14. C itemp Drivers 4R9220 Install CD Setup dll File and Folder Tasks n 7 1 datal cab 12 0 0 49974 14 FLExnet R InstallShield R 5 mi Rename this File a Move this ni Jarat hg mj dataz cab PA this File 14 647 KE 270 Publish this file to the Web E mail this File 3 default ath ISSetup dll 2 File 12 0 0 58851 Delete this file 1 InstallShield F3 Setup Engine layout bin Other Places aaa BIN File 1 ica 489220 Documents setup ini 5 setup inx Configuration Settings INX File i Shared Documents 1 KE 556 EB 4 Computer 2 Network Places Details 4 45 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 3 Click Next Atheros Client Installation Program Installshield Wizard Choose Setup Lanquage select the language for the installation from the choices below Chinese Simplified Chinese Traditional Czech Danish Dutch English _ Finnish French Standard German Greek Hungarian Italian Japanese Korean Nnrwenian M 4 Click Next Atheros Client Installation Program Atheros Client Installation Program This program installs the driver and client utilities for your Atheros Wireless LAN Client Adapter lt
15. Continuing your installation of this software may impair or destabilize the correct operation of your system either immediately or in the future Microsoft strongly recommends that you stop this installation now and contact the hardware vendor for software that has passed Windows Logo testing 13 Click OK to complete the installation fall winMux Driver Setup Scan for modules Scan Finished Start Scan List The driver iz installed Use the property page in the Device Manager to change the Settings Virtual Port 1 data Yirtual Port Virtual Port 3 4 43 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 14 You should see the Serial Multiplexer in your Device Manager as illustrated below Device Manager Action wiew Help Hee EE 3 OENM VosdaxITASEOL 4 Computer Device Drivers Sa Disk drives Display adapters IDE ATAJATAPI controllers E Moderns Monitors 3 Multi port serial adapters MOXA CP 1021 Series PCI Bus MUSGO UART CHIP PCI Bus Serial Multiplexer BE Network adapters Ports COM amp LPT dde Processors Sound video and game controllers System devices Universal Serial Bus controllers E E E E E li 15 Right click on Serial Multiplexer and select properties You will see that 3 virtual serial modem ports have been generated you can
16. Guide 2 Click Next to install using default settings 1 EPM3032Setup Select Installatton Folder The installer will install EPM 30325 etup to the following folder install in this folder click To install ta a different folder enter iE below or click Browse Falder C Program Files MOXA E PM 3032 Install EPM 3032S etup for yourself for anyone who uses this computer Cancel 3 Click Next to start the installation i EPH3032Setup Contirm Installation The installer is ready to install ERM 30325 etup an your computer Click Nest to start the installation 4 24 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 4 Click Close to complete the installation i EPM3032Setup Installation Complete EPM 3032S has been successfully installed Click Close to exit 5 Now you need to shutdown the computer and insert the EPM 3032 expansion module into the embedded computer and then reboot the computer 6 The system will find the new hardware select No not this time and click Next Found Hew Hardware Wizard Welcome to the Found New Hardware Wizard Windows will search for current and updated software by looking on your computer an the hardware installation or an the Windows Update Web site with your permission Read our privacy policy Can Windows connect to Windows Update to search for software Yes this t
17. Input lt fd gt The access to the counter device SAG et 50000000000 4 6 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide Special Note 1 We have provided an example in CD digit input change The mxdgio h defines the convenient API for DIO and COUNTER programming 2 The DO initial status is HIGH If you want the initial DO status to be LOW you should add one line in etc modules to load 3438 with epm3438_DO2LOW 1 Moxa modinfo lib modules 2 6 30 bpo 2 686 kernel drivers char epm 3438 ko filename lib modules 2 6 30 bpo 2 686 kernel drivers char epm 3438 ko description EPM 3438 DIO Counter module author jared_wu moxa com license GPL depends vermagic 2 6 30 bpo 2 686 SMP mod_unload modversions 686 parm epm3438_DO2LOW Reset DO to LOW 0 Set DO to High default 1 Set DO to LOW int Moxa mount remount rw Moxa vi etc init d moxainit sh Load the EPM 3438 DIO driver modprobe 3438 epm3438_DO2LOW 1 Moxa umount This DIO sample program shows how users can develop a set of higher layer functions using preliminary DIO functions from the peripheral 1 0 library These functions allow user applications to focus on event handling when events occur A callback function is defined by the programmer to associate with an event The source code files of the sample program are located in the samples mxphio digit_input_change director
18. change port names 1 Go to the Control Panel gt Multi port serial adapters and select the adapter 2 Right click the adapter and click Properties Computer Management File Action View Window Help amp Eg QEM 5JC PIMOKNVGS Computer B Device Drivers Disk drives Display adapters Human Interface Devices ATAJATAPI controllers c Keyboards 77 Mice and other pointing devices Monitors Multi port serial adapters gt MUS60 UART CHIP Bus Network adapters Update Driver Ports amp LPT Disable 2 Port 1 1 Uninstall a Port 2 2 MOXA Port 3 COM3 29 Port 4 COMA Properties Processors e Sound video and game controllers X Storage volumes Scan Far hardware changes Cancel 4 28 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 4 Uncheck Auto Enumerating COM Number if you want to change the port name separately Por Nunber SES Auto Enumerating COM Number Rs Level x the change to all ports Level Set the change to all ports 5 Select the port name you want to change to and then press OK Fort Number COMI current Abi Rs FIFO Level Set Level iw the change to all ports Cancel 4 29 EPM 3032 3337 3438
19. change the port number using the drop down list Serial Multiplexer COM3 Properties General Port Settings Driver Details Physical Serial Modem Port Fort Name Baud Hate bps 115200 Virtual Serial Modem Ports Virtual Parts Virtual Port 1 data channel Virtual Part 2 LEM T2 Virtual Port 3 NOTE Make sure each port name is unique duplicate names will create glitches 4 44 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide Wireless Module Driver Installation Follow the steps below to install the wireless driver 1 Click Cancel to stop searching for drivers when you first install the module Found Hew Hardware Wizard Welcome to the Found New Hardware Wizard Windows will search for current and updated software by looking on your computer on the hardware installation CD or on the Windows Update Web site with pour permission Head our privacy policy Can Windows connect to Windows Update to search for software es this time only Yes now and every time connect a device gt not this time Click Next to continue Cancel 2 Navigate to the Install CD directory and double click setup exe to install the driver fi Install File Edit View Favorites Tools Help gt m a Search 22 Folders Address
20. he2Snet inf hc2Sser inf Other Places _ Setup Information Setup Information 4 KB 3 KB Siemens My Documents N hc2Susbnet sys hc2Susbser sys System file System file Shared Documents 101 KB 99 KB xj Computer amp My Network Places Details 4 37 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 2 Click Next Device Driver Installation Wizard 724 Welcome to the Device Driver HI Installation Wizard This wizard helps install the software divers that some computers devices need in order to work To continue click Nest Cancel 3 Wait for the driver to install Device Driver Installation Wizard The drivers are now installing 22 Please wait while the drivers install This may take some time to complete ua Cancel 4 38 3032 3337 3438 3112 1 Modules Software Installation and Programming Guide 4 Click Finish to complete the driver installation Device Driver Installation Wizard Completing the Device Driver Installation Wizard The drivers were successfully installed on this computer Oriver Name w Siemens AG Siemens w Siemens AG Siemens w Siemens AG HCzh USE Status Device Updated Device Updated Device Updated 5 Navigate to the 25 25 usb ndis driver program files directory and double click HC25 Connection Manager msi fi H
21. the Web 3 E mail this tei ex wmuxprop al m zl Wireless Modules Multiplex Ins Delete this File aMibiemens AG Wireless Modules Multiplex Pro winmuxek 3102 zip Description Wireless Modules Multiplex Installation Utility Other Places Company Siemens AG File Version 3 1 0 2 5 Hc25 Date Created 2 18 2007 9 15 AM A Documents Size 164 Shared Documents 4 Computer Network Places Details 4 41 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 10 Click Start Scan di winMux Driver Setup Scan for modules Module List Port Module Type Information 11 Click Install Driver once the scan is complete di winMux Driver Setup Scan for modules Scan COM 9 Stop Scan Module List Port Module Type SIEMENS HC25 REVISION 02 050 Information Virtual Port 1 data Yirtual Port Virtual Port 3 4 42 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 12 Click Install Driver and press Anyway once the scan is complete di winMux Driver Setup Scan for modules Finished Hardware Installation The software you are installing for this hardware Serial Multiplexer has not passed Windows Logo testing to verify its compatibility with Windows Tell me why this testing is Important
22. 0 Kbps O Kbps Scanning Scanning United States 20 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide EPM 3112 Driver Installation Take the following steps to install the CANBUS driver 1 Double click EPM 3112 V1 0 msi to install the module driver and then click Next jer EPH 3112 Welcome to the EPM 3112 Setup Wizard The installer will quide you through the steps required to install EPM 3112 on your computer WARNING This computer program protected by copyright law and international treaties Unauthorized duplication or distribution of this program any portion of it may result in severe civil or criminal penalties and will be prosecuted to the maximum extent possible under the law Cancel 2 Click Next to continue i EPM 3112 Select Installation Folder The installer will install EFM 3112 to the following folder To install in this folder click Nest install ta a different folder enter it below click Browse Folder IDA Program 3112 Install EPM 3112 for yourself for anyone who uses this computer 4 62 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 3 Click Next to start the driver installation i EPH 3112 Confirm Installation The installer is ready to install 3112 on your computer Click Nest to start the installation Cancel
23. 000 int mxdgio_set output_ signal low HANDLE int port This function sets a low signal to a digital output Input lt fd gt The access to the device Moxa 1 O control definitions for COUNTER define COUNTER dev epm 3438 counter1 define COUNTER_NODE2 3438 counter2 4 36 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide Input lt fd gt The access to the counter device lt port gt Port number Input fd The access to the counter device lt port gt Port number EPM 3337 Driver Installation Follow the directions below to install the 3G GPS driver 1 Open the directory HC25 25 0205ussb ndis driver install program files Siemens HC25 Connection Manager and then double click DPI nst exe HC25 Connection Manager File Edit View Favorites Tools Help Q Bak gt gt 2 Search lis Folders Address 5 C temp Drivers HC25 HC25 HC25_0205usb_ndis_driver installiprogram Files Siemens HC25 Connection Manager conman ini File and Folder Tasks conman exe Configuration Settings Connection Manager m Rename this file gy Move this file Driver Package Installer Copy this file RUN icrosoft Corporation Publish this file to the Web E mail this file E hc25 32bit cat hc25mdm inf 2 Security Catalog Setup Information X Delete this file 12 KB 8 KB
24. 200 ioctl fd MOXA SET SPECIAL BAUD RATE amp speed Example to get the baud rate define MOXA 0x400 define MOXA SET SPECIAL BAUD RATE MOXA 100 define MOXA GET SPECIAL BAUD RATE MOXA 101 include lt termios h gt struct termios term int fd speed fd open dev ttyM8 O RDWR tcgetattr fd amp term if term c cflag 5 CBAUD CBAUDEX B4000000 follow the standard termios baud rate define else ioctl fd SPECIAL BAUD RATE amp speed 4 2 EPM 3032 3337 3438 3112 DK01 Modules Software Installation and Programming Guide Baud rate inaccuracy Divisor 921600 Target Baud Rate Only Integer part ENUM 8 921600 Targer Divisor Round up or down Inaccuracy Target Baud Rate 921600 Divisor ENUM 8 1005 Big hee s To calculate 500000 bps Divisor 1 ENUM 7 Inaccuracy 1 7 For reliable performance inaccuracy should be under 2 Special Note The embedded serial ports do not support special baud rates and the maximum baud rate is only 115200 bps However the expansion board can support special baud rates and maximum baud rates of up to 921600 bps If the target baud rate is not a special baud rate e g 50 75 110 134 150 200 300 600 1200 1800 2400 4800 9600 19200 38400 57600 115200 230400 460800 921600 the termios cflag will be set to the same flag If you use stty to get the serial information you will get speed equal
25. 40 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 8 After installation completes you should see Siemens HC25 HSDPA USB Modem Siemens HC25 Wireless Ethernet Adapter and Siemens HC25 USB COM Port in you Device Manager as illustrated below Device Manager Action View Help DE H IDE ATA ATAPI controllers E Moderns Siemens 25 HSDPA USE Modem E Monitors 220 Multi port serial adapters E Network adapters i E Atheros ARSzzZX Wireless Network Adapter Realtek GBE Family Controller Realtek GBE Family Controller 2 88 Siemens 25 wireless Ethernet Adapter od Ports COM amp LPT y Port 1 COMI oo Port 1 oo Port 2 oo Port 2 COME Port 3 oo Port 4 10 E Siemens 25 USB Com Pork Pa Processors 1 9 Sound videa and game controllers rm 4 System devices 9 Change to the Winmux2K directory and double click wmux2k exe inmux k File Edit View Favorites Tools Help 7 JO search Folders Address itempibriversiHC25 HC25 Winmux2K History txk winmux2k inf Text Document Setup Information 3 KB SEE File and Folder Tasks Rename this 5 Move this File Lo o3 winmux2k sys System File B Copy this file 30 KB Publish this file to
26. 6 moxa rules Add the following description to 96 moxa rules The of the EPM 3032 must be 0x1393and the DevicelD must be 0x1022 For example Set the device EPM 3032 0x1393 0x1022 default as 232 mode interface DRIVERS mxser ATTRS vendor 0x1393 ATTRS device 0x1022 RUN bin setinterface dev ttyM n 0 96 moxa rules Edit the command line RUN bin setinterface dev ttyM n O If you want to set the serial mode to RS 232 use the following parameter RUN bin setinterface dev ttyM 0 If you want to set the serial mode to RS 485 2 wire use the following parameter RUN bin setinterface dev ttyM n 1 If you want to set the serial mode to RS 422 use the following parameter RUN bin setinterface dev ttyM 2 If you want to set the serial mode to RS 485 4 wire use the following parameter RUN bin setinterface dev ttyM n When finished remember to umount the writable root file system Moxa umount Moxa Reboot your computer Moxa reboot Moxa Once the computer restarts confirm that the setting has been loaded as the default value Moxa setinterface dev ttyM8 Now setting is RS485 2WIRES interface 3438 Driver nstallation Upload the package to embedded computer and to the tmpfs dev shm root scp epm3438 2 6 30 bpo 2 686 deb root 192 168 30 123 dev shm root Install the packag
27. C25 usb ndis driver File Edit View Favorites Tools Help Qua 2 Search 22 Folders Address DD Ci tempiDriversjHC25 HC25_usb_ndis_driver File and Folder Tasks 2 Make new folder E3 Share this folder LJ program Files e Publish this Folder to the ye autorun Web Setup Launcher Macrovision Corporation 25 Connection Manager Windows Installer Package oe Other Places 4 2 436 E 25 3 My Documents Shared Documents 4 My Computer 4 Metwork Places Details 4 39 Configuration Settings Setup Information Configuration Settings EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 6 Click Install lr HC25 Connection Manager Installshield Wizard Welcome to the InstallShield Wizard for HC25 Connection Manager The InstallShield R Wizard will install HC25 Connection Manager on your computer To continue click Install WARMING This program is protected by copyright law and international treaties 7 During the installation process if you encounter the following error message just ignore it and click HC 5 Connection Manager Installshield Wizard Installing HC25 Connection Manager The program features vou selected are being installed Please wait while the InstallShield wizard installs 25 Connection Manager This may take several minutes Status 4
28. CH support Mobile Station Class B Coding Schemes 1 4 EGPRS Multislot Class 10 e EDGE E2 power class for 8 PSK Downlink coding schemes CS 1 4 MCS 1 9 Uplink coding schemes CS 1 4 BEP reporting SRB loopback and test mode B e 8 bit 11 bit RACH e PBCCH support 1 phase 2 phase access procedures Link adaptation and IR NACC extended UL TBF Mobile Station Class B CSD V 110 non transparent 9 6 kbps SMS Point to point MT and MO Cell broadcast Text and PDU mode Fax Group 3 Class 1 Audio Audio speech codecs GSM EFR FR HR e AMR DTMF supported audio modes Router Handset Headset Speakerphone and Transparent Mode e TTY support selecting a dedicated audio mode Gains and volumes can be controlled by AT commands 9 ringing melodies supported and ANSI supervisory tones supported Japan supervisory tones supported WLAN Standards IEEE 802 11a b g n for Wireless LAN e IEEE 802 111 for Wireless Security 1 4 3032 3337 3438 3112 1 Modules Introduction Spread Spectrum and Modulation typical 0555 with DBPSK 5 OFDM with BPSK QPSK 16QAM 64QAM 802 11b CCK 11 5 5 Mbps DQPSK 2 Mbps DBPSK 11 Mbps e 802 11a g 64QAM 54 48 Mbps 16 36 24 Mbps QPSK 18 12 Mbps BPSK 9 6 Mbps e 802 11n 64QAM 300 to BPSK 6 5 M
29. Connection Description a 3 1 installing EHe EPM EX pansion MOGUES Suninen Ai ia iaia iaia ii 3 2 Connecting Data Transmission 5 ea ea a 3 3 Connecting tothe EPM 3032 Serial Port tes ete ts s 3 3 Connecting to the EPM 3337 Wireless GPS 2 2 2 0 0 0 1 3 3 Connecting to the EPM 3438 DI DO Module ee nemen sehen nnn nns 3 3 Connecting to the EPM 3112 CANbus Port Module nene nnn nns 3 4 Connecting to the EPM DKOT MOCdUle rash an ERR ERR 3 5 4 Software Installation and Programming Guide 4 1 CAUX SVS TE POOR Q 4 2 EPBME3032 DriverJpnstallgtiQDi resta TUI ELLA 4 2 EPM E3032 Programimihbidg GUNE 4 2 EPM 3438 Driver installation rana ana lire e i 4 4 EPRM 3438 Programming Guide seneca 4 5 EPM 3337 DPI Ch outs aaa A M o o iaia iure ina E RIEN LE i iii 4 14 LEA aate antews ive 4 21 EPM 3 L1 2 Programming
30. E 1 05 19 7 103 5 M 1 4 SGPRMC 061824 0 A 2458 835139 N 12133 055835 E 290710 A 68 SGPGOSA A 3 24 21 06 31 L0 PrpO D0pl9i 7 190 5 29 SGPVTG T M 0 0 N 0 0 K 4E 5 Start gpsd and perform client program cgps Install gpsd Moxa apt get install gpsd Let gpsd read NMEA data from GPS port dev pts 2 Moxa gpsd dev pts 2 In the remote computer use ssh connect to Moxa s embedded computer and issue the cgps command You will see the information below Moxa cgps 4 17 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide If cgps gets non null data form gpsd it will display the message below Time 2H1H H 7 298THBb 45 38 HZ Latitude 24 N Longitude 121 552724 Altitude 197 5 Speed Heading Climb m nin Status 31 FIX 13 secs GPS Generic NMEA Horizontal Err 131 Vertical Err 78 Course Err speed 973 kph H HHH 8 808 310 40 GPSD O RMC 1288385997 BHA 8 8685 24 980836 121 552725 107 50 139 28 83 28 H HHH 7 288 88 3 You can issue AT SGPSS 0 to the command port to stop GPS information Moxa cat lt dev pts 1 6 Moxa echo e AT SGPSS 0 r gt dev pts 1 Moxa killall cat ATTENTION View the following reference for more information about gpsd man gpsd man cgps http gpsd be
31. EM item int HANDLE fd mngr gt fd item gt HWIndex switch item gt mode case DGTIO GET INPUT sig omxdglo Gel Lbem sport item cb item 5HWIndex item gt port sig item arg break case DGTIO GET OUTPUT 514 mxagro output signal fd aten Port item cb item HWIndex item gt port sig item arg break case DGTIO GET INPUT STATE CHANGE sig get signal ide webenmncsporut lib item gt last signall sig item gt cb 16 gt item gt port sig item arg break case DGTIO SET OUTPUT sig item cb item HWIndex item gt port item gt last_signal item gt arg Jede ASIG mxdgio set output signal high fd item port else 4 8 EPM 3032 3337 3438 3112 DK01 Modules Software Installation and Programming Guide mxdgio set output signal low fd item port break default return item gt last_signal sig release the timer operation dA static vold dgio input change release DGIOMNGR mngr int i DGIOITEM item next item mngr list while item next item gt next free item item next for 1 0 i HW TOTAL i qd mxdgio close mngr gt fd 1 j this function initilizes a timer manager Returns Return a pointer to the manager DGIOMNGR digit io timer init void DGIOMNGR mngr mngr DGIOMNGR calloc 1 size
32. EPM 3032 3337 3438 3112 DKO1 Modules User s Manual Second Edition January 2011 WWW moxa com product MOXA 2011 Moxa Inc All rights reserved Reproduction without permission is prohibited EPM 3032 3337 3438 3112 DKO1 Modules User s Manual The software described in this manual is furnished under a license agreement and may be used only in accordance with the terms of that agreement Copyright Notice Copyright 2011 Moxa Inc All rights reserved Reproduction without permission is prohibited Trademarks The MOXA logo is a registered trademark of Moxa Inc All other trademarks or registered marks in this manual belong to their respective manufacturers Disclaimer Information in this document is subject to change without notice and does not represent a commitment on the part of Moxa Moxa provides this document as is without warranty of any kind either expressed or implied including but not limited to its particular purpose Moxa reserves the right to make improvements and or changes to this manual or to the products and or the programs described in this manual at any time Information provided in this manual is intended to be accurate and reliable However Moxa assumes no responsibility for its use or for any infringements on the rights of third parties that may result from its use This product might include unintentional technical or typographical errors Changes are periodically made to the inform
33. Edit View Favorites Tools Help Bad d pa Search E Folders Address Control Panel v VE FontratPanci at Accessibility Options G Switch to Category View To Administrative Tools See Also Windows Update 9 Help and Support Display e Game Controllers Keyboard Pi Network Setup Wizard 93 Printers and Faxes Scanners and Cameras Speech User Accounts Wireless Link Add Hardware Data Sources ODBC Folder Options Intel R GMA Driver For Mobile Mouse Phone and Modem Options Realtek HD Sound Effect Manager Scheduled Tasks xu Windows CardSpace SS Wireless Network Setup Wizard Add or Remove Programs Date and Time Fonts Internet Options A Network Connections A Power Options Regional and Language Options de 4 Sounds and Audio Devices Taskbar and Start Menu Windows Firewall 4 51 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 2 Click Hardware gt Device Manager System Properties General Computer Mame Device Manager The Device Manager lists all the hardware devices installed on your computer the Device Manager to change the properties of any device mei Drivers Driver Signing lets you make sure that installed drivers compatible with Wi
34. Mbps 90 dBm 2 Mbps 88 dBm 5 5 Mbps 84 dBm 11 Mbps 802 110 87 dBm 6 Mbps 86 dBm 9 Mbps 85 dBm 12 Mbps 82 dBm 18 Mbps 80 dBm 24 Mbps 76 dBm 36 Mbps 72 dBm 48 Mbps 70 dBm 54 Mbps e 802 11a 87 dBm 6 Mbps 86 dBm 9 Mbps 85 dBm 12 Mbps 82 dBm 18 Mbps 80 dBm 24 Mbps 76 dBm 36 Mbps 72 dBm 48 Mbps 70 dBm 54 Mbps RX Sensitivity MI MO 802 11a n 68 dBm MCS15 40 MHz 70 dBm MCS7 40 MHz 69 dBm MCS15 20 MHz 71 dBm MCS7 20 MHz 802 114 68 dBm 515 40 MHz 70 dBm 9 MCS7 40 MHz 69 dBm 515 20 MHz 71 dBm MCS7 20 MHz 1 5 EPM 3032 3337 3438 3112 DKO1 Modules Introduction General Protocols Proxy ARP DNS HTTP HTTPS IP ICMP SNTP TCP UDP RADI US SNMP PPPoE DHCP AP only Protocols ARP BOOTP DHCP dynamic VLAN Tags for 802 1X Clients STP RSTP IEEE 802 1D w WLAN Interface Default Antenna 2 dBi dual band omni directional antenna RP SMA male Connector for External Antennas RP SMA female Physical Characteristics Weight 220 g Dimensions 104 x 121 x 34 mm 4 09 x 4 76 x 1 34 in Environmental Limits Operating Temperature 25 to 55 C 13 to 131 F EPM 3438 Specifications Digital Input Input Channels 8 source type Input Voltage 0 to 5 VDC at 15 Hz Digital Input Levels Logic level 0 Close to GND Logic level 1 Open Connector Type Terminal block Digital Output Output Channels 8 sink type
35. PI controllers lt lt Keyboards and other pointing devices Monitors Bb Moxa Device MOA 3438 DIO Expansion Module PCI Device 5 Multi port serial adapters Network adapters Ports amp LPT Processors 4 Sound video and game controllers Hie System devices Universal Serial Bus controllers 4 35 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide EPM 3438 Programming Guide You can set operations through programming the following DIO example can be found in the software DVD at examples C Moxa functions for DI DO When successful this function returns an access to the DIO device Otherwise there is an error Function int mxdgio get input signal HANDLE fd int port This function gets the signal state of a digital input channel Input fd The access to the device port port he state DIO HIGH 1 for high DIO LOW 0 for low Returns 1 for a high signal or 0 for a low signal if successful Otherwise it returns a value of 1 int mxdgio get output signal HANDLE fd int port This function gets the signal state of a digital output channel Input fd The access to the device 000000000000 int mxdgio set output signal high HANDLE fd int port This function sets a high signal to a digital output channel Input fd The access to the device 000000000
36. RS 232 422 485 ports with DB9 connectors HSDPA GPS WLAN 11n e 8DIs and 8 DOs with KV digital isolation protection and a 2 KHz counter 2 isolated CAN ports with DB9 connectors e Mini PCI and Mini PCle expansion module EPM Module Specifications EPM 3032 Specifications Serial Interface Serial Standards 2 RS 232 422 485 ports software selectable DB9 male Isolation 2 KV digital isolation Serial Communication Parameters Data Bits 5 6 7 8 Stop Bits 1 1 5 2 Parity None Even Odd Space Mark Flow Control RTS CTS XON XOFF ADDC automatic data direction control for RS 485 Baudrate 50 bps to 921 6 Kbps non standard baudrates supported see user s manual for details Serial Signals RS 232 TxD RxD DTR DSR RTS CTS DCD GND RS 422 TxD TxD RxD RxD GND RS 485 4w TxD TxD RxD RxD GND RS 485 2w Data Data GND 1 2 EPM 3032 3337 3438 3112 DKO1 Modules Introduction Physical Characteristics Weight 137 g Dimensions 104 x 121 x 34 mm 4 09 x 4 76 x 1 34 in Environmental Limits Operating Temperature 40 to 70 C 40 to 158 F EPM 3112 Specifications CANbus Communication Interface 2 optically isolated CAN2 0A 2 0B compliant ports CAN Controller Phillips 5 1000 Signals CAN H CAN L Isolation 2 KV digital isolation Speed 1 Mbps Connector Type DB9 male Physical Characteristics Weight 127 g Dimensions 104 x 121 x 34 mm 4 09 x 4 76 x 1 34 in Envi
37. Show else main int char argv DGIOMNGR mngr int HWIndex TN POE int interval dif defined WIN32 int ehar 2 56 7 WideCharToMultiByte 0 LPCTSTR lpCmdLine 255 cmdline 256 NULL NULL argo 324 endi If gt 1 interval 11 else interval INTERVAL mngr digit io timer init if mngr NULL print timer iii return 1 HWIndex 0 HWIndex 0 for embedded DIO for port 0 port lt 1 port if digit io timer add callback mngr HWIndex port DGTIO GET INPUT STATE CHANGE interval input cb amp port 0 printf add Sd input change callback error n port return 2 if digit io timer add callback HWIndex port DGTIO GET INPUT interval input get amp port lt 0 printf ade input callback errorXn port eq ur 5 if digit io timer add callback mngr HWIndex port DGTIO SET OUTPUT interval output set cb amp port lt 0 4 12 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide printf add d set output callback error n port return 4 if digit io timer add callback mngr HWIndex port DGTIO GET OUTPUT interval output_get_cb amp poru lt 0 4 printi add d get output callback errorYu port EGDUTIM e53
38. TE Do not close the program while the connection is established or the device driver may not work properly 52 Wireless Network Connection 6 Status General Support Connection status Address Type Assigned by DHCP IP Address 111 82 69 227 Subnet Mask 255 255 255 248 el Default Gateway 111 52 89 225 Details Windows did not detect problems with this connection IF you cannot connect click Repalr 7 Now you can access this wireless network connection CIHWIHDOWSsystem32wmd exe Microsoft Windows 5 1 96 1 cum wuiw gqoogle com twu 72 14 23 99 with 32 bytes of data 72 14 283 99 bytes 32 time 2HHms TTL 51 72 14 283 99 hytes 32 time 181ms TIL 51 72 14 2835 99 hytes 32 time 2H83ms TIL 51 2 14 203 99 bytes 32 time 14Zms TTL 51 statistics for 72 14 2863 99 Packets Sent 4 Received 4 Lost 1055 gt Approximate round trip times in milli seconds Minimum 142m Maximum 29315 Average 1Bims G Documents and Settings Administrator gt _ 4 55 3032 3337 3438 3112 1 Modules Enabling GPS Functionality Software Installation and Programming Guide GPS functionality is only enabled in the multiplexer mode of the module A Winmux2K driver is offered to configure the module in multiplexer mode In multiplexer mode the system will generate virtual COM ports to communicate Therefore the modem po
39. at bootup It takes a modem port dev ttyACMO as a parameter and create three pseudo terminal slaves ls dev pts 0 de 2 DEDE dev pts 0 Modem port dev pts 1 Command port dev pts 2 GPS port 4 16 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide NOTE 1 The command port in multiplexer mode only accepts AT commands with the suffix r n i e carriage return and new line You can see the echo example in Enable GPS port by issuing command or set the terminal output flag with command stty F dev pts 1 opost onlcr Here option onlcr translates newline to carriage return newline 2 For the second EPM3337 module the allocation will be dev pts 3 Modem port dev pts 4 Command port dev pts 5 GPS port ATTENTION The number assigned to pts is affected by remote log in programs eg ssh or telnet Therefore it is advisable to perform moxa hc25 mux at startup to make sure the pts number is 0 to 2 If there is more than 1 EMP3337 module the number of pts increases to 3 to 5 and so on 4 Enable GPS port by issuing a command to the command port Moxa cat lt dev pts 1 6 Moxa echo e AT SGPSS 4 r gt dev pts 1 Moxa killall cat Check for NMEA data from the GPS port dev pts 2 Moxa cat lt dev pts 2 SGPGSV 1 1 04 24 28 123 37 21 09 054 31 19 52 213 23 47 270 11 SGPGGA 061824 0 2458 835139 N 12133 055835
40. ation herein to correct such errors and these changes are incorporated into new editions of the publication Technical Support Contact nformation Moxa Americas Toll free 1 888 669 2872 Tel 1 714 528 6777 Fax 1 714 528 6778 Moxa Europe Tel 49 89 3 70 03 99 0 Fax 49 89 3 70 03 99 99 WWW moxa com su ort Moxa China Shanghai office Toll free 800 820 5036 Tel 86 21 5258 9955 Fax 86 21 5258 5505 Asia Pacific Tel 886 2 8919 1230 Fax 886 2 8919 1231 Table of Contents 1 Introduction iaia era 1 1 OVEVIOW Sania tO 1 2 Package Cc E E 1 2 sid SENE A 1 2 EPM Module Specilicdbloli9z2 iain ee iui 1 2 EPM 3032 SDGCIfICatlOflS deae eve E eci 1 2 5 hd e g Lul acc 1 3 EPM 5BDGCI T 514 E do dE 1 3 EPM 3438 SPEcificationss I O 1 6 EPMr3 55 2 5 DCCIICAUONS I E QUEEN E RUE D NER NK D ETE NE CEU D MED ME RNA e 1 6 2 Hardware Introduction ni RR 2 1 APDET E dele SENE ta 2 2 DIMENSIONS 2 4 3 Hardware
41. b Atheros Client Utility Current Profile Default Atheros AR922X Wireless Hetwork Adapter P4 Action Options Help cme M MP x Current Status Profile Management Diagnostics Profile Name ATHEROS Link Status Wireless Mode Default Not Associated 3 GHz 130 Mbps Server Based Authentication IP Address fe80 203 Fe be er34 3 Signal Strength P gra XSPAN Network Type Infrastructure Control Channel Scanning Extension Channel Data Encryption Link Advanced 2 Click the Advanced button You will see current wireless connection status Advanced Status Network Mame 5510 Server Based Authentication Data Encryption Authentication Type Message Integrity Check 105 Authentication Management Frame Protection Associated 4P Name Associated IP Address Associated MAC Address Power Save Mode Current Power Level Available Power Levels 5 GHZ Available Power Levels 4 4 GHz Hormal 95 dem 95 dem 00 17 80 Current Signal Strength Current Level Up Time a0z 11b Preamble Current Hate Current Transmit Rate Control Channel Extension Channel Control Frequency Extension Frequency Channel Set Channel Width 50 40 25 20 13 10 3 8 7 5 4 3 2 1 100 63 50 32 20 10 3 8 7 5 4 3 2 1 4 61 Short amp Long
42. boot the system O No will restart my computer later Remove any disks from their drives and then click Finish to complete setup Finish 4 50 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 15 After installation completes you will find the Siemens HC25 HSDPA USB Modem Siemens HC25 Wireless Ethernet Adapter and Siemens HC25 USB COM Port in Device Manager Bh Device Manager Action View Help Modems zm Siemens HC25 HSDPA USE Modem 29 Monitors x Sa Multi port serial adapters 7 Eg Network adapters Hg Atheros ARGz2X Wireless Network Adapter Realtek PCIe GBE Family Controller i H9 Realtek PCIe Family Controller 2 800 Siemens HC25 Wireless Ethernet Adapter 2 Ports amp LPT A Port 1 COMI Port 1 COME MOXA Port 2 COM2 Port 2 COMB AX Port 3 Port 4 10 Siemens 25 USB Com Pork 7 Processors E 40 Sound videa and game controllers E System devices IDE controllers Configuring the GPRS HSDPA Connection without GPS This section illustrates how to establish a connection with the Siemens HC25 Connection Manager utility Follow the steps below to configure 3G GPS and the wireless driver l Goto the Control Panel gt System Control Panel t LA File
43. bps multiple rates supported Operating Channels central frequency US 2 412 to 2 462 GHz 11 channels 5 18 to 5 24 GHz 4 channels EU 2 412 to 2 472 GHz 13 channels 5 18 to 5 24 GHz 4 channels USA 1 to 11 2400 to 2483 5 MHz Europe 1 to 13 2400 to 2483 5 MHz Japan 1 to 14 2400 to 2497 MHz 802 110 e USA 1 to 11 2400 to 2483 5 MHz Europe 1 to 13 2400 to 2483 5 MHz Japan 1 to 13 2400 to 2497 MHz 802 11a USA 36 to 165 5180 to 5825 MHZ Europe 36 140 5180 to 5700 MHz Japan 7 to 11 5035 to 5055 2 183 to 189 4915 to 4945 MHz Security 64 bit and 128 bit WEP encryption WPA WPA2 Personal and Enterprise IEEE 802 1X RADIUS TKIP and AES Transmission Rates 802 11b 1 2 5 5 11 Mbps e 802 11 9 6 9 12 18 24 36 48 54 Mbps 802 11n 6 to 300 Mbps multiple rates supported TX Transmit Power 802 110 1 to 11 Mbps 18 dBm 1 5 dBm 802 11g 6 to 24 Mbps Typ 18 dBm 1 5 dBm 36 to 48 Mbps Typ 17 dBm x 1 5 dBm 54 Mbps Typ 15 dBm x 1 5 dBm 802 11a 6 to 24 Mbps 17 dBm 1 5 dBm 36 to 48 Mbps 16 dBm 1 5 dBm 54 Mbps 14 dBm x 1 5 dBm TX Transmit Power MI MO 802 11a n 20 40 MHz 515 20 MHz 13 dBm 1 5 dBm 515 40 MHz Typ 12 dBm 1 5 dBm 802 11g n 20 40 MHz MCS15 20 MHz 14 dBm 1 5 dBm MCS15 40 MHz Typ 13 dBm 1 5 dBm RX Sensitivity 802 11b 92 dBm 1
44. cessive retries 0 Invalid misc 0 Missed beacon 0 3 Example 3 Connect to AP SSID test wpa2 with WPA2 key 1234567890 ascii a The configuration file test wpa wpa2 conf can also apply to the WPA2 connection By following the directions in example 2 you can get results below wlan0 IEEE 802 11abgn ESSID test wpa2 Mode Managed Frequency 2 462 GHz Access Point 00 1F 1F 8C 0F 64 Bit Rate 1 Mb s Tx Power 27 dBm Retry min limit 7 RTS thr off Fragment thr off Encryption key 8546 8201 6DCA 8A37 6EE6 AD44 8D3F 6553 2 Security mode open Power Management off Link Quality 40 70 Signal level 70 dBm Rx invalid nwid 0 Rx invalid crypt 0 Rx invalid frag 0 Tx excessive retrles 0 Invalid misc 0 Missed beacon 0 ATTENTION View the following references for more information about wpa_ supplicant Website http hostap epitest fi wpa_supplicant The configuration README http hostap epitest fi gitweb gitweb cgi p hostap git a blob plain f2wpa supplicant README Getting Wireless Card nformation The program iw is a new nl80211 based CLI configuration utility It can get more complete information than iwconfig for 802 11n Although still under development it contains some useful functionality To get the connection data you can issue iw dev interface station dump Moxa iw dev wlan0 station dump Station 00 1f 1f 8c 0 f 64 on wlanl inactive time 35696 ms rx bytes 98054 rx packets 364 tx bytes 733 t
45. e cd dev shm mount remount rw dpkg i epm3438 2 6 30 bpo 2 686 de umount After the driver installs you can use Ismod to check if the epm3438 module is loaded the kernel 4 4 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide Moxa lsmod more Module Size Used by epm3 438 4620 0 In etc init d moxainit sh will add the modprobe 3438 and modprobe r 3438 lines Moxa vi etc init d moxainit sh start modprobe moxa_device_dio device v2400 modprobe mxser modprobe epm3438 modprobe epm3438 modprobe r moxa_swtd modprobe r moxa device dio 7 If you need to uninstall the driver you can use this mount o remount rw epm3438 i umount EPM 3438 Programming Guide Digital 1 Digital input output channels are featured in some models of Moxa embedded computers including the UC 7408 UC 8410 1 240 1 260 W406 and 3438 These channels can be accessed at run time for control or monitoring using the functions in the following sections Digital Output channels can be set to high or low via each port starting from 0 The Digital Input channels can be used to detect the state change of the digital input signal The header file of digital 1 O functions is mxdgio h which is located in the digit_input_change directory for Linux Moxa functions for DI DO When successful thi
46. ector x 4 EPM 3438 DI Channel x 8 DO Channel x 8 EPM 3032 3337 3438 3112 DKO1 Modules Hardware ntroduction EPM 3552 090056000 allo boo ale 000090000 VGA Port x 1 DVI D Port x 1 EPM DKO1 PCI Express mini card socket Mini PCI socket Connector x 4 Reserved EPM 3032 3337 3438 3112 DKO1 Modules Hardware ntroduction Dimensions 49 mm 1 93 in E E mm 24 mm 0 94 in 2 34 1 34 121 mm 4 76 in 3 Hardware Connection Description In this chapter we show how to connect the embedded computers to the network and to various devices The following topics are covered in this chapter I Installing the EPM Expansion Modules Connecting Data Transmission Cables Connecting to the EPM 3032 Serial Port Module Connecting to the EPM 3337 Wireless GPS Module Connecting to the EPM 3438 DI DO Module Connecting to the EPM 3112 CANbus Port Module Connecting to the EPM DK01 Module Y VV WV 3032 3337 3438 3112 DKO1 Modules Hardware Connection Description Installing the EPM Expansion Modules The EPM series expansion modules are designed to work with Moxa s V2422 and V2426 embedded computers Below we describe how to insert the modules into the embedded computer slots 1 Remove the module cover screws Screws Screws 2 Remove the cover from the slot 1 111
47. es Hardware Connection Description Digital Input Digital Input Dry Contact Wiring Wet Contact Wiring Connecting to the EPM 3112 CANbus Port Module The EPM 3112 offers two CANbus ports with DB9 male connectors Use a cable to plug your CAN device into the module s serial port The assignments are shown the following table DB9 Male CANbus Pinouts 1 5 6 9 3032 3337 3438 3112 DKO1 Modules Hardware Connection Description Connecting to the EPM DKO1 Module EPM DK01 offers mini PCI and a mini PCle sockets allowing users to insert mini PCI or a mini PCle card See the following figure for the specific locations when installing these cards Meanwhile if you need to connect the antenna use the connectors on the exterior panel PCI Express mini card socket Mini PCI socket Connector x 4 Reserved 3 5 4 Software nstallation and Programming Guide In this chapter we discuss software installation and programming guide for the EPM 3032 EPM 3337 and EPM 3438 expansion modules The following topics are covered in this chapter I Linux System gt EPM 3032 Driver Installation gt EPM 3032 Programming Guide gt EPM 3438 Driver Installation gt EPM 3438 Programming Guide gt EPM 3337 Driver Installation gt EPM 3112 Driver Installation gt EPM 3112 Programming Guide O Windows System EPM 3032 Driver Installation Configuring Serial Port Mode
48. figure your client adapter NOTE If you select a third party tool some of the ACU features will not be available To activate those features you must install the ACU 10 Select Atheros Client Utility ACU and Supplicant and click Next Atheros Client Installation Program Choose Configuration Tool Which tool will you use to configure your client adapter Third Party Supplicant 11 Click Yes Atheros Client Installation Program 4 49 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 12 Click OK Atheros Client Installation Program not pet inserted cancel the Found New Hardware Wizard if it appears and proceed with the installation Click to continue 1 The installation program installe the driver automatically when the client adapter i inserted Insert the adapter if it 13 Wait for the driver to install Atheros Client Installation Program Setup Status Atheros Client Installation Program is configuring your new software installation Installing the driver files Cancel 14 Select Yes want to restart my computer now and click Finish Atheros Client Installation Program InstallShield Wizard Complete The Installation Program has successfully performed the selected operations but the system needs to be rebooted before all of the changes will take effect Click to re
49. ime only CO Yes now and every time connect a device Click Next ta continue 4 25 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 7 Select Install the software automatically and then click Next Found Hew Hardware Wizard This wizard helps install software Far LIA 1020 Senes PCI Bus 9 If your hardware came with installation CD floppy disk insert it now What do you want the wizard to do C Install from list or specific location Advanced Click Next to continue 8 The driver will be installed automatically When finished you can find the module listed in the Device Manager You can start using the module now Device Manager amp ction View Help E E See Disk drives Display adapters Human Interface Devices IDE ATAJATAPI controllers HE Keyboards 2 gt and other pointing devices a Monitors 8 Multi port serial adapters ZEN noxa 3032 Expansion Module PCI Bus 890 MUS60 UART CHIP PCI Bus Network adapters dv Ports amp LPT MOXA Part 1 COMI Part 1 COME 19 Part 2 COM2 Ay Port 2 COME 9 Port 3 COM3 0 od Part 4 Processors FD Sound video and game controllers System devices 4 26 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Prog
50. ing unsigned int fd Description Get the bus timing of an opened port Input fd the opened port Return 0 on failure otherwise the bus speed in KHz Function int mxcan get parameters unsigned int fd CANPRM param Description Get the parameter of an opened port Input fd the opened port Output lt param gt pointer to a structure of CANPRM Return on success Otherwise return a negative value 4 21 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide Function Description Input Output Return Function Description Input Output Return Function Description Input Output Return Function Description Input Output Return Function Description Input Output Return Function Description Input Output Return Function Description Input Output Return Function Description Input Output Return Function int mxcan get registers unsigned int fd unsigned char buffer int num Get the register values of an opened port lt fd gt the opened port lt num gt number of register values For module with sja1000 chipset the value must be 32 lt buffer gt point to a buffer for these values on success otherwise failure int mxcan get stat unsigned int fd CANBST stat Get the statistics of an opened port lt fd gt the opened port lt stat gt point to a contianer of statistics on success otherwise failure int mxcan inqueue unsig
51. mum extent possible under the law Cancel 4 33 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 2 Click Next to install by default settings EPH 3438 Select Installation Folder The installer will install 3436 to the following folder install in this folder click Next install ta a different folder enter iE below or click Browse Folder C Program FilestMOXANEPM 3438 Install 3438 for yourself or for anyone who uses this computer gt Everyone Just me Cancel 3 Click Next to begin installation i EPM 3438 Confirm Installation The installer is ready to install EPM 3438 an your computer Click Nest to start the installation 4 34 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 4 Click Close to complete the installation EPH 3438 Installation Complete EPFM 3438 has been successtully installed Click Close to exit 5 Now you need to shut down the computer insert the EPM 3438 expansion module into the embedded computer and then reboot the computer 6 The system will find the new hardware and install the driver automatically now the module is ready for use Device Manager Action View Help Hee EE DH P Computer BB Device Drivers Disk drives Display adapters Human Interface Devices 65 IDE ATA ATA
52. ndows Windows Update lets you set up how Windows connects to Windows Update for drivers Driver Signing Windows Update Hardware Profiles Hardware profiles provide a way for vou to set up and store different hardware configuration Hardware Profiles I 3 Right click Serial Multiplexer gt Properties gt Port Settings L5 Device Manager File Action View Help E lt OEM 4QDS7QFP3LL Computer 8 Device Drivers See Disk drives Display adapters Human Interface Devices 23 IDE ATA ATAPI controllers c Keyboards Mice and other pointing devices Modems 2 Monitors Multi port serial adapters Ep MU860 UART CHIP PCI Bus E i Serial Multiplexer 5 8 Network adapters Ports COM amp LPT 898 Processors 9 Sound video and game controllers Storage volumes System devices Universal Serial Bus controllers 4 52 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide Serial Multiplexer COM3 Properties AX General Port Settings Driver Physical Serial Modem Modem Fort Name Baud Rate bps 115200 Virtual Serial Modem Ports Virtual Ports Virtual Part 1 data channel Virtual Part 2 COM12 Virtual Port 3 COM13 4 Open Virtual Port 2 Ex COM12 and enter a
53. ndustrial applications The following topics are covered in this chapter 0 0 0 Overview Package Checklist Product Features EPM Module Specifications gt EPM 3032 Specifications gt EPM 3112 Specifications gt EPM 3337 Specifications gt EPM 3438 Specifications gt EPM 3552 Specifications 3032 3337 3438 3112 DKO1 Modules Introduction Overview Moxa s EPM series modules which include modules with serial ports a wireless GPS a digital input output channel card a CANbus card and a mini card work with Moxa s V2422 and V2426 embedded computers giving end users the ability to set up and expand a variety of industrial applications Package Checklist The EPM Series includes the following models e EPM 3032 Module with 2 isolated RS 232 422 485 ports with DB9 connectors e EPM 3337 Module with HSDPA GPS WLAN 11n e EPM 3438 Module with 8 015 and 8 DOs with KV digital isolation protection and a 2 KHz counter e EPM 3112 Module with 2 isolated CAN ports with DB9 connectors e Mini PCI and Mini PCle expansion module Each model is shipped with the following items e 1 EPM 3032 3337 3438 3112 DKO1 expansion module NOTE Please notify your sales representative if any of the above items are missing or damaged Product Features The EPM series expansion modules have the following features e slots for interface expansion 2 isolated
54. ned int fd Get the number of received bytes that are queued in the driver of an opened port fd the opened port None 0 on failure the number of bytes unsigned int mxcan open int port Open a can port by the port number port port number starting from 1 In Linux open port 1 will open dev canO None 0 on failure otherwise return fd int mxcan outqueue unsigned int fd Get the number of bytes waiting for being transmitted to a can port fd the opened port None 0 on failure the number of bytes int mxcan purge buffer unsigned int fd unsigned int purge Purge the buffers of an opened port fd the opened port purge 1 receive data buffer 2 transmit data buffer otherwise both None on success otherwise failure int mxcan set bus timing unsigned int fd unsigned int speed Set the bus timing of an opened port fd the opened port speed bus timing in KHz The available values are 5 10 20 40 50 80 100 125 200 250 400 500 666 800 1000 None on success otherwise returns a negative value int mxcan set nonblocking unsigned int fd Set the opened fd to be non blocking fd the opened port None on success otherwise returns a negative value int mxcan set parameters unsigned int fd CANPRM param 4 22 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide Description Set the parameter of an opened port Input lt fd gt the opened p
55. of DGIOMNGR if mngr 0 mdodo open 1f 1 Jared 08 10 2010 support the second 3438 mngr gt fd 1 mxdgio_epm3438_open 0 The first EPM 3438 mngr gt fd 2 mxdgio_epm3438_open 1 The second EPM 3438 fendi T moor ted 93 free mngr mngr NULL return mngr a digital io timer with a selected operation mode Inputs lt mngr gt timer manager lt HWIndex gt specify which hardware device 0 embedded DIO 1 EPM 3438 1 2 EPM 3438 2 4 9 EPM 3032 3337 3438 3112 DK01 Modules Software Installation and Programming Guide lt port gt specify which DIO pin mode the operation mode on the port interval the interval in milliseconds between 2 calls to a user defined function int lt cb gt the user defined callback function lt arg gt argument to the function Returns 0 on sucess otherwise failure digit io timer add callback DGIOMNGR mngr int HWIndex int port int mode int interval t cb word DGLOLTEM item DGIOITEM 1 sizeof DGIOITEM if item return 5 12 item next mngr gt list mngr gt list item item cb ltem gt arg item gt HWIndex HWIndex Jared 08 10 2010 HWIndex to support multiple boards item gt port port item mode mode item interval interval item next time interval
56. option usepeerdns in dev pppt chtgprs Then assign a DNS etc resolv conf manually usepeerdns use the DNS servers from the remote network 2 Remove ppp 2 4 4 and install ppp 2 4 5 deb Moxa apt get remove ppp Moxa home dpkg 1 ppp 2 4 5 deb The EPM 3337 s Two Operating Modes The EPM 3337 module has two modes 1 Normal Mode Supports only GPRS HSDPA functionality without GPS The allocation of ports is Modem port dev ttyACMO Command port dev ttyUSBO 2 Multiplexer Mode Supports both GPRS HSDPA and GPS functionality It needs to perform a multiplexer program to put the module into multiplexer mode The allocation of ports is e Modem port dev pts O Command port dev pts 1 GPS port dev pts 2 Note If you do not need the GPS functionality use normal mode for better performance 4 15 EPM 3032 3337 3438 3112 DK01 Modules Software Installation and Programming Guide Normal mode GPRS HSDPA functionality only This section illustrates how to establish a connection with pppd configuration The example files used are listed below etc ppp peers chtgprs a pppd additional option file etc chatscripts chtgprs connect chat file for connection etc chatscripts chtgprs disconnect chat file for disconnection Follow the steps below to set up your pppd l Configure the etc ppp peers chtgprs file a First check if the name of the modem port is correct It sho
57. ort lt param gt pointer to a structure of CANPRM Output None Return on success otherwise return a negative value Moxa definitions for CANbus define mxcan close fd close int fd define mxcan read fd buffer size hndl read int fd buffer size define mxcan write fd buffer size hndl write int fd buffer size Example Code You can download the library example code from MOXA website http www moxa com support support_ home aspx ATTENTION View the following reference for more information http en wikipedia org wiki Controller area network Windows System EPM 3032 Driver Installation Before using the EPM 3032 expansion module you need to update the driver Please install the driver before inserting the expansion module Use the following steps to install the EPM 3032 module driver 1 Execute EPM3032Setup exe to install the driver and then click Next iz EPM30325etup Welcome to the EPM3032Setup Setup Wizard The installer wall quide you through the steps required to install 30325 etup on pour computer WARNING This computer program protected by copyright law and international treaties Unauthorized duplication or distribution of this program any portion of it may result in severe civil or criminal penalties and will be prosecuted to the maximum extent possible under the law Cancel 4 23 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming
58. p 1000 to tv usec ms sleep 1000 1000 TE select 0 NULL 39 7 sleep break else Sleep ms_sleep fendi mngr gt now_time ms_sleep dgio input change release mngr File and Folder digit_input_change main c Description This program is an example to operate timer functions on digital IO ports include lt stdio h gt include lt stdlib h gt include digit_io_timer h Stat EHE input HWIndex port 100 5180 VoLd printer input HWindex port HWInd Dort 810 return 0 static int input ger Cb int HWindex port Ht 815 vord pprstt input get cb port HWIndex port 814 return 0 Stacie SIE output set cb int HWIndex int port int last sig void 4 11 EPM 3032 3337 3438 3112 DK01 Modules Software Installation and Programming Guide printf output set cb HWIndex d port d last sig HWIndex port last sig 2S ior Last sig 2 printf new sig d n last sig return last_sig stati ant Gec NE HWIWOSS copi pobLe ine Sloy VOIT egg printr output get cb BWIndex Sd port sig lt d n BHWlndex port 510 return 0 define INTERVAL 10000 TRE dif defined WIN32 WINAPI WinMain HINSTANCE hInstance HINSTANCE hPrevinstance LPTSTR lpCmdLine int nCmd
59. pplicant i wlanO c test wep conf B c Use iwconfig to check connection state wlan0 IEEE 802 11abgn ESSID test Mode Managed Frequency 2 462 GHz Access Point 00 1F 1F 8C 0F 64 Bit Rate 36 Mb s Tx Power 27 dBm Retry min limit 7 RTS thr off Fragment thr off Encryption key 1234 5678 90 Security Power Management Link Quality 37 70 Signal level 73 dBm Rx invalid nwid 0 Rx invalid crypt 0 Rx invalid frag 0 Tx excessive retries 0 Invalid misc 0 Missed beacon 0 2 Example 2 Connect to 5510 test wpa with key 1234567890 ascii a Write a configuration file test wpa wpa2 conf as below network ssid test_wpa key_mgmt WPA PSK proto WPA RSN pairwise TKIP CCMP group TKIP CCMP psk 1234567890 b Connection with the following commands wpa_supplicant i wlanO c test wpa2 conf 4 19 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide c Use iwconfig to check the connection state wlan0 IEEE 802 11abgn ESSID test wpa Mode Managed Frequency 2 462 GHz Access Point 00 1F 1F 8C 0F 64 Bit Rate 36 Mb s Tx Power 27 dBm Retry min limit 7 RTS thr off Fragment thr off Encryption key 157A lDBD B0C3 7CC8 O0F9C D059 2881 F815 E4DB 3705 6969 8253 865E 4DFO FDB8 AECI 2 Security mode open Power Management off Link Quality 34 70 Signal level 76 dBm Rx invalid nwid 0 Rx invalid crypt 0 Rx invalid frag 0 Tx ex
60. ramming Guide Configuring Serial Port Mode Do the following steps to configure the operation mode of each COM port 1 Go to the Control Panel gt Ports COM amp LPT and select the COM port ex MOXA Port 0 COM1 2 Right click the COM port and click Properties 3 Inthe Port Settings tab select the interface you want to use Computer Management Action View Window Help e E OEM 5JC PIIOENVIGS Computer BS Device Drivers Disk drives Display adapters Human Interface Devices IDE ATAJATAPI controllers vx Keyboards Mice and other pointing devices Monitors Multi port serial adapters MUS60 UART CHIP PCI Bus BS Network adapters V Ports amp LPT E Pork 1 COMI 29 MOXA Port 2 MOXA Port 3 MOXA Port 4 ie Processors Scan for hardware changes Sound video and game i a Storage volumes Opens property sheet For the current s Update Driver Disable Uninstall 4 Click OK to apply the settings MOXA Port 1 COHT Properties General Part Settings Driver Details Interface Baud Hate Data bits Parity Stop bits Flow control Cancel 4 27 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide In some situations you may want to change the port name to fit your program Use the following steps to
61. rlios de As described in this section in multiplex mode the modem port is dev pts O instead of dev ttyACMO Check that the modem port is dev pts 0 at etc ppp peers chtgprs See etc ppp option for detail dev pts 0 modem port used 115200 speed Then you can connect GPRS HSDPA through pppd Moxa pppd call chtgprs Troubleshooting for pppd To enable debug messages in pppd do following steps in etc ppp peers chtgprs temporarily e Enable option debug and logfile var ppp log e Add V option in usr sbin chat 4 18 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide Debug option You call tail f var ppp log amp debug logfile var ppp log connect usr sbin chat V etc chatscripts chtgprs connect Then see var ppp log for more detail message Setting up a Wireless Connection This section introduces how to connect to a access point with WEP WPA WPA2 RSN encryption The connection program is wpa_supplicant The basic command is wpa_ supplicant i lt interface gt c lt configuration file gt B B run at background 1 Example 1 Connect to SSID test wep with WEP key 1234567890 hex a Write a configure file test wep conf as below network ssid test_wep key_mgmt NONE wep key0 1234567890 wep_keyl abcde 2 1234567890123 wep_tx_keyidx 0 priority 5 b Connection with following commands wpa_su
62. ronmental Limits Operating Temperature 25 to 55 C 13 to 131 F EPM 3337 Specifications Cellular Interface Frequency Bands UMTS HSDPA Triple band 850 1900 2100 MHz GSM GPRS EDGE Quad band 850 900 1800 2100 MHz e GSM Dass Small MS Output Power Class 4 33dBM 2dB for EGSM 850 Class 4 33dBM 2dB for EGSM 900 Class 1 30dBM 2dB for GSM 1800 e Class 1 30dBM 2dB for GSM 1900 e Class E2 27dBM 3dB for GSM 850 8 PSK e Class E2 27dBM 3dB for GSM 900 8 PSK e Class E2 26dBM 3 4dB for GSM 1800 8 5 e Class E2 26dBM 3 4dB for GSM 1900 8 5 Class 3 24dBM 1 for UMTS 2100 WCDMA FDD Class 3 24dBM 1 3dB for UMTS 1900 WCDMA FDD Ball Class 3 24dBM 1 3dB for UMTS 850 WCDMA FDD Power Supply 3 2 to 4 2 HSDPA Interface 3GPP Release 5 3 6 Mbps UL 384 Kbps UE CAT 1 6 11 12 supported e Compressed mode CM supported according to 3GPP TS25 212 1 3 3032 3337 3438 3112 DKO1 Modules Introduction GPS Interface Protocol NMEA Modes GPS assisted GPS AGPS Sensitivity At antenna connector Acquisition sensitivity 143 dBm Tracking sensitivity 156 dBm General Power saving modes power supply for active antenna AT Commands AT Hayes GSM 07 05 and 07 07 Cinterion AT commands for RIL compatibility NDIS RIL GSM GPRS EDGE I nterface GPRS Multislot Class 10 Full PBC
63. rt becomes one of the virtual COM ports This section describes how to set up GPS functionality Follow the steps below to enable GPS functionality l Open Device Manager and check the relative COM ports Serial Multiplexer 15 Properties h ETEN General Port Settings Driver Details Physical Serial Modem Fort Modem Port Name Baud Rate bps Virtual Serial Modem Ports Virtual 3 Virtual Ports Virtual Part 1 data channel COMI Virtual 2 2 Open Terminal Emulator and open GPS relative ports Property Communication Parameter Terminal File Transfer Capturing COM Options Ports 8 Baud Rate 11520 Data Bits CREO Parity Stop Bits Flow Control Output State ATS CTS ON OFF HIS ON OFF 3 Cancel 4 56 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 3 Enter at sgpss 4 to enable GPS functionality E PComm Terminal Emulator COHT18 115200 Hone Profile Edit Port Manager Window Help 9 GA sea 528 com19 115200 Hone 8 1 ANSI 4 Receive the information returned through GPS and verify that the position value is correct E PComm Terminal Emulator C OH19 115200 Hone 8 1 AH51I Profile Edi
64. s num number of register values for a module with sja1000 chipset the value must be 32 Return Value O on success other numbers indicate failure 4 64 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide int mxcan get stat int fd CANBST stat 1 on failure otherwise the number of bytes int mxcan purge buffer int fd unsigned int purge Purges the buffers of an open port fd the open port Output purge 1 received data buffer 2 transmit data buffer otherwise both Return Value O on success otherwise failure int mxcan read int fd char buffer int size Reads data into a buffer from an open port the size should be a multiple of the CANMSG size fd the open port buffer pointer to the buffer Return Value O on failure data not available otherwise the number of bytes read int mxcan set bus timing int fd unsigned int speed int mxcan set nonblocking int fd Sets the open fd to be non blocking fd the open port Return Value on success otherwise returns a negative number int mxcan set parameters int fd CANPRM param Sets the parameters of an open port Input fd the open port lt param gt pointer to the CANPRM structure Output speed bus timing in Hz Return Value on success otherwise returns a negative number 4 65 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide int mxcan
65. s function returns an access to the DIO device Otherwise there is an error void mxdgio_ close HANDLE fd This function closes the access to the DIO device lt fd gt The access to the device 4 5 EPM 3032 3337 3438 3112 DK01 Modules Software Installation and Programming Guide int mxdgio get input signal HANDLE fd int port This function gets the signal state of a digital input channel Input fd The access to the device port port Output state DIO HIGH 1 for high DIO LOW 0 for low Returns 1 for a high signal 0 for a low signal if successful Otherwise it returns a value of 1 int mxdgio get output signal HANDLE fd int port This function gets the signal state of a digital output channel Input fd The access to the device lt port gt Port number Returns 1 for a high signal 0 for a low signal if successful Otherwise it returns a value of 1 int mxdgio set output signal high HANDLE fd int port This function sets a high signal to a digital output channel Input fd The access to the device int mxdgio set output signal low HANDLE int port This function sets a low signal to a digital output Input fd The access to the device Moxa 1 O control definitions for COUNTER define COUNTER dev epm_ 3438 counter1 define COUNTER_NODE2 dev epm_ 3438 counter2 Input lt fd gt The access to the counter device
66. set read timeout int fd unsigned int to Sets data reading timeout of an open port Input lt fd gt the open port lt to gt timeout in milliseconds Return Value O on success otherwise failure int mxcan set write timeout int fd unsigned int to Sets data writing timeout of an open port Input fd the open port lt to gt timeout in milliseconds Return Value on success otherwise failure int mxcan_ write int fd char buffer int size lt fd gt the open port lt buffer gt pointer to the data lt size gt size of the data should be a multiple of the CANMSG size Return Value 0 on failure otherwise the number of bytes written 4 66
67. ssible devices and changed setting you want to continue Port Setting Port Info Changing UART Mode Through Programming You can set the operation mode through programming the example UartMode is under examples C the Software DVD The code snippet is as follows int port 0 mode 0 int n 0 WCHAR sin WCHAR wcs port 3 wcs mode 3 printf UART Mode Test Program n printf t 0 121 printer xt 2 Exit Program n Display UART Set UART Mode n sin getwchar n wtoi amp sin do switch n if char 1 display the UART Mode case 1 printf Input the Port Number 5 8 Mn wscanf L s wcs port port wtoi wcs port mode uart getmode port 4 31 EPM 3032 3337 3438 3112 DK01 Modules Software Installation and Programming Guide if mode 1 printf Invalid varya TNn break printf COM d 5s n port mode_array mode break if char 2 Set the UART Mode case 2 Get Port Number printf Input the Port Number 5 8 Mn wscanf L s wcs port wtoi wcs port Get Mode Value print Input Mode value 0 26 03 wscanf L s wcs mode mode 2 wtoi wcs mode Set UART Mode if uart setmode port mode 1 value printf Set UART Mode Faill lyn else printf COM d s n port mode_array mode
68. t Port Manager Window Help E c0M18 115200 Hone 8 1 ANSI E COM19 115200 Mone 8 1 ANSI uu 9255 3 03 31 24 16 06 10 0 5 9 8 0 2 PCPUVTG T M 0 0 N 0 D E 4E IDTR GPGSV 3 1 10 07 13 319 11 07 139 03 71 001 37 19 70 233 7F GPGBEV 3 2 10 13 39 286 23 46 747 31 16 126 33 24 35 116 34 7E j GPGSV 3 3 10 16 33 045 42 06 55 D28 41 71 l GPGCA 053001 0 2458 847455 N 12133 158752 E 1 05 5 9 84 5 M 32 GPRMC 053001 0 A 2458 847455 N 12133 158752 E 180810 A 63 fGPGSA A 3 03 31 24 16 06 10 1 5 9 8 Z ZE IGPVTG T M 0 0 N 0 D E 4E l amp CPCSV 3 1 10 07 13 3132 11 07 193 03 71 001 37 12 70 233 7F DPGSV 3 2 in La ad 296 28 46 247 17 31 16 126 33 24 05 116 34 78 fGPGSv 3 3 10 16 33 045 4Z 06 55 028 41 1 GPGGA 053002 0 2458 847319 N 12133 158802 E 1 05 6 0 85 5 M 3F l amp GPRMC 053002 0 A 2458 847319 N 12133 158802 E 180810 A 65 CPCSA A 3 03 31 24 16 06 10 2 6 0 8 2 27 IGPVTG T M 0 0 N 0 D E 4E State me SS EX Ready 4 57 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide Configuring a Wireless Connection The EPM 3337 module includes a wireless module This section explains how to connect to an access point with WEP WPA WPA2 RSN encryption Follow the steps below to config
69. t cpin Make sure that the SIM card status is ready or connection may fail PComm Terminal Emulator 20 115200 8 1 A H5 Profile Edit Port Manager Window Help a AIF 32 E COM20 115200 Hone 8 1 ANSI DTR jattcpin RTS CPIN READY OF NOTE Before you verify SIM card status please check whether or not the PIN code is submitted 4 53 3032 3337 3438 3112 1 Modules Cinterion Connection Manager Connection Profiles SIM PINI Status Pin Enabled verified verify Retries Left 3 Unblock Retries Left 10 PIRZ Status Pin Enabled Not Verified Verify Retries Left 3 Unblock Retries Left 10 Sim amp ctions Action verify Pin Software Installation and Programming Guide Pmi Pin Value 0000 5 Select the device from the drop down list and enter the APN Name Siemens Connection Manager Connection Profiles SIM Select Device Siemens 25 Wireless Ethernet Adapter Override Profile ID Primary DNS Secondary DMS Primary WBNS Secondary MENS Mame IP Address Authentication Preference Username Password Connect Systray on minimized Auta Connect iu 4 54 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 6 Click Connect to connect to internet and the wireless connection will be established NO
70. to 0 Configure Serial Port Mode Use setinterface command to retrieve the parameters of the serial port configuration Moxa setinterface Usage setinterface device node interface no device node dev ttyMn 0 1 2 interface no following none to view now setting set to RS232 interface set to RS485 2WIRES interface set to RS422 interface set to RS485 4WIRES interface The different serial modes use specific parameters l set to RS485 2WIRES interface 2 set to RS422 interface 3 set to RS485 4WIRES interface To check the current interface setting Moxa setinterface dev ttyM8 Now setting is RS485 2WIRES interface In this case Serial Port 1 is set as RS 485 2 wire MO refers to port 1 and 1 refers to port 2 and so To change the current interface setting Moxa setinterface dev ttyM8 2 Moxa setinterface dev ttyM8 Now setting is RS422 interface In this case Serial Port 1 has been changed and is set as RS 422 mode To load the settings as the Default Value 4 3 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide When OS boots up the default interface mode of the EPM 3032 is RS232 If you want to change the default interface mode please use the following steps First remount the read only root file system in writable mode Moxa mount remount rw dev hdal Moxa Next edit etc udev rules d 9
71. uld be dev ttyACMO for the first modules dev ttyACM1 for the second one and so on b Then make sure local option is enabled This option ignores the CD Carries Detect signal Configure etc chatscripts chtgprs connect a First check the packet data protocol type and Access point name of ISP a basic command is AT CGDCONT 1 lt packet data protocal type APN b Then check the ATD dial out number a basic command is ATD lt number gt Read configuration file to connect a pppd call chtgprs Finally examine connection state If connection is ok a device pppO or is established Issue ifconfig pppO to view its information Multiplexer mode GPS and GPRS HSDPA dual functionality GPS functionality is only enabled in the module s multiplexer mode In multiplexer mode the system uses pseudo terminal slave pts instead of reading serial ports dev ttyACMx to communicate This section describes how to set up GPS functionality work with the gpsd daemon and change the pppd configuration file for the modem port dev pts O The following steps illustrate how to set up GPS and use gpsd l Set the module to multiplexer mode at startup Moxa etc rc2 d4 mv N99moxa hc25 mux script S99moxa hc25 mux script Note If you insert two EPM 3337 modules you can set module num 2 in etc init d moxa hc25 mux script Reboot the embedded computer Now the multiplexer will automatically start
72. unter reading or clear define COUNTER dev epm_3438_counterl The first 3438 define COUNTER NODE2 3438 counter2 The second EPM 3438 NL maintint argc Char argv i 4 13 EPM 3032 3337 3438 3112 DK01 Modules Software Installation and Programming Guide int retval int fd fd2 len unsigned int counter_value fd open COUNTER_NODE1 RDONLY while 1 4 printf nSelect a number of menu other key to exit n 1 Get counter value WIA 2 Crear the counter n LIT qub n Choose ps amp retval it ei s Get counter without reset counter value mxdgio epm3438 get counter fd printf EPM 3438 board 1 counter d n counter value else if retval Get counter with reset retval mxdgio epm3438 clear counter fd lf retval lt 0 printf EPM 3438 board 1 counter reset fail n else break close fd return EPM 3337 Driver Installation Moxa s EPM 3337 module supports both 3G GPS and wireless functionality This section introduces how to configure these functions in the Linux platform 1 Make root file system writable Moxa mount o remount rw 2 Install the file epm3337 deb Moxa home dpkg i epm3337 deb 3 Setup 3G module to Mdm mode EPM 3337 s 3G module supports multiple modes issue Isusb to get information e 0681 0040 MdmNet mode the default factory setting e 0681 0047
73. ure a wireless connection 1 Double click on the Atheros client utility shortcut on the desktop Click on the Profile Management tab and then click SCAN button Atheros Client Utility Current Profile Default Atheros AR922X Wireless Hetwork Adapter 2 X Action Options Help Current Status Details Network Type Infrastructure Security Mode Disabled Network Name 1 55101 empty Network Name 2 55102 empty Network Name 3 55103 lt gt Order Profiles Disable WLAN if LAN is Connected 2 Select the access point which you want to connect to and click Activate Atheros Client Utility Current Profile Default Atheros 22 Wireless Network Adapter 2 x Available Infrastructure and Ad Hoc Networks Network 5 5101 11 Super Signal Strength Channel i all 21 bioptic all 14 de i 3 dB idctupe 15dE MISAWAP 1 55 dB 2 dB 6 dB 200000585 rr Disable WLAN if LAN is Connected 4 58 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 3 Enter the Profile Name Then select the Security tab Profile Management General Security Advanced Profile Settings Profile Mame WirelessAP1 Client CEM VO48xITXKOL Network Hames 55101 M RASTS 55102 5502
74. x packets 7 signal 75 dBm tx bitrate MCS 42 40Mhz 4 20 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide ATTENTION View the following reference for more information about iw http linuxwireless org en users Documentation iw EPM 3112 Driver Installation CAN is a broadcast serial bus standard for connecting electronic control units ECUs Each node is able to send and receive messages but not simultaneously a message consisting primarily of an ID usually chosen to identify the message type sender and up to eight message bytes is transmitted serially onto the bus one bit after another This signal pattern codes the message in NRZ and is sensed by all nodes Moxa EPM 3112 module provides the CAN bus interface for industrial CAN communication Users can use the library or file control interface ioctl to read write or control the CAN interface as a file for easy CAN programming Installation 1 Make root file system writable mount o remount rw 2 Install the file epm3112 deb Moxa home dpkg i eom3112 deb 3 Mount root file system read only Moxa umount 4 Then modprobe moxa_can or reboot your device to finish this installation EPM 3112 Programming Guide CANBUS Library A simple library mxcanbus is offered see the following sub sections for details Moxa functions for CANbus Function unsigned int mxcan get bus tim
75. y for Linux Four higher layer functions digit io timer init digit io timer dispatch digit io timer add callback and digit io timer dispatch quit are provided Four callback functions in the sample are added for four different events DGTIO GET INPUT STATE CHANGE DGTIO GET INPUT DGTIO GET OUTPUT and DGTIO SET OUTPUT via the digit io timer add callback function mngr digit io timer init if digit io timer add callback mngr HWI ndex port DGTIO GET INPUT STATE CHANGE interval input chg cb amp port lt 0 if digit io timer add callback mngr HWI ndex port DGTIO GET INPUT interval input get cb amp port 0 4 4 7 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide if digit io timer add callback mngr HWI ndex port DGTIO SET OUTPUT interval output set cb amp port 0 if digit io timer add callback mngr HWI ndex port GET OUTPUT interval output get cb amp port 0 digit io timer dispatch mngr Examples DI O Program Source Code File Example File and Folder digit input change digit io timer c Description Routines to operate timer functions on digital IO port include lt stdio h gt include lt stdlib h gt if defined WIN32 WCE amp amp defined WIN32 include lt time h gt include digit io timer h Callback function 7 Static dgio input change exec DGIOMNGR mngr DGIOIT
Download Pdf Manuals
Related Search
Related Contents
Handbuchs Sacabule - Accompagnement pédagogique Copyright © All rights reserved.
Failed to retrieve file