Home
EPM-3032/3337/3438/3112/DK01 Modules User`s Manual
Contents
1. 22 2 1 4 2 2 2 2 4 nnn 4 47 Configuring the GPRS HSDPA Connection without GPS 2 2 22 2 7 4 54 GPS F hectlofialiby 4 58 18 a Wireless 5 222 224 5244454442444 444 4 cata taa qd but ee ew aeons 4 60 Getting Wireless Module Information csse hene hne nnns 4 63 stallatloti 4 64 EPM 3 LEZ 200 20111111 001 03 5 4 67 1 Introduction Moxa s EPM series modules which include modules with serial ports a wireless GPS card a digital input output channel card a CANbus card mini PCI PCle 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 The following topics are covered in this chapter 0 0 3 3 Overview Package Checklist Product Features EPM Module Specifications gt 3032 Specifications gt EPM 3112 Specifications gt EPM 3337 Specifications gt EPM 3438 Specifications gt EPM 3552 Specifications EPM 3032 3337 3438 3112 DKO1 Modules Introduction Overview Moxa s EPM series modules which include modules with serial ports a wireless GPS card a digital input output channel card a CAN
2. ba a base be a eta be ve eeu bene bese S 1 6 2 Hardware IntroduclliOn nnn nnd 2 1 APPEArAN 2 2 rR err 2 4 3 Hardware Connection odin 3 1 Installing te EPM Expansion Modules uii vvv A A T 3 2 Connecting Data Transmission Cables 66 nnn nn 3 3 Connecting to the EPM 3032 Serial Port sooo mmm rr me XX Ec EX CHR S OO 3 3 Connecting to the EPM 3337 Wireless GPS 0 2 2 220 0000 0 1 80142 3 3 Connecting to the EPM 3438 DIDO Module eese e ete e ea efe eta cet cac 3 3 Connecting to the EPM 3112 CANbus Port Module csse nensem nnne nnn 3 4 Connecting to the EPMSDKOT Module Re ee ac emt aw eed a 3 5 4 Software Installation and Programming Guide 4 1 S S EGET ehe aaa he nt NAE VB cene de b
3. 4 44 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 11 Click Install Driver once the scan is complete al WinMux Driver Setup Scan for modules Scan COM 9 Stop Scan Module List Port Module u COM 3 SIEMENS HC25 REVISION 02 050 Information Virtual Port 1 data COM 11 Virtual Port COM 12 Virtual Port 3 COM 13 12 Click Install Driver and press Continue Anyway once the scan is complete d winMux Driver Setup Scan far 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 P Tel me why this testing is important Continuing your installation of this software may impair 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 4 45 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 13 Click OK to complete the installation 4 winMux Driver Setup Scan tor modules Scan Finished Start Scan List Port Module Type WinHux Driver Setup Windus driver is installed Use the property page in the D
4. HC25 Connection Manager File Edit Favorites Tools Help Back _ Search Folders Address 12 C temp Drivers HC25 HC25 HC25_0205usb_ndis_driver installiprogram Files Siemens HC25 Connection Manager ini File and Folder Tasks 2 ad NR Configuration Settings 2 t Of le ge i KB fm Rename this file 287 Type Configuration Settings Move this coe ee we Date Modified 1 19 2007 6 22 es mver Package Installer a Size 76 b tes A Copy this file lierosoft Corporation Publish this file to the Web 2 E mail this hc25 3ebit cat he2Smdm inf Security Catalog Setup InFormation XX Delete this 12 KB 8 KB hceSnet inf hc2Sser inf Other Places Setup Information Setup Information 4KB 3 KB e Siemens p C hc25usbnet sys hc25usbser svys c P SUCUS System File System File Shared Documents 101 KB 99 4 Computer amp My Network Places Details 2 Click Next Dewice Driver Installation Wizard Welcome to the Device Driver Installation Wizard This wizard helps install the software divers that some computers devices need in order to work To continue click Next 4 40 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 3 Wait for the driver to install Device Driver Installation Wizard The drivers are now installing Plea
5. tfc Mte 4 2 3032 Driver LhstallgtlOniaussandeseihessiieenileaiira lstecuthefecusiumi ue ruta unn mmc ERU UE DEDE LUE 4 2 EPMZS037 Progratmmiddg CR aa e 4 2 EPM 3439 DriVerihstallatloh suce ree dev __________ 4 4 Programma Oulde s 2225 245 2 e adieu 4 5 EPMS3337 DEFIVer totu tete tos cov nice tetto sb udis totos ca ERES EE ENDE d 4 14 EPM 3112 Driver auta Saee vu caue a ER 4 21 Nel cp P 4 24 53032 0 talat 5 4 24 Serial ModE visas ui Re cea ac ace Re Ew e 4 28 Changing UART Mode Through Programming 4 1 1 00 nnns 4 33 EPM 3439 DEVOF astelldtioh 2 vee anand Eb xa NR teen Ma e 4 34 EPM 34398 Driver I nstallatlOh i RR RR RR S C 4 34 EPMES3439 Programmbpibig Guidetti atlas et tae 4 37 333 Diver NS dme taa dme ea Venio c Here Debe Pre dias Bhce Pea ed e en in e c oan 4 40 Wireless Module Driver
6. File 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 Int HWilndex 10t port 580 Youd Targ printf input chg cb HWIndex d port d sig HWInd x port return 0 Staci nt get Cb ing Int port Sarg Print cet 0 656 port sd Sig kdo porty Sig return 0 Static int Lint HWindex int portz int Last 519 void 4 11 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide printf output set cb HWIndex 54 port 54 last sig d n HWIndex port last sig 2S ior last_sig 2 printf new sig d n last sig return last sig 1 stati ant copi poODbLe JS Hb RIO VOIT printr output get cb BWlndex port Sig sdin HWind x port 810403 return 0 define INTERVAL 10000 int if defined _WIN32 WCE WINAPI WinMain HINSTANCE hInstance HINSTANCE hPrevinstance LPTSTR lpCmdLine int nCmdShow else main int char argv DGIOMNGR mngr int HWIndex TX int interval dif defined _WIN32 WCE int argc ehar comebxner25e1 y argy 2212 WideCharToMultiByte CP
7. 0 LPCTSTR lpCmdLine 255 cmdline 256 NULL NULL argo 22 arge gt 1 interval avoir argv else interval INTERVAL mngr digit_io_timer_init if mngr NULL digit init 12 return HWIndex 0 HWIndex 0 for embedded DIO for port 0 port 1 port if digit io timer add callback mnor HWIndex port DGTIO GET INPUT STATE CHANGE interval input chg cb 0 1 printt add sd input change callback errorWn port return 2 TE digit TO ddd callback mior pott DGTIO INPUT interval input get cb amp port lt 0 printf add d input callback error n port revurn 3 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 Tadd d output callback errory port retur HWIndex 1 for EPM 3438 board 1 HWIndex 2 for EPM 3438 board 2 for HWIndex 0 HWIndex lt HW TOTAL HWIndex for port 0 port lt 8 port 4 since list is LIFO last callbacks are added
8. 4 13 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide int retval int fd fd2 len unsigned int counter_value fd open COUNTER_NODE1 RDONLY while 1 printf nSelect a number of menu other key to exit 1 Get counter value 2 Clear the counter qub CHOOSe Ws amp retval it pedi 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 OQ printf 3438 board 1 counter reset fail n else 1 break close fd us 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 0681 0047 Mdm mode for Linux Now convert EPM 3337 module with the hc25 setup mdm sh script at home Moxa home sh moxa hc25 setup mdm sh Confirm that the conversion i
9. Lbem sport item cb item 5HWIndex item gt port sig item arg break case DGTIO GET_OUTPUT 514 mxagro signal fd gt item cb item 5HWIndex item gt port sig item arg break case DGTIO GET INPUT STATE CHANGE Sig mxdgio get input signal fd item port jT item cb item HWIndex item gt port sig item arg break case SEL OUTPUT Sig item cb item HWIndex item gt port item gt last_signal item gt arg if sig mxdgio_set_output_signal_high fd item port else 4 8 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide mxdgio_set_output_signal_low fd item port break default return 1 Leem gt signal sig release the timer operation dA static vold dgio input change release DGIOMNGR mngr int i DGIOITEM item next item mngr gt list while item next item next free item item next for 1 0 i lt HW_TOTAL i qu seh 1 mxdgio_close mngr gt fd i this LUNG ELON initilizas a timer manager Returns Return a pointer to the manager DGIOMNGR digit io timer init void DGIOMNGR mngr mngr DGIOMNGR 11 1 sizeof DGIOMNGR if mngr mngr gt fd 0 mxdgio_open if 1 Jared 08 10 2010 support the second 3438 mngr fd 1 mxdgio_epm3438_open
10. 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 pin assignments are shown in the following table DB9 Male CANbus Pinouts 1 5 EPM 3032 3337 3438 3112 DKO1 Modules Hardware Connection Description Connecting to the EPM DKO1 Module The EPM DKO 1 offers mini PCI and a mini PCle sockets allowing users to insert a 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 Installation 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 O 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 O Windows System EPM 3032 Driver Installation Configuring Serial Port Mode Changing UART Mode Through Programming EPM 3438 Driver Installation EPM 3438 Driver Installation EPM 3438 Programming Guide EPM 3337 Driver Insta
11. Installation Complete 2 3438 has been successfully 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 4 36 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 6 Thesystem will find the new hardware and install the driver automatically now the module 16 ready for use a Device Manager File Action Help a CEM PH2POY 29261 274 Computer BS Device Drivers ee Disk drives Display adapters 45 Human Interface Devices 9 IDE ATAJATAPI controllers o Keyboards 5 Mice and other pointing devices Monitors BS Moxa Device Sq Multi port serial adapters Network adapters Ports COM amp LET SM Processors 9 Sound video and game controllers im M System devices Universal Serial Bus controllers EPM 3438 Programming Guide You can set operations through programming the following DIO example can be found in the software DVD at examples C The code snippet is as follows fs index n 0 BIT 0 1 BIT 1 2 3 BIT2 3 x Birr s data n 0 Digital LOW 1 Digital HIGH av HANDLE 102102 int port int data int intDout intDin int nDout 0 int port 0 mode 0 int n 0 WCHAR sin smode printf UART Mode Test Program n Pprintr c 0 Ex
12. Network Type Infrastructure Control Channel Scanning Extension Channel Data Encryption Link EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 2 Click the Advanced button You will see current wireless connection status Advanced Status Network Mame 5510 Current Signal Strength 95 dBm Server Based Authentication Current Moise Level gh Data Encryption Up Time 00 17 40 Authentication Biz 11b Preamble Short amp Lang Message Integrity Check Current Receive Rate 0 Kbps Current Transmit Rate Kbps CCEM Authentication Control Channel Scannin Management Frame Protection ng Extension Channel Associated AP Control Frequency Scanning Associated Address Extension Frequency Associated Address Channel Set United States Channel 0 Power Save Mode Current Power Level Available Power Levels 5 GHz 50 40 25 20 13 10 8 8 7 5 5 4 3 2 1 mw Available Power Levels 2 4 GHz 100 63 50 32 20 10 3 8 7 5 5 4 3 2 mw EPM 3112 Driver Installation Take the following steps to install the CANBUS driver l Double click EPM 3112 V1 0 msi to install the module driver and then click Next i EPH 3112 Welcome to the EPM 3112 Setup Wizard The installer will quide vou through the steps required to install 3112 on pour computer WARNING This comp
13. O Copyright 1985 2661 Microsoft Corp Documents and Settings Administrator ping wuuw gqoogle com tu Pinging wwuw l google com 72 14 2803 99 with 32 bytes of data From 72 14 2603 99 hutez 32 time 2HHms TTL 51 From 72 14 2063 99 hutes 3Z2 time 18ims TTL 51 From 72 14 2603 99 hytes 32 time 205ms TTL 51 1 From 72 14 2653 99 bytes 32 time 1l42ms TTL 51 statistics For 72 14 2803 99 Packets Sent 4 Heceived 4 Lost 1055 gt Approximate round trip times in milli seconds Minimum 142ms Maximum 2 Average 181 and E Enabling GPS Functionality 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 port 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 COHT3 Properties General Port Settings Driver Details Physical Serial Modem Port Modem Port Name com 3 Baud Rate bps 11 5200 Virtual Serial Modem Forts Virtual Ports Virtual Port 1 data channel Virtual Port 2 Virtual 3 4 58 EPM 3032 3337 3438
14. if LAN is Connected 4 60 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 2 Select the access point which you want to connect to and click Activate t Atheros Client Utility Current Profile Default Atheros Wireless Network Adapter 2 X Available Infrastructure and Ad Hoc Networks Network Name 551 lin Super Signal Strength 21 de 1 bioptic ul 1428 cyo 3 dB i idctupe 15 dB MISAWAP 1 al 55 dE i MORAS TS 2 dB wL corega 111 BdB mn tm 4 c 2000008 A Refresh Disable WLAN if LAN is Connected 3 Enter the Profile Name Then select the Security tab Profile Management General Security Settings Profile Mame Client Name OE M VO4ExITME OL Network Names MOMASY S 58101 55102 551 3 4 61 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 4 Select the security option for your network Then click Configure Profle Management General Security Advanced Set Security Options OO WRAAWPAZ WPAAVPA2 EAP 2 Passphrase 902 1 Configure Lancel _ 5 Enter the password Profile Management General Security Advanced Confi
15. DKO1 Modules Software Installation and Programming Guide else pristt o set digital output printt sSet digital output success Close DIO mxdgio close hDIoO break case 4 if char 4 Get both digital input and digital output Open dio hDIO2mxdgio open for int 0 lt DIN NUMBER i Get digital input port_no i rintDinemxdgio get input signal hDIO port if intDin 1 1 else Prince 21104 port mo intDout mxdgio_get_output_signal hDIO port no if intDout 1 2 s else Doutod Dort no ime Pout printf Din d 54 Dout d NO porte Close DIO break getwchar Sin getwchar wtoi amp sin while 0 After entering BIOS Setup or choosing the Main option the BIOS main menu will be displayed Use this menu to check basic system information such as memory and IDE hard drive status 4 39 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide EPM 3337 Driver Installation Follow the directions below to install the 3G GPS driver 1 Open the directory HC25 25 O205ussb_ndis_driver install program files Siemens HC25 Connection Manager and then double click DPI nst exe
16. e Point to point MT and MO Cell broadcast Text and PDU mode Fax Group 3 Class 1 Audio e Audio speech codecs GSM AMR EFR FR HR AMR supported 6 audio modes Approval Router Handset Headset Speakerphone and Transparent Mode TTY support selecting a dedicated audio mode Gains and volumes can be controlled by AT commands 9 ringing melodies supported CEPT and ANSI supervisory tones supported Japan supervisory tones supported WLAN Standards EEE 802 11a b g n for Wireless LAN e EEE 802 111 for Wireless Security 1 4 EPM 3032 3337 3438 3112 DKO1 Modules Introduction Spread Spectrum and Modulation typical DSSS with DBPSK DQPSK CCK OFDM with BPSK QPSK 16QAM 64QAM 802 11b CCK 11 5 5 Mbps DQPSK 2 Mbps DBPSK 11 Mbps 802 11a g 64 54 48 Mbps 16 36 24 Mbps QPSK 18 12 Mbps BPSK 9 6 Mbps 802 11n 64 300 to BPSK 6 5 Mbps multiple rates supported Operating Channels central frequency US 2 412 to 2 462 GHz 11 channels 5 18 to 5 24 GHz 4 channels e 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 119 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 11 USA 36
17. there is an error 4 5 EPM 3032 3337 3438 3112 DKO1 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 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 lt port gt Port number Returns 1 for a high signal 0 for 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 fd int port This function sets a low signal to a digital output Input fd The access to the device 500000000002 Moxa 1 control definitions for COUNTER define COUNTER_NODE1 dev epm_ 3438 counter1 define COUNTER_NODE2 dev epm_ 3438 counter2 Input fd The access to the counter device 999000000000 Input lt fd gt The access to the counter device 354900000000 4 6 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programmin
18. 0 The first EPM 3438 mngr fd 2 mxdgio epm3438 open 1 The second EPM 3438 endif IE mice 2303 free mngr mngr NULL return Mngt adda 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 DKO1 Modules Software Installation and Programming Guide lt port gt specify which DIO pin lt mode gt the operation mode on the port lt interval gt the interval in milliseconds between 2 calls to a user defined function cb the user defined callback function lt arg gt argument to the function Returns 0 on sucess otherwise failure TOE digit io timer add callback DGIOMNGR mngr int HWIndex int port int mode int interval t cb DGIOITEM item item DGIOLTEM 1 sizeof DGIOITEM if item return item next mngr gt list mngr gt list item item gt cb cb item arg arg item 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 Jared 08 10 2010 HWIndex to support multiple boards item last signal mxdgio get input signal mngr fd HWIndex port return 0 1 void digit io timer dispatch quit DGIOMNGR mng
19. 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 1 6 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 _ 25 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 amp 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 14 GPGGA 061824 0 2458 835139 N 12133 055835 EB 1 05 19 7 103 5 M 1 4 SGPRMC 061824 0 A 2458 835139 N 12133 055835 E 290710 A 68 SGPGOA A 324 21 060 91 16 4 72555 2940541947 10 5 29 SGPVTG T M 0 0 N 0 0
20. 3112 DKO1 Modules Software Installation and Programming Guide 2 Open Terminal Emulator and open GPS relative ports Property Communication Parameter Terminal File Transfer Capturing COM Options Ports comia Baud Rate Bite Parity Stop Bits gt Flow Control Output State OTR ON OFF X MZX FF ATS de py OFF 3 Enter at sgpss 4 to enable GPS functionality E PComm Terminal Emulator COM18 115200 Hone 8 1 A HSI Profile Edit PortManager Window Help MIHI 87 COM19 115200 Hone 8 1 4HSI COM18 115200 Hone 1 ANSI jat sgpss 4 4 59 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 4 Receive the information returned through GPS and verify that the position value is correct PComm Terminal Emulator COM19 115200 Hone 8 1 AHSI ES COMT9 15200 Hone 8 1 AHSI GPGSA 4 3 03 21 24 16 06 10 0 5 9 8 0720 CPVTC T M D0 0 NH D D E AE GPGSY 3 1 10 07 13 319 11 07 199 03 71 001 37 19 70 233 7F GPDCSUV 3 2 10 13 39 2856 23 46 247 31 16 126 33 24 35 116 34 7E JdiGppSy 2 5 10 16 33 D045 42 06 55 628 4171 lt 052001 0 2453 847455 12123 158752 1 05 5 9 84 5 32 5 053001 0 2458 847455 12133 158752 180
21. 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 5 Select the port name you want to change to and then press OK Fart Number COM current Level gt Set Ts FIFO Level Set the charge to all ports cane 6 Make sure the port names are correct and then click OK to take effect HOXA MUSGO UART CHIP PCI Bus Properties General Ports Configuration Driver Details Resources Port Into 4 31 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 7 Now you can verify that the port names have been changed under Ports COM amp LPT Device Manager File Action View Help Human InterFace Devices F IDE controllers gt Keyboards ja Mice and other pointing devices Monitors HB MOXA CAM InterFace Board CP ADDO Series PCI Bus 211 Multi port serial adapters 231 CP 1049U Series PCI Bus 31 Serial Multiplexer COME 231 Serial Multiplexer COM HB Network adapters 227 Ports COM amp LPT Port COME 59 MOXA Port 2 18 Port 3 COMI8 59 Port 4 201 Processors VU Sound video and game controllers H System devices Universal Serial Bus controllers NOTE Make sure each port name is unique duplicate names will lead to inaccessible devices
22. 59 MOXA Port 2 COME 7 MOXA Port 3 COMB 29 MOKA Port 4 10 E Siemens 25 LISB Cam Pork Processors Sound video and game controllers 4 System devices 4 43 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 9 Change to the Winmux2K directory and double click wmux2k exe EP Winmux2k File Edit View Favorites Tools Help E 2 32 Search Folders Address 1 C templDriversYHC251HC25VWinmuxzk History txt winmnux2k ink File and Folder Tasks Text Document Setup Information 3 KB 5 KB ri Rename Ehis File i Move this T Cpl um winmuxzk 3102 zip D Copy this File JAKE 115 KB a Publish this File to the Web a E mail this File suns exe wmuxprop dll Wireless Modules Ins af 310 2 Delete this File Siemens A Wireless Modules Multiplex Pro Description Wireless Modules Multiplex Installation Utility Other Places Company Siemens AG File Version 3 1 0 2 Hees Date Created 2 18 2007 9 15 AM A My Documents Size 164 KB Shared Documents q My Computer 2 Network Places Details 10 Click Start Scan di Winkux Driver Setup Scan for modules Information Vinal LEE E Windia Poy
23. 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 H7 28THb 45 38 HZ Latitude 24 988836 Longitude 121 552724 Altitude 147 5 speed nea Heading nea Climb 1 otatus 30 FIA 13 secs GPS Type Generic Horizontal Err s 131 m Vertical Err 78 Course Err speed Err 973 kph N N N N N N 11 318 48 3 GPS0 0 RMC 1288385997 8 485 24 986836 121 552725 167 58 139 28 63 28 gt 298 88 7 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 berlios 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 O at
24. Point 00 1 1 86 0 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 mode open Power Management off 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 AP SSID test_wpa with WPA key 1234567890 ascii a Write a configuration 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 wpa wpa2 conf B 4 19 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide c Use iwconfig to check the connection state wlanO 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 l157A l1DBD BO0C3 70CC8 O0F9C D059 28981 F915 EA4DB 3705 6969 8253 965E 4DFO0 FDB8 AEC1 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 excessive 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 c
25. 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 Device Manager File Action View Human Interface Devices IDE controllers Fue Keyboards lt Mice and other pointing devices x Monitors BS MOKA InterFace Board BS CP A000 Series PCI Bus Multi port serial adapters 5 CP 104IU Series PCI Bus 231 Serial Multiplexer COME 541 Serial Multiplexer Network adapters Parts COM amp LPT Port TA 27 Port 1 C Update Driver Port 210 pisable MOXA Port 3 4 Processors UD Sound video and Scan hardware changes Properties i 2 Universal Serial Bus LA Uninstall Opens property sheet For the current selection 4 28 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 4 Click OK to apply the settings HOXA Port 1 COM1 Properties jeneral Port Settings Driver Details Interface Baud Rate Data bits Parity Stop bits Flow control In some situations you may wan
26. device Manager MUSGO UART CHIP PCI Bus Properties Action View General Ports Configuration Driver Details Resources Port COM Rx FIFO Level Tx FIFO Level 8 Monitors i Sq Multi port Smartionndustio Family Board Configuration Error This COM name is being used by another device such as another cam port or modem Using duplicate names can lead to inaccessible devices and changed setting Do you want to continue Port Setting Port Info 4 32 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide Changing UART Mode Through Programming You can set the operation mode through programming the example UartMode is under examples C in 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 Prine 609 Primer dA ct 2 sin getwchar n wtoi amp sin do n switch if Char 1 vt printf Input the Port Number wscanf Exit Programin Display UART Set UART Mode n display the UART Mode wt hee WES port wtoi wcs port mode uart getmode port if mode 1 printi Tinvalid valust break printf COM d s n port mo
27. first if digit io timer add callback mngr HWIndex port DGTIO GET INPUT STATE CHANGE interval input chg cb amp port lt O printf add d input change callback error n port return 2 if digit io timer add callback mngr HWIndex port DGTIO GET INPUT interval Input get cb port x 0 1 callback crror return 3s if digit io timer add callback mngr HWIndex port DGTIO SET OUTPUT interval output set cb amp port lt 0 printf add d set output callback error n port return 4 1 if digit io timer add callback mngr HWIndex port DGTIO GET OUTPUT interval output_get_cb amp port lt 0 4 printf add get output callback errorin port return 5 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 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 gt include lt Uuni sea include n gt include mxdgio h For counter reading or clear define COUNTER 1 dev epm_3438_counterl1 The first 3438 define COUNTER NODE2 dev epm 3438 counter2 The second 3438 int main int arge 2 1
28. the information herein to correct such errors and these changes are incorporated into new editions of the publication Technical Support Contact Information 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 Moxa Asia Pacific Tel 886 2 8919 1230 Fax 886 2 8919 1231 Table of Contents 1 1 1 2 AGG su toe LA M MI E 1 2 Product POI as fees aos Phat ties eae deat Feet delete nte d tack dete us eov Mee ces 1 2 EPM Mod le SDecITICabIOP S I PL MP EU HD E CEPI D ME 1 2 EPM 3032 S UI MIT ARAM 1 2 EPMa3 EN EE 1 3 SDCCHICAHOUWS 1 3 EPM 3439 Specificatlohis Gee ee 1 6 24321 3552
29. the number of bytes written 4 68
30. to 165 5180 to 5825 MHZ Europe 36 140 5180 to 5700 MHz Japan 7 to 11 5035 to 5055MHz 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 6 9 12 18 24 36 48 54 Mbps 802 11n 6 to 300 Mbps multiple rates supported TX Transmit Power 802 11b 1 to 11 Mbps Typ 18 dBm 1 5 dBm 802 110 6 to 24 Mbps 18 dBm 1 5 dBm 36 to 48 Mbps 17 dBm 1 5 dBm 54 Mbps 15 dBm 1 5 dBm 802 11a 6 to 24 Mbps Typ 17 dBm 1 5 dBm 36 to 48 Mbps 16 dBm 1 5 dBm 54 Mbps 14 dBm 1 5 dBm TX Transmit Power MIMO e 802 11a n 20 40 MHz MCS15 20 MHz 13 dBm 1 5 dBm 515 40 MHz 12 dBm 1 5 dBm 802 119 20 40 MHz 515 20 MHz 14 dBm 1 5 dBm MCS15 40 MHz 13 dBm 1 5 dBm RX Sensitivity 802 11b 92 dBm 1 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 802 11 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 MH
31. 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 curent 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 this time only now and every time connect a device gt not this time Click Next to continue Cancel 4 47 EPM 3032 3337 3438 3112 DKO1 Modules Install CD File Edit Favorites Tools Help 7 2 gt Search Folders Address temp Drivers 4R9220 Install_ CD Setup dll File and Folder Tasks FLExnet Installshield 8 5 Rename this File 5 Move this File datal hdr HDR File A Copy this File 270 63 Publish this file to the Web E mail this File wey default ath ATH File t Delete this File 1 layout bin Other Places BIN File 1 pg 22 setup ini 5 Configuration Settings 23 Shared Documents 1 KB of Computer My Network Places Details 3 Click Next Atheros Client Installation Program Installshield Wizard Choose Setup Language Software Installation and
32. 2 Returns on success otherwise failure int mxcan get stat unsigned int fd CANBST stat Get the statistics of an open port Parameters fd the open port stat point to a contianer of statistics Returns 0 on success otherwise failure int mxcan inqueue unsigned int fd Get the number of received bytes that are queued in the driver of an open port Parameters fd the open port Returns 0 on failure the number of bytes unsigned int mxcan open int port Open a can port by the port number Parameters port port number starting from 1 In Linux open port 1 will open dev canO Returns 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 Parameters fd the open port Returns 0 on failure the number of bytes int mxcan purge buffer unsigned int fd unsigned int purge Purge the buffers of an open port Parameters fd the open port purge 1 receive data buffer 2 transmit data buffer otherwise both Returns 0 on success otherwise failure int mxcan set bus timing unsigned int fd unsigned int speed Set the bus timing of an open port Parameters 4 23 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide fd the open 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 Returns 0 on success otherwise returns a negative val
33. 810 63 3 03 31 24 16 06 10 1 5 9 8 2 2 fEPUVTG T M 0 0 N 0 0 K 4E l cPCSY 3 1 10 07 13 3192 11 07 193 03 71 001 37 19 70 233 7F EBPDSU 2 2 10 12 38 286 23 45 047 19 91 16 55 115 2GPGSY 3 3 10 16 23 045 47 06 55 028 41 71 053002 0 2458 847319 12133 158802 1 05 6 0 85 5 3 053002 0 3 2458 847319 12133 158802 180810 3565 CPGCSA A 3 03 31 24 15 056 10 6 0 8 27 0 0 0 0 4 StateDPEN m Ready 0255 5 025 Read 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 configure 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 22 Wireless Hetvrork Adapter Action Options Help Current Status Profile Management Diagnostics Details Network Security Infrastructure Disabled Network 1 55101 lt empty Network 2 55102 empty Network Mame 3 55103 ermpty gt LE ij Lan li Disable
34. AN Controller 0 29 CAN Controller 1 MOXA CAN Controller 2 29 MOXA CAN Controller 3 HB Moxa Device CANBLIS CARD PCI Device CANBLIS CARD PCI Device amp 2 Multi port serial adapters Network adapters Ports COM amp LPT Processors Sound video and game controllers 3 System devices 4 66 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide EPM 3112 Programming Guide CANBUS Library unsigned int mxcan get bus timing int fd Gets the bus timing of an open port lt fd gt the open port Return Value 0 on failure otherwise the bus speed in KHz int mxcan get parameters int fd CANPRM param int mxcan get registers int fd unsigned char buffer int num Gets the register values of an open port fd the open port Output lt buffer gt pointer to a buffer for these values num number of register values for a module with sja1000 chipset the value must be 32 Return Value on success other numbers indicate failure int mxcan get stat int fd CANBST stat Gets the statistics of an open port fd the open port Output lt stat gt pointer to a container of the statistics Return Value O on success other numbers indicate failure 1 on failure otherwise the number of bytes 4 67 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide int mxcan purge buffer int fd
35. CHIP PCI Bus Serial Multiplexer COMS BB Network adapters 29 Ports COM amp LPT MR Processors Sound video and game controllers Storage volumes 4 System devices Universal Serial Bus controllers Serial Multiplexer COMMS Properties 2 General Port Settings Driver Details Physical Serial Madem Port Modem Port Name CDM3 Baud Rate bns 1115200 Virtual Serial Ports Virtual Parts Virtual Port 1 data channel Virtual Port 2 COM 2 Virtual Port 3 4 55 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 4 Open Virtual Port 2 Ex COM12 and enter at cpin Make sure that the SIM card status is ready or the connection may fail PComm Terminal Emulator COH 20 115200 Hone 8 1 A H5 Profile Edit Port Manager Window Help EM 20 115200 8 1 5 28 attcpin RTS C PIN READY StaeOPEN ME m m Before you verify SIM status please check whether not the PIN code is submitted Cinterion Connection Manager Connection Profiles SIM 1 Status Pin Enabled Verified Verify Retries Left 3 Unblock Retries Left 10 phena Status Pin Enabled Not verified Verify Retries Lef
36. EPM 3032 3337 3438 3112 DKOL Modules User s Manual First Edition December 2010 www moxa com product MOXA 2010 Moxa Inc All rights reserved Reproduction without permission is prohibited EPM 3032 3337 3438 3112 DKOL 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 2010 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
37. HE 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 HABDVZARE SOFTVVARE PACKAGE 4 49 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 6 Select Install Client Utilities and Driver and then click Next Atheros 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 s driver and client utilities This is the recommended option 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 4 50 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 8 Click Next Atheros Client Installation Program Select Program Folder select a 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 lis
38. K Class E2 26dBM 3 4dB for GSM 1800 8 PSK Class 2 26dBM 3 4dB for GSM 1900 8 PSK e Class 3 24dBM 1 3dB 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 V HSDPA Interface 3GPP Release 5 3 6 Mbps UL 384 Kbps UE CAT 1 6 11 12 supported Compressed mode CM supported according to 3GPP TS25 212 1 3 EPM 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 e AT commands for RIL compatibility NDIS RIL GSM GPRS EDGE Interface GPRS Multislot Class 10 Full PBCCH support Mobile Station Class Coding Schemes 1 4 EGPRS Multislot Class 10 EDGE E2 power class for 8 PSK Downlink coding schemes CS 1 4 MCS 1 9 Uplink coding schemes CS 1 4 reporting SRB loopback and test mode 8 bit 11 bit RACH PBCCH support 1 phase or 2 phase access procedures Link adaptation and IR extended UL TBF Mobile Station Class CSD 110 RLP non transparent 9 6 kbps SMS
39. Programming Guide 2 Navigate to the Install CD directory and double click setup exe to install the driver datal cab 14 033 kB dataz cab 14 647 IS5etup dll 12 0 0 58851 InstallShield Setup Engine setup ins File 556 Select the language for the installation from the choices below Chinese Simplified Chinese Traditional Czech Danish Dutch French Standard German Greek Hungarian Italian Japanese Korean Mnrwenian Finnish 4 48 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 4 Click Next Atheros Installation Program Atheros Client Installation Program This program installs the driver and client utilities for your Atheros Wireless LAN Client Adapter 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 M Y RETURN T
40. ace 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 0 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 Environmental Limits Operating Temperature 25 to 55 C 13 to 131 F EPM 3337 Specifications Cellular Interface Frequency Bands e UMTS HSDPA Triple band 850 1900 2100 MHz GSM GPRS EDGE Quad band 850 900 1800 2100 MHz 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 Class 1 30dBM 2dB for GSM 1900 Class E2 27dBM 3dB for GSM 850 8 PSK Class E2 27dBM 3dB for GSM 900 8 PS
41. an also apply to the WPA2 connection By following the directions in example 2 you can get results below wlanO 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 retries 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 get the connection data you can issue iw dev interface station dump Moxa iw dev wlanO station dump Station 00 1 1 8 0 64 on wlanl inactive time 35696 ms rx bytes 98054 rx packets 364 tx bytes 133 tx 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 followi
42. apter now if it is not yet inserted cancel the Found New Hardware wizard appears and proceed with the installation Click to continue 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 1 E 4 52 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 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 reboot the system CO No will restart my computer later Remove any disks from their drives and then click Finish to complete setup 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 Device Manager File Action View Help E IDE controllers L Modems Siemens 25 HSDPA USE Modem Monitors Sm Multi port serial adapters BB Network adapters BW Atheros ARG22x Wireless Network Adapter Realte
43. ardware Introduction Dimensions 49 mm 1 93 in 24 mm 0 94 in 34 1 34 121 mm 4 76 in 2 4 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 O 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 DKO1 Module WV EPM 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 l Remove the module cover screws Screws Screws 2 Remove the cover from the slot 3 1 25111113327 4 3 Gently insert the module into the slot 77 i i I A 4 1 1 ww 7754 4 TUM eo 4 When finished tighten the screws to hold the module in plac
44. aud rate define MOXA 0 400 define 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 amp CBAUD CBAUDEX 4000000 4 follow the standard termios baud rate define else ioctl fd SPECIAL BAUD RATE amp speed 4 2 EPM 3032 3337 3438 3112 DKO1 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 8 100 Bia Cu 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 to 0 Configure Serial Port Mode Use setinterfac
45. aximum extent possible under the law 2 Click Next to install using default settings 1 EPM3032Setup Select Installation Folder The installer vll install EPH 0325 etup to the following folder To install in this folder click To install to different folder enter it below ar click Browse Folder C Program 3032 Disk Lost Install EPM 30325 etup for yourself or for anyone who uses this computer 7 Just me 4 25 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 3 Click Next to start the installation ix EPH30325etup Contirm Installation The installer is ready to install EFM on your computer Click Nest to start the installation 4 Click Close to complete the installation 1 EPH3032Setup Installation Complete FPM 30325 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 4 26 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 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 CD or on the Windo
46. bus card and a mini PCI PCl e 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 EPM 3438 Module with 8 015 and 8 DOs with 3 KV digital isolation protection and a 2 KHz counter e EPM 3112 Module with 2 isolated CAN ports with DB9 connectors e 1 Mini PCI and Mini PCle expansion module Each model is shipped with the following items 1 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 PCI slots for interface expansion 2 isolated RS 232 422 485 ports with connectors e 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 nterface 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 Sp
47. 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 O Dimensions EPM 3032 3337 3438 3112 DKO1 Modules Hardware Introduction Appearance EPM 3032 Serial Port x 2 RS 232 422 485 089 Serial Port LED Indicators TX x 2 RX x 2 EPM 3112 CAN Port x 2 89 EPM 3438 Channel x 8 DO Channel x 8 EPM 3032 3337 3438 3112 DKO1 Modules Hardware Introduction EPM 3552 000989000 ofa sson ioo H 00009000 VGA Port x 1 DVI D Port x 1 EPM DKO1 PCI Express mini card socket 9999999 99999999 F 6 2 9 9 OOOH OHS 9 9 969969 69 Mini PCI socket Connector x 4 Reserved EPM 3032 3337 3438 3112 DKO1 Modules H
48. ct signal 2 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 packet data protocal type APN b Then check the ATD dial out number a basic command is ATD lt number gt 3 Read configuration file to connect a pppd call chtgprs 4 Finally examine connection state a If connection is ok a device pppO or pppn 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 gosd 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 d mv N99moxa hc25 script S99moxa hc25 mux script Note If you insert two EPM 3337 modules you can set module numz2 in etc init d moxa hc25 mux script Reboot the embedded computer Now the multiplexer will automatically start at bootup It takes a modem port dev ttyACMO as a parameter and create three pseudo terminal slaves Moxa 15 dev pts 0 1 2 ptmx dev pts 0 Modem port dev pts
49. d 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 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 0 4 if digit io timer add callback mngr HWI ndex port DGTIO GET INPUT interval input get cb amp port lt 0 1 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 DGTIO 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 void dgio input change exec DGIOMNGR mngr DGIOITEM item lh G9 HANDLE fd mngr gt fd item gt HWIndex Switch 16 gt case DGTIO GET INPUT sig Anput
50. d Time Fonts Internet Options Network Connections Power Options Regional and Language Options Wireless Link Wireless Network Setup Wizard 210 Scheduled Tasks Sounds and Audio Devices 37 Speech m Taskbar and Start Menu User Accounts 3 Windows CardSpace Windows Firewall T 2 Click Hardware gt Device Manager System Properties Device M arager gt Device Manager lists all the hardware devices installed onvour computer Use the Device Manager to change the properties of any device _ Device Manager Driver Signing lets you make sure that installed drivers compatible with Windows Windows Update lets you set up how Windows connects to Windows Update for drivers Windows Update Hardware Praliles Hardware profiles provide way For you to set up and store different hardware contigurations 4 54 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 3 Right click Serial Multiplexer gt Properties gt Port Settings 12 Device Manager File Action View Help OEM 4QDS7QFP3LL 4 Computer 880 Device Drivers Disk drives E Display adapters gg Human Interface Devices 23 IDE ATA ATAPI controllers oe Keyboards 3 Mice and other pointing devices E Modems 1 Monitors Multi port serial adapters 50 MU860 UART
51. de_array mode break Iq Gba 2 Get Port Number printf Input the Port Number wscanf Set the UART Mode CSO NG gzs wcs_port port wtoi wcs port Get Mode Value printf Input the Mode value wscanf Ss wcs_mode mode _wtoi wcs_mode Set UART Mode if uart_setmode port mode 1 priutrt Invalrd waluel printf Set UART Mode Fail n 4 33 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide else printf COM d s n port mode_array mode break j getwchar Sin getwchar _wtoi amp sin while 0 return 0 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 gt Counter IM n 0 1 Counter mode made EPM 3438 Driver Installation Before using the EPM 3438 expansion module you need to update the driver Please install the driver before inserting the expansion module Use the follow
52. e 3 2 EPM 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 089 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 RS 232 RS 422 RS 485 RS 485 4 wire 2 zo po nox now 6789 Connecting to the EPM 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 DIO CTO o DOO GND CN two a 3 O 11 LL DI Channel x 8 DO Channel x 8 EPM 3032 3337 3438 3112 DKO1 Modules Hardware Connection Description Digital Input Digital Input Dry Contact Wiring Wet Contact Wiring
53. e command to retrieve the parameters of the serial port configuration Moxa setinterface Usage setinterface device node interface no device node dev ttyMn n 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 on To change the current interface setting Moxa setinterface dev ttyM8 2 Moxa setinterface dev ttyM8 Now setting 15 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 o remount rw dev hdal Next edit etc udev rules d 96 moxa rules Add the following description to 96 moxa
54. e to the InstallShield Wizard for HC25 Connection Manager The InstallShield Ft Wizard will install HC25 Connection Manager Your computer To continue click Install WARMING This program is protected by copyright law and international treaties 4 42 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 7 During the installation process if you encounter the following error message just ignore it and click OK Fi HC25 Connection Manager InstallShield Wizard Installing HC25 Connection Manager The program Features vou selected are being installed Please wait while Ehe InstallShield Wizard installs 25 Connection Manager This may take several minutes Statys 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 File Action Help 2m m i IDE controllers L Modems b Siemens 25 HSDPA USE Modem Monitors 8 Multi port serial adapters 88 Network adapters Atheros 4R922 Wireless Network Adapter Realtek PCIe GBE Family Controller Realtek PCIe GBE Family Controller 2 88 Siemens HC25 Wireless Ethernet Adapter 27 Parts amp LPT MOXA Port 1 COMI MOXA Port 1 COME 7 MOXA Port 2 2
55. etc ppp peers chtgprs See 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 V f 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 interface c configuration file gt B B run at background 1 Example 1 Connect to AP 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 wep_key2 1234567890123 wep_tx_keyidx 0 priority 5 b Connection with following commands wpa_supplicant i c test wep conf B c Use iwconfig to check connection state wlanO IEEE 802 11abgn ESSID test Mode Managed Frequency 2 462 GHz Access
56. evice Manager to change the Settings Virtual Port 1 data Virtual Port Virtual Port 3 Device Manager Action 4 Computer Device Drivers H ae Disk drives id Display adapters IDE ATAJATAPI controllers P Modems id Monitors E Multi port serial adapters CP 102U Series PCI Bus 241 MUSGO UART CHIP PCI Multiplexer OMS H HB Network adapters df Ports COM amp LPT 24 Processors 9 Sound video and game controllers FX System devices Universal Serial Bus controllers 4 46 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 15 Right click on Serial Multiplexer and select properties You will see that 3 virtual serial modem ports have been generated you can change the port number using the drop down list Serial Multiplexer COWS Properties Pee eters e General Port Settings Driver Details Physical Serial Modern Port Port Mame Baud Rate bps 11 5200 l Virtual Seral Modem Parts Virtual Parks virtual Part 1 data channel COMTI Virtual Part 2 COMTE Virtual 3 NOTE Make sure each port name is unique duplicate names will create glitches Wireless Module Driver Installation Follow the steps below to install the
57. g 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 ko 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 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 o 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 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 directory 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 provide
58. gure Pre Shared Keys Static WEF Ent 5 Hexadecimal 0 9 A F CO ASCII Text all keyboard characters Encryption Keys WEP Size Transmit Key 152 WEP Key 1 S 1234557890 _ WEP 2 WEP Key 3 WEP Fay 4 4 62 EPM 3032 3337 3438 3112 DKO1 Modules 6 The connection will now be established Wireless Network Connection Status Lonnectan Status Duration Speed Signal Strength Packets Properti Bz Getting Wireless Module j Dese Mi Connected 01 45 27 54 0 Mbps Hecerved ew Wireless Networks Information 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 on the desktop and change to the Current Status tab Atheros Client Utility Current Profile Default Atheros AR922X Wireless Hetwork Adapter 7 Action Options Help Current Status Profile Management Total 80271 ATHEROS Wireless Mode Address Profile Name Link Status Diagnostics Default Mot Associated 5 GHz 130 Mbps Server Based Authentication 203 Febe 49 Signal Strength 4 63 ATHEROS
59. hndi read int fd buffer size Read data onto a buffer from an open port the size should be a multiple of the CANMSG size Parameters fd the open port buffer point to the buffer size maximum size to be read should be a multiple of the CANMSG size Returns lt 0 failure 0 no data ready Otherwise the number of bytes read define mxcan_write fd buffer size hndi write int fd buffer size Write data to the open port the size should be a multiple of the CANMSG size Parameters fd the open port buffer point to the data size size of the data should be a multiple of the CANMSG size Returns lt 0 on failure otherwise the number of bytes written Function Documentation unsigned int mxcan_get_bus_timing unsigned int fd Get the bus timing of an open port Parameters fd the open port Returns 0 on failure otherwise the bus speed in KHz 4 22 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide int mxcan get parameters unsigned int fd CANPRM param Get the parameter of an open port Parameters fd the open port param pointer to a structure of CANPRM Returns on success Otherwise return a negative value int mxcan get registers unsigned intfd unsigned char buffer int num Get the register values of an open port Parameters fd the open port buffer point to a buffer for these values num number of register values For module with 5 1000 chipset the value must be 3
60. ing steps to install the EPM 3438 module driver 1 EPM3438Setup exe to begin installation and then click Next 4 34 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide je EPH 3438 Welcome to the EPM 3438 Setup Wizard The installer wall guide you through the steps required to install EPI 3438 Expansion Module Driver on computer WARNING This computer program protected by copyright law and intermational treaties Unauthorized duplication or distribution of this program or any portion of it may result m severe civil ar criminal penalties and will be prosecuted to the maximum extent possible under the law 2 Click Next to install by default settings jx EPH 3438 Select Installation Folder The installer vall install EPR 3438 to the following folder install in this folder click To install to different folder enter it below ar click Browse Folder C Program 3438 Disk Cost Install EFM 3438 for yourself or for anyone who uses this computer 5 7 Just me 4 35 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 3 Click Next to begin installation jx EPH 3438 Confirm Installation The is ready to install EPM 3438 on your computer Click Nest to start the installation 4 Click Close to complete the installation jx EPH 3438
61. it Program n printf Nt 1 Display DIN n printr Nv 2 Display DOUT n gt printf Nt 3 Set DOUT value n printf Nt 4 Display both DIN and DOUT n sin getwchar 4 37 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide n wtoi amp sin do switch n if char 1 display the digital input case 1 Open dio hDIO mxdgio_epm3438_open 1 If we want to user first module for int i 20 i MAX DIN NUMBER i digital input port no i intDsnemxdglo get 1nput srirognal hDIO port rnmno peint DITO mxdgro cclose hDIlo break if char 2 display the digital output case 2 Open dio hDIO2mxdgio open for int 1 0 1 lt MAX_DOUT_NUMBER i digital input port_no 1 0 output signal NDIO no Prince Doutsd port 1 Close DIO mxdgio close hDIO break if char 3 Set the digital output case 3 Get Port Number getwchar printf Input the Port Number 0 d DOUT NUMBER 1 smode getwchar port no wtoi amp smode Get Value getwchar printf Input che value 0 or l1 e y smode getwchar data wtoi amp smode Open DIO hDIO2mxdgio open Set DOUT nboutemxdqrio set outpubt signalihDIO port no data if nDout 1 4 38 EPM 3032 3337 3438 3112
62. k PCIe GBE Family Controller Realtek PCIe GBE Family Controller 2 Siemens HC25 Wireless Ethernet Adapter e dy Ports COM amp LPT MOXA Port 1 COMI EI MOZA Port 1 COME MOZA Part 2 COM MOZA Part 2 COME F MOXA Part 3 COMB MOXA Port 4 10 y Siemens HC25 USB Com Pork COMMA Processors Sound video and game controllers System devices 4 53 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 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 1 Go to the Control Panel gt System E Control Panel File Edit View Favorites Tools Help 59 42 2 2 Search Folders Address gt Control Panel Va Control Panel gt Switch to Category View See Also A Windows Update 9 Help and Support at Accessibility Options 3 Administrative Tools EN Display m Game Controllers gt Keyboard Network Setup Wizard Printers and Faxes 3 Scanners and Cameras Add Hardware Data Sources ODBC Folder Options Intel R GMA Driver For Mobile x 2 Mouse Phone and Modem Options Realtek HD Sound Effect Manager u l Add or Remove Programs Date an
63. llation Wireless Module Driver Installation Configuring the GPRS HSDPA Connection without GPS Enabling GPS Functionality Configuring a Wireless Connection Getting Wireless Module Information EPM 3112 Driver Installation gt gt gt gt gt gt gt gt gt gt gt gt EPM 3112 Programming Guide EPM 3032 3337 3438 3112 DKO1 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 0 400 define MOXA SET SPECIAL BAUD_RATE MOXA 100 define MOXA_GET_SPECIAL BAUD_RATE MOXA 101 include lt gt struct termios term int fd speed fd open dev ttyM8 O_RDWR tegetattr fd amp term term c_cflag CBAUD CBAUDEX term c cflag B4000000 tcsetattr fd TCSANOW amp term speed 115200 ioctl fd SET SPECIAL BAUD RATE amp speed Example to get the b
64. ng 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 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 Moxa mount o remount rw 2 Install the file epm3112 deb Moxa home dpkg i epm3112 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 Library A simple library mxcanbus is offered see the following sub sections for details Define Options define mxcan_close fd close int Close an open port define mxcan_read fd buffer size hndl read int fd buffer size Read data onto a buffer from an open port the size should be a multiple of the CANMSG size define mxcan_
65. po 2 686 de umount After the driver installs you can use Ismod to check if the epm3438 module is loaded in 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 r epm3438 modprobe r moxa_swtd modprobe r moxa device dio 7 If you need to uninstall the driver you can use this command mount o remount rw dpkg r 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 EPM 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 0 functions is mxdgio h which is located in the inc mxphio directory for Linux and in the inc mxphio folder for Windows Moxa functions for DI DO When successful this function returns an access to the DIO device Otherwise
66. pp 2 4 4 and install ppp 2 4 5 deb Moxa apt get remove ppp Moxa home dpkg i 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 e 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 e 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 DKO1 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 e etc ppp peers chtgprs a pppd additional option file e etc chatscripts chtgprs connect chat file for connection e etc chatscripts chtgprs disconnect chat file for disconnection Follow the steps below to set up your pppd 1 Configure the etc ppp peers chtgprs file a First check if the name of the modem port is correct It should 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 Dete
67. r tf immngr mugr odispatcoh 0 1 define OXFFFFFFFF start and dispatch the timer operations Inputs lt mngr gt the manager Returns none n void digit io timer dispatch DGIOMNGR mngr DGIOITEM item unsigned int ms_sleep if defined _WIN32 WCE amp amp defined WIN32 struct timeval to mngr gt dispatch 1 while mngr gt list amp amp mngr gt dispatch for item mngr gt list item NULL item item 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 now time item gt next_time over due executable item gt next_time mngr gt now_timetitem gt interval n move to the next time 7 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 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 n continue 1 if ms_sleep MAX_TIME dif defined WIN32 WCE amp amp defined WIN32 to tv sec ms sleep 1000 to tv usec ms sleep 1000 1000 if select 0 NULL NULL 0 amp to 0 sleep break else Sleep ms_sleep mngr now time ms sleep dgio input change release mngr
68. rules The VendorlD of the EPM 3032 must be 0x1393and the Devicel D 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 0 If you want to set the serial mode to RS 232 use the following parameter RUN bin setinterface dev ttyM n 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 n 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 Moxa EPM 3438 Driver Installation 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 package cd dev shm mount o remount rw dpkg i epm3438 2 6 30 Db
69. s 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 d4 ln sf etc wpa supplicant ifupdown sh wpasupplicant Moxa etc network if down d sf etc wpa supplicant ifupdown sh wpasupplicant Moxa etc network if pre up d4 ln sf etc wpa supplicant ifupdown sh wpasupplicant Moxa etc network if post down dfs amp 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 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 p
70. se wait while the drivers install This may take some time to complete 4 Click Finish to complete the driver installation Device Driver Installation Wizard Completing the Device Driver Installation Wizard The drivers were successtully installed on this computer Driver Status Siemens AG Siemens Device Updated Siemens AG Siemens Device Updated Siemens AG 25 USB Device Updated 4 41 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 5 Navigate to the 25 HC25 usb ndis program files directory and double click HC25 Connection Manager msi EP HC25 usb ndis driver File Edit View Favorites Tools Help 7 Search gt Folders Address c CibempiDriversiHC251HC25 usb ndis driver m 0 0409 File and Folder Tasks program files Configuration Settings 7 KB d Make a new Folder Publish this Folder to the autorun 74 Autorun Web Setup Launcher Setup Information Share this Folder Macrovision Corporation 1 KB Setup T 289 Configuration Settings Other Places 571 T e 25 My Documents 5 Shared Documents 4 Computer t Network Places Details 6 Click Install HC25 Connection Manager Installshield Wizard Welcom
71. t Program Folder Atheros Existing Folders Accessories Administrative Tools Cinterion Startup 9 Click Next Atheros Client Installation Program Atheros Client Installation Program IMPORTANT Please Head 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 provide all of the functionality available in the ACU Atheros recommends that you use the Please note that a patch from Microsoft might be required to use the Microsoft tool with WPA security the next screen select whether you want use the ACU or a third party tool to configure 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 4 51 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 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 Clrent Installation Program 12 Click OK Atheros Client Installation Program The installation program installs the driver automatically when the client adapter is inserted Insert the ad
72. t 3 Unblock Retries Left 10 Sim Actions Action Pin Value 4 56 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 5 Select the device from the drop down list and enter the APN Name Siemens Connection Manager Connection Profiles SIM Select Device Siemens HC25 Wireless Ethernet Adapter Override SPP Profile ID Primary DES Secondary DNS Primary WBNS Secondary WBNS Marne IP Address Authentication Preference _ Username Password Connect Systray on minimized Auto Connect 6 Click Connect to connect to internet and the wireless connection will be established NOTE Do not close the program while the connection is established or the device driver may not work properly Wireless Hetwork Connection 6 Status y General Support statue 1 Address Type Assigned by ew IP Address 1117 82 89 277 Subnet Mask 255 255 255 248 Default Gateway 111 52 89 225 Details Windows did not detect problems with this connection IF pou cannot connect click i Repair 4 57 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 7 Now you can access this wireless network connection _ cx ESXWIHDO WS systems exe gt ol x Microsoft Windows XP version 5 1 2680 F
73. t to change the port name to fit your program Use the following steps to 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 13 Device Manager File Action View Help mmm OEM CGPERZIHXFB Computer Device Drivers Gee Disk drives R Display adapters Human Interface Devices 7 IDE ATA ATAPI controllers cm Keyboards Mice and other pointing devices 7 Monitors BB CAM Interface Board 000 Series PCI Bus 221 Multi port serial adapters Ex se Update Driver zi Disable HB Mebwc Uninstall E Ports i D Scan For hardware changes Opens property sheet Far Ehe current selection 4 29 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 3 At the Port Configuration tab select the port and then click Port Setting MOXA MUSAU UART CHIP PCI Bus Properties General Ports Configuration Driver Details Resources Rx FIFO Level Tx FIFO Level Port Setting Port Info Fart Humber 28 posent v Auto Enumerating COM Number Fix FIFO Level x iw Saetthe change to all ports Ts FIFO Level Set the change to all parts 4 30 EPM 3032
74. ue int mxcan set nonblocking unsigned int fd Set the open fd to be non blocking Parameters fd the open port Returns on success otherwise failure int mxcan set parameters unsigned int fd CANRM param Set the parameter of an open port Parameters fd the open port param pointer to a structure of CANPRM Returns on success Otherwise return a negative value Example Code You can download the library example code from MOXA website http www moxa com support support home aspx ATTENTI ON 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 l Execute EPM3032Setup exe to install the driver and then click Next 4 24 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide iz EPM3U32Setup Welcome to the EPM3032Setup Setup Wizard The installer wall guide you through the steps required to install EPMS0325 en your computer WARNING This computer program protected by copyright law and intermatianal treaties Unauthorized duplication or distribution of this program or any portion of it may result m severe civil ar criminal penalties and will be prosecuted to the m
75. unsigned int purge Purges the buffers of an open port Input lt fd gt the open port lt purge gt 1 received data buffer 2 transmit data buffer otherwise both Return Value 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 Input fd the open port buffer pointer to the buffer Return Value 0 on failure data not available otherwise the number of bytes read int mxcan set bus timing int fd unsigned int speed int mxcan set parameters int fd CANPRM param Sets the parameters of an open port Input lt fd gt the open port lt param gt pointer to the CANPRM structure Output lt speed gt bus timing in Hz Return Value 0 on success otherwise returns a negative number int mxcan set read timeout int fd unsigned int to Sets data reading timeout of an open port Input fd the open port to 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 to timeout in milliseconds Return Value O on success otherwise failure int mxcan write int fd char buffer int size fd 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 on failure otherwise
76. uter progran protected by copyright daw and interiational treaties Unauthorized duplication or distribution of this program ar any portion of it may result m severe civil criminal penalties and will be prosecuted to the maximum extent possible urider the law 4 64 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 2 Click Next to continue 3112 Select Installation Folder The installer will install 2112 to the following folder To install in this folder click Next To install different folder enter it below click Browse Folder FilesSMOMASEPM 31124 Disk Cost Install 3112 far yourself or for anyone who uses this computer 7 Just me 3 Click Next to start the driver installation ie 3112 Contirm Installation The installer is ready to install EPM 3112 an pour computer Chek Next to start the installation 4 65 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 4 Click Close to complete the driver installation jie EPM 3112 Installation Complete 3112 has been successtully installed Click Close to exit Action View Help eSNG ESAN X Computer HB Device Drivers we Disk drives 72 Display adapters IDE ATAJATAPI controllers 71 Monitors X MOXA CAN Controllers C
77. write fd buffer size hndl write int fd buffer size Write data to the open port the size should be a multiple of the CANMSG size Functions unsigned int mxcan_open int port Open a can port by the port number int mxcan_set_bus_timing unsigned int fd unsigned int speed Set the bus timing of an open port unsigned int mxcan_get_bus_timing unsigned int fd 4 21 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide Get the bus timing of an open port int mxcan_purge_buffer unsigned int fd unsigned int purge Purge the buffers of an open port int mxcan_set_nonblocking unsigned int fd Set the open fd to be non blocking int mxcan_inqueue unsigned int fd Get the number of received bytes that are queued in the driver of an open port int mxcan_outqueue unsigned int fd Get the number of bytes waiting for being transmitted to a can port int mxcan_get_stat unsigned int fd CANBST stat Get the statistics of an open port int mxcan_get_registers unsigned int fd unsigned char buffer int num Get the register values of an open port int mxcan_get_parameters unsigned int fd CANPRM param Ger the parameter of an open port int mxcan_set_parameters unsigned int fd CANPRM param Set the parameter of an open port Define Documentation define mxcan_close fd close int fd Close an open port Parameters fd the open port Returns None define mxcan_read fd buffer size
78. ws Update Web site with pour permission Head our privacy policy Can Windows connect to Windows Update ta search for software CO this time only Yes now and every time connect a device Click Next ta continue This wizard helps you install software for CP 102U Senes PCI Bus 9 your hardware came with an installation CD oe floppy disk insert it now What do want the wizard to da C Install fram list or specific location Advanced Click Hest continue 4 27 EPM 3032 3337 3438 3112 DKO1 Modules Software Installation and Programming Guide 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 File Action view gg See Disk drives E Display adapters Human InterFace Devices IDE controllers os Keyboards ya Mice and other pointing devices Monitors multi port serial adapters 241 lt 3032 Expansion Module Bus 241 UART CHIP PCI Bus i 88 Network adapters y Ports COM amp LPT MOXA Port 1 COMI MOXA Port 1 COMB 2 MOXA Port 2 2 jf MOXA Port 2 MOXA Port 3 COM3 MOXA Port 4 COMM Processors Sound video and game controllers d System devices Configuring Serial
79. z 70 dBm 57 40 MHz 69 dBm 9 515 20 MHz 71 dBm MCS7 20 MHz e 802 119 68 dBm 515 40 MHz 70 dBm 57 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 ICMP SNTP TCP UDP RADIUS 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 source type 0 to 5 VDC Output Current Max 20 mA per channel Output Voltage e Logic 0 to 0 55 V Logic 1 4 2 to 5 0V Connector Type Terminal block Physical Characteristics Weight 120 0 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
Download Pdf Manuals
Related Search
Related Contents
1746-RM001A-US-P, BASIC Language Reference Manual Radio Controlled Kids Projection Clock Teledex Telephone BTX4750 User's Manual SE42UM - Seiki Manual de instrucciones Interroll RollerDrive Copyright © All rights reserved.
Failed to retrieve file