MultiConnectTM PCIe MTPCIE-H5/MTPCIE-BW Developer Guide
MULTICONNECT PCIE DEVELOPER GUIDE MultiConnect PCIe Developer Guide Models: MTPCIE-H5-xx, MTPCIE-BW Part Number: S000538, Version 1.2 USA and Canada Edition Copyright This publication may not be reproduced, in whole or in part, without the specific and express prior written permission signed by an executive officer of Multi-Tech Systems, Inc. All rights reserved. Copyright © 2013 by Multi-Tech Systems, Inc. Multi-Tech Systems, Inc.
CONTENTS Contents Product Overview .................................................................................................................................................... 6 About MultiConnect PCIe.............................................................................................................................................. 6 Documentation ...............................................................................................................................................
CONTENTS Labeling Requirements .......................................................................................................................................... 34 Approvals and Certification......................................................................................................................................... 34 Example HSPA+ H5 Labels.........................................................................................................................................
CONTENTS Power Measurements................................................................................................................................................. 60 MTPCIE-H5 ................................................................................................................................................................ 60 MTPCIE-H5-V-BW ..................................................................................................................................................
PRODUCT OVERVIEW Product Overview About MultiConnect PCIe The MultiConnect™ PCIe embedded cellular modem is a complete, ready-to-integrate communications device that offers standard-based penta-band HSPA+ 21, dual-band EV-DO Rev A, or CDMA performance. This quick-to-market communications device allows developers to add wireless communication and GPS tracking to products with a minimum of development time and expense.
PRODUCT OVERVIEW Cables 1 - RS-232 DB9F-DB9M serial cable, 1 - RJ-45 Ethernet cable, 2 -USB cable 2 - SMA-to-UFL antenna cables (1 - for cellular, 1 - for GPS) 1 - RSMA-to-UFL antenna cable for Bluetooth/Wi-Fi Antennas 1 - 3.3V magnetic GPS antenna , 1 - HEPTA band SMA antenna, 1 - 2.
PINOUT Pinout Multi-Tech Mini PCIe Pinout Note: Some modems do not include all the pins shown above. Refer to your model’s Device Guide for model specific pinout information. SDIO can operate up to 25Mhz. Treat the SDIO traces to Host like a bus and keep the bus length as short as possible. Multi-Tech recommends adding series termination resistors on all the SDIO traces. 8 Pin # Name I/O Function 1 SDIO_D0 I/O Wi-Fi SDIO_D0 2 3.3Vaux I 3.
PINOUT Pin # Name I/O Function MTPCIE-H5 MTPCIE-H5-V-BW MTPCIEBW Ground X X X X X 21 GND 22 3G_RST I 3G Cellular Reset line (low active) 23 1.8V O 1.8V output 24 3.3Vaux I 3.
PINOUT 10 Pin # Name I/O Function 48 DTR I 3G Cellular UART DTR X 49 RXD O 3G Cellular UART Receive data X 50 GND 51 TXD I 3G Cellular UART transmit data 52 3.3Vaux I 3.
PINOUT Standard Mini-PCI Express Pinout Pin # Function I/O Description 1 WAKE# O WAKE 2 3.3Vaux I 3.3Vaux 3 COEX1 I Co-existence pin, not defined 4 GND 5 COEX2 I Co-existence pin, not defined 6 1.5V I 1.
PINOUT 12 Pin # Function I/O Description 33 PETp0 I PCI Express transmitter differential pair signal 34 GND GND 35 GND GND 36 USB_D- 37 GND 38 USB_D+ I/O USB Positive Data 39 3.3Vaux I 3.3Vaux 40 GND 41 3.3Vaux I 3.3Vaux 42 LED_WWAN# O LED Output 43 GND 44 LED_WLAN# 45 Reserved 46 LED_WPAN# 47 Reserved 48 1.5V 49 Reserved Reserved 50 GND GND 51 Reserved Reserved 52 3.
PINOUT Pinout for Cellular USB Only Pin # Name I/O Description 2 3.3 Vaux I 3.3 Vaux 4 GND Ground 9 GND Ground 15 GND Ground 18 GND Ground 20 3G_ONOFF 21 GND 22 3G_RST I 3G cellular reset line 24 3.3 Vaux I 3.3 Vaux 26 GND Ground 27 GND Ground 29 GND Ground 35 GND Ground 36 USB_D- 37 GND 38 USB_D+ I/O 3G USB Positive Data 39 3.3 Vaux I 3.3 Vaux 40 GND 41 3.3 Vaux I 3.
DESIGN CONSIDERATIONS Design Considerations Design Consideration When using the Multi-Tech MiniPCIe form factor: ■ Consult your modem’s device guide for device dimensions. With the modem, the Multi-Tech Mini PCIe form factor exceeds the standard Mini PCIe maximum component height for top and bottom. ■ If you need to install components under the module, use taller connectors to avoid conflict. Multi-Tech recommends not installing components under the module.
DESIGN CONSIDERATIONS ■ Eliminate ground loops, which are unexpected current return paths to the power source and ground. ■ Decouple the power cord at the power cord interface with decoupling capacitors. Methods to decouple power lines are similar to decoupling telephone lines. ■ Locate high frequency circuits in a separate area to minimize capacitive coupling to other circuits. ■ Locate cables and connectors to avoid coupling from high frequency circuits.
DEVELOPER BOARD AND SCHEMATICS Developer Board and Schematics Note: Third-party components shown in the following drawings are included as examples only. Developer Board This developer board drawing shows the major board components.
DEVELOPER BOARD AND SCHEMATICS MultiConnectTM PCIe MTPCIE-H5/MTPCIE-BW Developer Guide 17
DEVELOPER BOARD AND SCHEMATICS Assembly Diagram Top 18 MultiConnectTM PCIe MTPCIE-H5/MTPCIE-BW Developer Guide
DEVELOPER BOARD AND SCHEMATICS Bottom MultiConnectTM PCIe MTPCIE-H5/MTPCIE-BW Developer Guide 19
DEVELOPER BOARD AND SCHEMATICS Developer Board Block Diagram 20 MultiConnectTM PCIe MTPCIE-H5/MTPCIE-BW Developer Guide
DEVELOPER BOARD AND SCHEMATICS Developer Board Schematics MultiConnectTM PCIe MTPCIE-H5/MTPCIE-BW Developer Guide 21
DEVELOPER BOARD AND SCHEMATICS 22 MultiConnectTM PCIe MTPCIE-H5/MTPCIE-BW Developer Guide
DEVELOPER BOARD AND SCHEMATICS MultiConnectTM PCIe MTPCIE-H5/MTPCIE-BW Developer Guide 23
DEVELOPER BOARD AND SCHEMATICS 24 MultiConnectTM PCIe MTPCIE-H5/MTPCIE-BW Developer Guide
DEVELOPER BOARD AND SCHEMATICS MultiConnectTM PCIe MTPCIE-H5/MTPCIE-BW Developer Guide 25
DEVELOPER BOARD AND SCHEMATICS 26 MultiConnectTM PCIe MTPCIE-H5/MTPCIE-BW Developer Guide
DEVELOPER BOARD AND SCHEMATICS MultiConnectTM PCIe MTPCIE-H5/MTPCIE-BW Developer Guide 27
DEVELOPER BOARD AND SCHEMATICS 28 MultiConnectTM PCIe MTPCIE-H5/MTPCIE-BW Developer Guide
DEVELOPER BOARD AND SCHEMATICS MultiConnectTM PCIe MTPCIE-H5/MTPCIE-BW Developer Guide 29
DEVELOPER BOARD AND SCHEMATICS Board Components Jumper Description JP3, JP4, JP5, JP48 Selects CGND or GND for antenna holder grounding. Default is CGND. JP6 JP6 allows you to select either the internal 5V regulator (INT PWR) or to choose EXT 5V (EXT PWR). For the EXT PWR, you can use your own external 5V power source and plug it into J11. JP43, JP44 Not used by PCIe devices. JP45 Board Power. Default is installed. JP49 Probes for connecting speaker. JP50 Probes for connecting microphone.
DEVELOPER BOARD AND SCHEMATICS Jumper Description JP90 Not used by PCIe device.This jumper, when installed, connects power to OCG-E device. (When using Developer Kit with OCG-E devices). J6 Not used by PCIe device. J23 Socket for installing PCIe device. J8, J9, J10, J13 Oscilloscope probe ground connections S1 Not used by PCIe device. S3 Reset button for PCIe device. S4 Button for on/off of PCIe. Installing a Communications Device onto the Board To install a device on the board: 1. 2.
SAFETY NOTICES AND WARNINGS Safety Notices and Warnings The following safety statements may be relevant and required in the host product literature. Radio Frequency (RF) Safety Due to the possibility of radio frequency (RF) interference, it is important that you follow any special regulations regarding the use of radio equipment. Follow the safety advice given below. ■ Operating your device close to other electronic equipment may cause interference if the equipment is inadequately protected.
SAFETY NOTICES AND WARNINGS ■ Do not use this device while driving. ■ Respect national regulations on the use of cellular devices in vehicles. ■ If incorrectly installed in a vehicle, operating the wireless device could interfere with the vehicle’s electronics. To avoid such problems, use qualified personnel to install the device. The installer should verify the vehicle electronics are protected from interference.
LABELING REQUIREMENTS Labeling Requirements Approvals and Certification Your Multi-Tech device is an industry and/or carrier approved modem. ■ PTCRB Requirements (GPRS and HSPA/HSDPA only). The antenna system cannot be altered. If altered, additional PTCRB testing may be required. ■ For HSPA+, HSPA, HSDPA and GPRS Devices The modem's 15-character IMEI (International Mobile Equipment Identity) number is printed on the modem's label.
LABELING REQUIREMENTS Labels are positioned on the device as follows: Host Labeling The following statements are required to be on the host label: ■ This device contains FCC ID: {Add the FCC ID of the specific device} ■ This device contains equipment certified under IC ID: {Add the IC ID of the specific device} MultiConnectTM PCIe MTPCIE-H5/MTPCIE-BW Developer Guide 35
REGULATORY STATEMENTS Regulatory Statements R&TTE Directive Compliance The CE mark is affixed to this product to confirm compliance with the following European Community Directives: Council Directive 2004/108/EC of 15 December 2004 on the approximation of the laws of Member States relating to electromagnetic compatibility; and Council Directive 2006/95/EC of 12 December 2006 on the harmonization of the laws of Member States relating to electrical equipment designed for use within certain voltage limits; a
REGULATORY STATEMENTS Restriction of the Use of Hazardous Substances (RoHS) Multi-Tech Systems, Inc Certificate of Compliance 2011/65/EU Multi-Tech Systems confirms that its embedded products comply with the chemical concentration limitations set forth in the directive 2011/65/EU of the European Parliament (Restriction of the use of certain Hazardous Substances in electrical and electronic equipment - RoHS).
REGULATORY STATEMENTS 1. l'appareil ne doit pas produire de brouillage, et 2. l'utilisateur de l'appareil doit accepter tout brouillage radioélectrique subi, même si le brouillage est susceptible d'en compromettre le fonctionnement. Warning: Changes or modifications to this radio device not expressly approved by the party responsible for compliance could void the user’s authority to operate the equipment. Note: In Wi-Fi operation, the modem cannot operate on Channels 12, 13, or 14 due to FCC regulations.
ENVIRONMENTAL NOTICES Environmental Notices Waste Electrical and Electronic Equipment Statement Note: This statement may be used in documentation for your final product applications. WEEE Directive The WEEE Directive places an obligation on EU-based manufacturers, distributors, retailers, and importers to takeback electronics products at the end of their useful life.
ENVIRONMENTAL NOTICES Information on HS/TS Substances According to Chinese Standards In accordance with China's Administrative Measures on the Control of Pollution Caused by Electronic Information Products (EIP) # 39, also known as China RoHS, the following information is provided regarding the names and concentration levels of Toxic Substances (TS) or Hazardous Substances (HS) which may be contained in Multi-Tech Systems Inc.
ENVIRONMENTAL NOTICES Information on HS/TS Substances According to Chinese Standards (in Chinese) 依照中国标准的有毒有害物质信息 根据中华人民共和国信息产业部 (MII) 制定的电子信息产品 (EIP) 标准-中华人民共和国《电子信息产品污染 控制管理办法》(第 39 号),也称作中国 RoHS, 下表列出了 Multi-Tech Systems, Inc.
ANTENNAS, CABLES, GPS Antennas, Cables, GPS Antenna System Cellular Devices The cellular/wireless performance depends on the implementation and antenna design. The integration of the antenna system into the product is a critical part of the design process; therefore, it is essential to consider it early so the performance is not compromised. If changes are made to the device's certified antenna system, then recertification will be required by specific network carriers.
ANTENNAS, CABLES, GPS 3G Antenna Requirements/Specifications Category Description Frequency Range 824 – 960 MHz / 1710 – 1990 MHz / 1920 – 2170 MHz Impedance 50 Ohms VSWR VSWR should not exceed 2.0:1 at any point across the bands of operation Typical Radiated Gain 850 MHz 3.17 dBi 950 MHz 3.51 dBi 1800 MHz 3.55 dBi 1900 MHz 3.0 dBi 2100 MHz 3.
ANTENNAS, CABLES, GPS Band Loss 900 0.40 1800 0.70 1900 0.63 2100 0.70 GPS Antennas GPS Antenna Specifications Category Description Frequency Range 1575.24 MHz Impedance 50 Ohms VSWR 2.0:1 max Gain 10-30 dBi LNA Current Consumption 40 mA max Noise Figure < 2dB Polarization RHCP Input voltage 3.0V ± 0.2V Bluetooth and Wi-Fi Antenna Specifications Manufacturer: Taoglas Antenna Solutions Manufacturer's Model Number: GW.11.A153 Category Description Frequency Range 2.
ANTENNAS, CABLES, GPS Bluetooth and Wi-Fi Antenna Cable Information Use the following UFL to R-SMA RF cable to connect the device to the antenna. Description: Coax R-SMA to UFL 6 inch (152.4mm) Multi-Tech Part Number: 45009628L Multi-Tech ordering information: Model Quantity CARSMA-UFL-1 1 CARSMA-UFL-10 10 CARSMA-UFL-50 50 Average Cable Loss The table shows the average cable loss for each cell band. Band Loss 2.4MHz 0.63 OEM Integration Note: This device is for OEM integration only.
ANTENNAS, CABLES, GPS FCC Grant Notes The OEM should follow all the grant notes listed below. Otherwise, further testing and device approvals may be necessary. Installing in Portable Equipment The available scientific evidence does not show that any health problems are associated with using low power wireless devices. There is no proof, however, that these low power wireless devices are absolutely safe.
DEVICE OVERVIEW Device Overview Description The MultiConnect PCIe embedded cellular modem is a complete, ready-to-integrate communications device that offers standards-based penta-band HSPA+ 21 performance. This quick-to-market communications device allows developers to add wireless communication and GPS tracking to products with a minimum of development time and expense.
DEVICE OVERVIEW Both tools are currently available inside our embedded Linux systems. These tools do not run on PCs. To invoke the tools, secure shell into the device using putty or another tool from your Windows computer. Once you secure shell and login, you can invoke the tools and test. You will need Ethernet connectivity to the development board for the secure shell and login.
MECHANICAL DRAWING Mechanical Drawing MTPCIE-H5-xx MultiConnectTM PCIe MTPCIE-H5/MTPCIE-BW Developer Guide 49
MECHANICAL DRAWING MTPCIE-BW 50 MultiConnectTM PCIe MTPCIE-H5/MTPCIE-BW Developer Guide
SPECIFICATIONS Specifications MTPCIE-H5 Specifications Category Description General Standards Penta-band HSPA+ 21 Quad-band GSM/GPRS/EDGE SMS is based on CS/Packet-Switched (PS) domain of GSM and WCDMA USB Interface is CDC-ACM compliant Frequency Bands Penta-band HSPA: 850/900/1700/1900/2100 MHz Quad-band GSM/GPRS/EDGE: 850/900/1800/1900 MHz Speed Data Speed HSDPA data service of up to 21.0 Mbps downlink/5.76 Mbps uplink Interface USB Interface USB 2.0 high speed compatible UART Interface 0-1.
SPECIFICATIONS Category Description SMS Point-to-Point messaging Mobile-Terminated SMS Mobile-Originated SMS Wi-Fi IEEE 802.11 b,g, n, compliant SDIO host interface (0-1.8V) Bluetooth Serial Port Protocol (SPP) UART Interface 1.8V GPS High-sensitivity of indoor reception, better than -165 Cold start autonomous -147 dBm Hot start autonomous -161 dBm Tracking mode -166 dBm Accuracy 3 m TTF from cold start 42 s TTF from warm start 30 s TTF from hot start 1.8 s Multi-channel GPS L1 1575.
SPECIFICATIONS Category Description Safety Compliance UL 60950-1 cUL 60950-16t EN 60950-1 Network Compliance GCF Certified Module MTPCIE-H5 DC Electrical Characteristics Units: Volts Parameter Minimum Maximum 3.3 Volt Powered 3.0 3.6 Input Low Level 0 0.35 Input High Level 1.5 1.9 Output Low Level 0 0.2 Output High Level 1.6 1.9 Absolute Maximum Rating Voltage at any signal pin: 0.0V to +1.
SPECIFICATIONS 54 PIN # Name I/O Function Type 5 SDIO_D2 I/O Wi-Fi SDIO_D2 6 BT_TXD I 7 SDIO_D3 8 BT_RTS 9 GND 10 BT_CTS 11 Notes MTPCIE-H5V-BW MTPCIEH5 MTPCIEH5-V 1.8V no function no function Bluetooth Transmit data 1.8V no function no function I/O Wi-Fi SDIO_D3 1.8V no function no function I Bluetooth RTS 1.8V no function no function 1.8V no function no function SDIO_CMD I/O Wi-Fi SDIO_CMD 1.
SPECIFICATIONS PIN # Name I/O Function Type Notes 1.8V Active Low: Properly turn off and detach from the carrier network. Initial power on needs at least 5.5 seconds before AT command are issued. Low for at least 1 second turns off the 3G radio. It can take at least 8 seconds to turn off 3G radio. High turns on the 3G radio and it needs at least 13 seconds before AT commanda are issued.. No connect if not used. Active Low: Emergency reset without proper shutdown and without detach from the network.
SPECIFICATIONS 56 PIN # Name I/O Function Type 24 3.3Vaux I 3.3Vaux 25 GPIO_1 I/O Bluetooth 1.8V General purpose I/O 26 GND Ground 27 GND Ground 28 3G_DVI_W I/O A0 3G Cellular digital voice control line 29 GND Ground 30 3G_DVI_CL I/O K 31 Notes No connect MTPCIE-H5V-BW MTPCIEH5 MTPCIEH5-V no function no function 1.8V no function 3G Cellular digital voice clock 1.8V no function 3G_DVI_RX I 3G Cellular digital voice receive 1.
SPECIFICATIONS PIN # Name 42 I/O LED_WWA O N# Function Type 3G Cellular STAT 1.8V LED Output Notes MTPCIE-H5V-BW MTPCIEH5 MTPCIEH5-V Command to enable LED function, AT#GPIO=1,0,2. This pin needs an external transistor to drive an external LED. Therefore, status indicated is reversed with respect to the pin status: Permanently off = Device off Fast blinking (Period 1s, Ton 0.5s) = Net search / Not registered / turning off Slow blinking (Period 3s, Ton 0.
SPECIFICATIONS 58 PIN # Name I/O Function Type 48 DTR I 3G Cellular UART 1.8V DTR 49 RXD O 3G Cellular UART 1.8V Receive data 50 GND 51 TXD I 3G Cellular UART 1.8V transmit data 52 3.3Vaux I 3.3Vaux Notes Avoid having any HIGH logic level signal applied to any 3G input digital pins when the 3G module is powered off or during an ON/OFF transition.
SPECIFICATIONS Typical Power Flow ■ Peak inrush current is a fast rising pulse at power start up on board supplies or modem cap charging. It is influenced by the design and limits of the power supply providing power to the device. ■ Radio initialization is a lower value steady current phase that occurs while the radio gets initialized and ready to talk to the cell network. ■ Once connected to the network, there is a steady idle current state.
SPECIFICATIONS Power Measurements Multi-Tech Systems, Inc. recommends that you incorporate a 10% buffer into your power source when determining product load. MTPCIE-H5 Radio Protocol Cellular Call Box Connection No Data (Amps) Average Measured Current (Amps) at Maximum Power TX Pulse (Avg) Total Inrush Charge Amplitude Current Measured in (Amps) for GSM850 or Millicoulomb Peak Current for HSDPA GSM850 0.056 0.629 2.5 5.27 HSDPA 0.057 0.727 0.804 5.27 3.
APPLICATION NOTES Application Notes RF Performances RF performances are compliant with the ETSI recommendation 05.05 and 11.10. The module’s radio transceiver meets the requirements of 3GPP Release 5 & 6. All values indicated are conducted.
APPLICATION NOTES Frequency Bands 62 Mode Freq. TX (MHz) Freq. RX (MHz) Channels TX-RX offset GSM850 824.2- 848.8 869.2 - 893.8 128 - 251 45 MHz EGSM900 890.0 - 914.8 935.0 - 959.8 0 - 124 45 MHz 880.2 - 889.8 925.2 - 934.8 975 - 1023 45 MHz DCS1800 1710.2 - 1784.8 1805.2 - 1879.8 512 - 885 95 MHz PCS1900 1850.2 - 1909.8 1930.2 - 1989.8 512 - 810 80 MHz WCDMA850 (band V) 826.4 - 846.6 871.4 - 891.6 Tx: 4132 45 MHz 4233 Rx: 4357 - 4458 WCDMA900 (band VIII) 882.4 - 912.
INSTALLING DRIVERS FOR NON-UIP HSPA+ DEVICES Installing Drivers for Non-UIP HSPA+ Devices HSPA+ Device Driver Installation Installing on Linux The Linux OS includes a generic USB driver for modems supporting CDC/ACM. Multi-Tech tested the following Linux operating systems and all used port ttyACM0. If your system has another device using this port, your port numbers may be different. ■ Ubuntu ■ Debian ■ Centos ■ Ubuntu 13.04 ■ Debian 6.0.6 ■ Fedora 15 ■ openSUSE 11.4 ■ CentOS 6.
INSTALLING DRIVERS FOR NON-UIP HSPA+ DEVICES If this returns an error response, such as # FATAL: Module cdc-acm not found, the kernel module is not on your system. You will need to build the driver. Building a Linux Driver If your system is missing the Linux driver: 1. 2. 3. 4. 5. Retrieve the appropriate kernel source code version for your system. This should be in your OS distribution package. Unpack it.
INSTALLING DRIVERS FOR NON-UIP HSPA+ DEVICES Installing on Non-USB Powered Devices Turn on the device and wait 15 seconds before connecting the USB cable. If you connect the USB cable before supplying power to the device, the Windows Add New Hardware Wizard may appear and show Cannot Install this Hardware. If this occurs, click Finish. Windows detects additional devices and prompts you to install the additional devices.
INSTALLING DRIVERS FOR NON-UIP HSPA+ DEVICES Installing on Windows XP This process installs four drivers. Note: If you previously installed USB drivers for this device, uninstall them before installing or re-installing this driver. Uninstall all existing drivers for this device. Refer to Uninstall Windows Drivers for details. Before you connect the device (disconnect the device if you connected it): 1. 2. 3. 4. Go to the location where you extracted the driver and open the H5-USB\Driver folder.
INSTALLING DRIVERS FOR NON-UIP HSPA+ DEVICES Uninstalling Windows Drivers Note: Disconnect the device before uninstalling drivers. Windows 8 To uninstall drivers from Windows 8: 1. 2. 3. Open Windows Programs and Features. Uninstall Windows Driver Package – Intel Mobile Communications (flashusb) USB. Uninstall all Telit modems, ports, and USB drivers. Windows 7 or Vista To uninstall drivers from Windows 7 or Vista: 1. 2. 3. Open Programs and Features from the Windows Control Panel.
INSTALLING DRIVERS FOR NON-UIP HSPA+ DEVICES 2. 3. 4. Right-click on the Telit Mobile Modem and select Uninstall. Select Delete the driver software for this device and click OK. Repeat the removal steps to uninstall each Telit port and the Telit Universal Serial Bus Control.
USING LINUX WITH H5 DEVICES Using Linux with H5 Devices Shell Commands Testing Serial Ports To test the serial ports created by the driver, type in a shell: # cat /dev/ttyACM0 & # echo –en "ATE0\r" > /dev/ttyACM03 # echo –en "AT\r" > /dev/ttyACM0 Note: Sending ATE0 is required, to avoid issues in the terminal output.
USING LINUX WITH H5 DEVICES # If you want to use the HSDPA link as your gateway defaultroute # pppd must not propose any IP address to the peer #noipdefault ipcp-accept-local ipcp-accept-remote # Keep modem up even if connection fails #persist # Hardware flow control crtscts # Ask the peer for up to 2 DNS server addresses usepeerdns # No ppp compression novj nobsdcomp novjccomp nopcomp noaccomp # For sanity, keep a lock on the serial line lock # Show password in debug messages show-password This script cal
USING LINUX WITH H5 DEVICES pathname – file name with its own path. flags – is an int specifying file opening mode: is one of O_RDONLY, O_WRONLY or O_RDWR which request opening the file read-only, write-only or read/write, respectively. Returns: The new file descriptor fildes if successful, -1 otherwise. Example Open the /dev/ttyACM0.
USING LINUX WITH H5 DEVICES write() The write() function writes nbyte bytes from the buffer that are pointed by buf to the file associated with the open file descriptor. fildes. Header File unistd.h Prototype: ssize_t write(int fildes, const void *buf, size_t nbyte) Parameters: fildes – file descriptor buf – destination buffer pointer nbyte – number of bytes that write() attempts to write Returns: The number of bytes actually written if the operation is completed successfully, otherwise it is -1.
USING LINUX WITH H5 DEVICES Example Close the ttyACMx file. if(close(fd) < 0) { /* Error Management Routine */ } else { /* File Closed */ } Test Program() The following simple C program is useful to test the modem issuing an AT command. The program opens the /dev/ttyACM0 interface and calls the write() and the read() function to send an AT command and receive the subsequent output. #include /* Standard input/output definitions */ #include
USING LINUX WITH H5 DEVICES else printf ( "%s\n", "succeed" ); } return (fd); } int main() { int serialFD = open_port(USB); char buf[BUFSIZE]; memset(buf,0,BUFSIZE); write(serialFD, "AT\r" , strlen("AT\r")); sleep(1); read( serialFD, buf, BUFSIZE ); printf("The string is: %s\n", buf); close(serialFD); return 0; } The sleep instruction is required because the modem response after issuing the AT command is not immediate, so you need to wait a bit before reading.
INDEX Index A account activation.........................................................47 activation cellular devices.........................................................47 antenna .........................................................................42 cable....................................................................43 45 cellular devices.........................................................42 GPS...........................................................................44 Wi-Fi RF....
INDEX shell commands .......................................................69 troubleshoot driver..................................................63 M maintenance .................................................................33 mechanical drawing .................................................49 50 N noise suppression..........................................................14 P PC board layout.............................................................14 pinout.....................................