EUROTECH MRG1011 REGATE 10-11-16 User Manual My

EUROTECH SpA REGATE 10-11-16 My

User Manual

Original User ManualReliaGATE 10-11-16Multi-Service Gateway & Edge ControllerRev. 1-0 — 15 February 2016 — REGATE-10-11-16_UserMan_EN_1-0 — ENGLISH
TrademarksAll trademarks and registered trademarks are the property of their respective owners.Revision historyRevision Description Date1-0 First release 15 February 2016© 2016 Eurotech SpA - Via Fratelli Solari 3/A - 33020 AMARO (UD) - Italy
ReliaGATE 10-11-16 User Manual Rev 1-0 Table of contentsTABLE OF CONTENTSTrademarks 2Revision history 2Table of contents 31 Important Information 71.1 Signals used in this document 71.2 Disclaimer of liability 81.3 Intended audience 82 Safety Instructions 92.1 Observe antistatic precautions 92.2 Connect power supply correctly 93 How to receive technical assistance 113.1 How to receive technical support 113.2 How to return a product to Eurotech 114 Conventions used in this document 134.1 Conventions for signal names 134.2 Abbreviations for direction and electrical characteristics of a signal 135 Product overview 155.1 Product labels 166 Declaration of Conformity 176.1 FCC compliance 176.2 RoHS compliance 176.3 WEEE compliance 177 EMI / EMC requirements 197.1 EN 61000-6-2:2005 Immunity Requirements, B criteria 197.2 EN 61000-6-4:2001 Radiated Disturbance 197.3 EN 61000-6-4:2007 Conducted Disturbance 198 Technical Specifications 218.1 Notes about the power supply unit 229 Getting started 2310 Product interfaces 2510.1 Front panel interfaces 2510.2 Rear panel interfaces 2610.3 Service panel interfaces 2710.4 LED indicators 2810.5 Client USB interface 2910.5.1 Connector and mating connector specifications 2910.5.2 Connector pinout 2911 Interfaces in detail 3111.1 Digital I/O interfaces 3111.1.1 Connector and mating connector specifications 3111.1.2 Connector pinout 3111.2 Serial ports 1 and 2 3211.2.1 Connector and mating connector specifications 323 / 68
Table of contents ReliaGATE 10-11-16 User Manual Rev 1-011.2.2 Connector pinout 3211.2.3 DIP switch for RS485 fail-safe resistors insertion 3311.2.3.1 Switches meaning 3311.3 CAN ports 0 and 1 3411.3.1 Connector and mating connector specifications 3411.3.2 Connector pinout 3411.4 Cellular with integrated GPS 3511.4.1 Cellular antenna specifications 3511.4.2 Cellular modem specifications 3511.4.3 GPS antenna specifications 3611.4.4 GPS receiver specifications 3611.5 Wi-Fi and Bluetooth 3711.5.1 Antenna specifications 3711.5.2 Wi-Fi specifications 3711.5.3 Bluetooth specifications 3711.5.4 BLE specifications 3711.5.5 ANT specifications 3811.6 Ethernet port 3911.6.1 Connector and mating connector specifications 3911.6.2 Connector pinout 3911.6.3 Port specifications 3911.7 Host USB ports 4011.7.1 Connector and mating connector specifications 4011.7.2 Connector pinout 4011.8 Power features 4111.8.1 Power supply 4111.8.1.1 Connector and mating connector specifications 4111.8.1.2 Connector pinout 4111.8.2 Power Management 4111.9 The Reset pushbutton 4211.10 RTC (Real Time Clock) 4311.10.1 The RTC device "/dev/rtc1" 4311.10.2 The RTC battery 4311.10.2.1 How to enable / disable the RTC battery 4311.11 The Programmable pushbutton 4411.12 The MicroSD card receptacle 4511.13 The MicroSIM card receptacle 4511.14 Debug Serial port 4611.14.1 Connector and mating connector specifications 4611.14.2 Connector pinout 4611.15 Watchdog 4712 Software 4912.1 The Linux OS distribution 4912.2 The bootloader procedure 4912.2.1 How to select the MLO source 4912.2.2 How to set up a correct microSD card / eMMC card partition 4913 Administrative console 5113.1 How to log in using the Serial console 5113.2 How to log in using the Remote login 5113.2.1 If your development PC is running Linux 5113.2.2 If your development PC is running Windows 5213.3 How to change your security settings 5214 How to access to Linux peripherals 5314.1 Ethernet port 534 / 68
ReliaGATE 10-11-16 User Manual Rev 1-0 Table of contents14.2 Wi-Fi 5314.3 Serial Ports 5314.3.1 How to set the RS232/485 serial modes 5314.3.1.1 Use the ethsetserial utility to configure the serial ports 5314.3.1.2 Implement the ioctl in the source code to configure the serial ports 5314.4 Modem 5614.5 CAN Bus 5614.5.1 How to enable the CAN bus 5V 5614.6 Digital I/Os 5714.7 LED indicators 5714.7.1 How to drive a LED 5714.8 Flash Memory 5714.9 Watchdog 5814.9.1 Manage the watchdog using the C programming language 5814.9.2 Manage the watchdog from the command line 5814.9.3 For furhter information 5914.10 RTC 5914.10.1 How to use the timestamp registers 5914.10.2 How to use the user-available byte 6014.10.3 How to automaticallly wake the ReliaGATE 10-11-16 up from the sleep mode 6014.11 EEPROM 6014.11.1 How to enable / disable the EEPROM write-protection 6015 Mechanical specifications 6316 Install / remove the product 6516.1 Install the ReliaGATE 10-11-16 on a DIN rail 6516.2 Remove the ReliaGATE 10-11-16 from a DIN rail 6516.3 Remove the DIN mounting kit from the ReliaGATE 10-11-16 6616.4 Install the DIN mounting kit on the ReliaGATE 10-11-16 66Notes 675 / 68
(This page has been intentionally left blank)
ReliaGATE 10-11-16 User Manual Rev 1-0 1 Important Information1 IMPORTANT INFORMATIONCAREFULLY READ AND UNDERSTAND THE INSTRUCTIONS CONTAINED IN THISDOCUMENT BEFORE INSTALLING / OPERATING THE PRODUCT.KEEP THIS DOCUMENT FOR FUTURE REFERENCE.Whenever you have any doubt regarding the correct understanding of the instructions contained in thisdocument contact your local Eurotech Technical Support Team (see the last page of this document forfurther details).To lower the risk of personal injury, electric shock, fire or damage to equipment, observe the followingprecautions, as well as using good technical judgment, whenever installing / operating the product.1.1 Signals used in this documentDANGERINDICATES A HAZARD WITH A HIGH LEVEL OF RISK WHICH, IF NOT AVOIDED, WILLRESULT IN DEATH OR SERIOUS INJURYWARNINGINDICATES A HAZARD WITH A MEDIUM LEVEL OF RISK WHICH, IF NOT AVOIDED, COULDRESULT IN DEATH OR SERIOUS INJURYCAUTIONINDICATES A HAZARD WITH A LOW LEVEL OF RISK WHICH, IF NOT AVOIDED, COULDRESULT IN MINOR OR MODERATE INJURYNOTICEIndicates practices not related to personal injury, such as:lAn instruction to follow to use the product effectivelylA statement of company policy related to product or property protection7 / 68
1 Important Information ReliaGATE 10-11-16 User Manual Rev 1-01.2 Disclaimer of liabilityEurotech has reviewed the contents of this document to ensure accuracy and consistency with thehardware and software described.Always refer to the latest available manual revision available at: www.eurotech.com.1.3 Intended audienceThis document is intended for system integrators, who are skilled persons with a thorough knowledge inbringing together component subsystems into a whole, ensuring that those subsystems function together.8 / 68
ReliaGATE 10-11-16 User Manual Rev 1-0 2 Safety Instructions2 SAFETY INSTRUCTIONSObserve the following safety instructions when installing / operating the product.Failure to comply with these instructions or with specific warnings elsewhere in this document violatessafety standards of design, manufacture, and intended use of the product.Eurotech assumes no liability for any failure to comply with these instructions.2.1 Observe antistatic precautionsNOTICEPREVENTING ELECTROSTATIC DISCHARGE (ESD)When handing the product described in this document, always use appropriateantistatic precautions to avoid damages due to electrostatic discharge.For example: use a wrist strap or ESD cuff kept in constant contact with bare skinand attached to an ESD ground.2.2 Connect power supply correctlyWARNINGELECTRIC SHOCK HAZARDBefore applying power, thoroughly review all installation, operation, and safety instructions.Failure supply power correctly or to follow all operating instructions correctly, may create anelectric shock hazard, which could result in personal injury or loss of life, and / or damage toequipment or other property.To avoid injuries:lBefore operating any equipment, carefully read any supplied instructionslDo not perform any connections with wet handslCheck any power cords for damage before using themlUse certified power cables. The power cables must meet the power requirements of thedevicelPosition cables with care. Avoid positioning cables in places where they may betrampled or compressed by objects placed on themlTake particular care of plugs, power-points and outlets. Avoid overcharging themlAlways disconnect power and discharge the circuits before touching themlOnly start the product with a power supply that meets the requirements stated on thevoltage label. In case of uncertainties about the required power supply, contact theEurotech Technical Support Team (see the back cover for full contact details) or theelectricity authority.9 / 68
(This page has been intentionally left blank)
ReliaGATE 10-11-16 User Manual Rev 1-0 3 How to receive technical assistance3 HOW TO RECEIVE TECHNICAL ASSISTANCE3.1 How to receive technical supportIf you have technical questions, or if you cannot isolate a problem with your product, or for any inquiryabout repair and returns policies, contact:lThe Eurotech Global Support Center: https://eurotech.desk.com/lYour local Eurotech Technical Support Team: see the back cover for full contact details.3.2 How to return a product to EurotechTo return a product to Eurotech, complete the following steps:1. Send an email to the Eurotech RMA Department (rma.it@eurotech.com) specifying:lProduct Model Number (printed on the product label)lProduct Serial Number (printed on the product label)lRecap of the fault description2. Receive a reply from the Eurotech RMA Department. It contains:lThe RMA numberlThe shipping information3. Pack the product using anti-static material and place it in a sturdy box with enough packing materialto adequately cushion it4. Ship the product to Eurotech following the information received from the Eurotech RMADepartment.NOTICEAny product returned to Eurotech that is found to be damaged due to inappropriate packagingwill not be covered by the warranty!When shipping the product:1. Pack it using anti-static material2. Place it in a sturdy box with enough packing material to adequately cushion it.11 / 68
(This page has been intentionally left blank)
ReliaGATE 10-11-16 User Manual Rev 1-0 4 Conventions used in this document4 CONVENTIONS USED IN THIS DOCUMENT4.1 Conventions for signal namesConvention DescriptionGND Digital ground plane#Active low signal_P Positive signal in differential pair_N Negative signal in differential pair4.2 Abbreviations for direction and electrical characteristics ofa signalConvention DescriptionISignal is an input to the systemOSignal is an output from the systemIO Signal may be input or outputPPower and groundAAnalog signal3.3 3.3 V signal level55 V signal levelNC No ConnectionReserved Use is reserved to Eurotech13 / 68
(This page has been intentionally left blank)
ReliaGATE 10-11-16 User Manual Rev 1-0 5 Product overview5 PRODUCT OVERVIEWYour ReliaGATE 10-11-16 is a compact and lightweight IoT gateway based on the TI AM335X Cortex-A8(Sitara) processor family, with 512MB of RAM, 4GB of eMMC, and a user-accessible microSD slot.It is suitable for intensive workload in industrial and automotive applications. It supports a 9 to 36 V powersupply with transient protection and vehicle ignition sense, and features a wide range of connectivitycapabilities.Figure 5.1 - The ReliaGATE 10-11-1615 / 68
5 Product overview ReliaGATE 10-11-16 User Manual Rev 1-05.1 Product labelsThe product label is placed on the bottom side of the product.Label content Label example• FCC ID numbers• ReliaGATE serial number in bar-code format• ReliaGATE serial number in figures• CE mark• WEEE symbol16 / 68
ReliaGATE 10-11-16 User Manual Rev 1-0 6 Declaration of Conformity6 DECLARATION OF CONFORMITYThe ReliaGATE 10-11-16 conforms to the following:lReduction of Certain Hazardous Substances (RoHS2)lCE MarklWi-Fi and Bluetooth Radio:oCE - EN300 328 (2.4GHz ISM), EN50371 (EMI), EN301 489 (EMC)oFCC - 15.209 (General RF device), 15.247 & 15.249 (2.4GHz ISM)lCellular Radio:oFCC PART 22, 24 & 27 and suitable GSM radio certificationslUL 60950-1 Information Technology Equipment - Safety - Part 1: General RequirementslProduct compliance with part 15.21 of FCC6.1 FCC complianceThis device and its accessories comply with part 15 of FCC rules. Operation is subject to the following twoconditions:1. This device and its accessories may not cause harmful interference.2. This device and its accessories must accept any interference received, including interference thatmay cause undesired operation.Change or modifications that are not expressly approved by the manufacturer could void the user'sauthority to operate the equipment.FCC ID: UKMMRG1011Contains FCC ID: RI7HE9106.2 RoHS complianceThe product described in this document, including all its components and its sub-assemblies, have beenmanufactured in compliance with the Directive 2011/65/EU of the European Parliament and of the Councilof 8 June 2011 on the restriction of the use of certain hazardous substances in electrical and electronicequipment.6.3 WEEE complianceIn compliance with the Directive 2012/19/EU of the European Parliament and of the Councilof 4 July 2012 on waste electrical and electronic equipment (WEEE), the symbol on theright, shown on the product or within its literature, indicates separate collection for thiselectrical and electronic equipment (EEE) that has been placed on the market after 2005.This product, at the end of its life cycle, must be collected separately and managed inaccordance with the provisions of the current Directive on waste electrical and electronicequipment.Because of the substances present in the product, improper use or disposal of the refusecan cause damage to human health and the environment.To avoid any possible legal implications, contact your local waste collection body for fullrecycling information.17 / 68
(This page has been intentionally left blank)
ReliaGATE 10-11-16 User Manual Rev 1-0 7 EMI / EMC requirements7 EMI / EMC REQUIREMENTS7.1 EN 61000-6-2:2005 Immunity Requirements, B criteriaRadiated Emission Limits at 10 metersIEC 61000-4-2: ED. 2.0 2008Electrostatic Discharge±4 kV contact discharge; ±8 kV air dischargeIEC 61000-4-3:2006 +A1:2007RF Electromagnetic Field10 V/m, 80 – 1000 MHz, 1.4 – 2 GHz, 3 V/m, 2.0 – 2.7 GHz,1V/m 80% 1 kHz AMIEC 61000-4-4: ED. 2, 2004Electrical Fast Transient/BurstIEC 61000-4-6: ED 3.0, 2008RF Common ModeDC power ports, ±2 kVSignal ports, ±1 kV, 0.15 – 80 MHz, 10 Vrms, 80% 1 kHz AMDC power ports 0.15 – 80 MHz, 10 Vrms, 80% 1 kHz AMSignal ports: 0.15 – 80 MHz, 10 Vrms, 80% 1 kHz AMFunctional earth ports 0.15 – 80 MHz, 10 Vrms, 80% 1 kHz AMIEC 61000-4-8 :93+A1:01 Power Fre-quency Magnetic Field30 Arms/mContinuous at 60 Hz7.2 EN 61000-6-4:2001 Radiated DisturbanceRadiated Emission Limits at 10 metersFrequency band [MHz] Class A Quasi-Peak limits, [dBμV/m]30 – 230 40230 – 1000 477.3 EN 61000-6-4:2007 Conducted DisturbanceFrequency band [MHz] Limit [dBμV]Quasi-Peak Average0.15 – 0.50 79 660.50 – 5.00 73 605.00 – 30.00 73 6019 / 68
(This page has been intentionally left blank)
ReliaGATE 10-11-16 User Manual Rev 1-0 8 Technical Specifications8 TECHNICAL SPECIFICATIONSSpecifications DescriptionProcessor CPU TI AM335X, 800 MHz, 1 coreMemory RAM 512 MB, DDR3Storage Embedded 4 GB eMMCOther MicroSD slot (user accessible)I/O interfacesEthernet 1x Fast Ethernet portUSB 2x USB 2.0 host port1x USB 2.0 client portSerial 2x RS232/485 (Surge protected, RS485 fail-safe resistors user accessible)1x TTL Serial consoleCAN 2x CAN 2.0B portsDigital I/O 2x Insulated Digital Input2x Insulated Digital OutputRadio interfacesCellular Integrated 3G, global, with GPSMicro SIM card slot available behind the Service panelGPS Integrated in CellularWi-Fi / BT 802.11b,g,n / 4.0 BLEAntennas (external)1x SMA Cellular1x SMA GPS1x RP-SMA Wi-Fi / BluetoothOtherRTC Yes (user accessible battery)Ext. watchdog YesEEPROM on I2C 256 kbSensors Not presentLEDs1x Power1x Cellular activity4x User configurableButtons 1x Reset, 1x ProgrammableSIM slot 1x microSIM (user accessible)Power Input Nominal: 24 V dc; Range: 9 - 36 V dc with transient protection, vehicle ignition senseConsumption 2W idleEnvironment Operating Temp -20 °C to +70 °CStorage Temp -40 °C to +80 °CCertificationsRegulatory CE, FCC, E-markSafety IC 60950-UEnvironmental RoHS2; REACHRadio FCC, PTCRBCellular FCC, PTCRBIngress IP40MTBF >40000 h or 5 yearsMechanicalEnclosure Material: ABS - Color: aluminumDimensions 139 (L) x 95 (W) x 48 (H); mmWeight 160 gMounting Removable DIN mounting kit21 / 68
8 Technical Specifications ReliaGATE 10-11-16 User Manual Rev 1-08.1 Notes about the power supply unitThe ReliaGATE 10-11-16 comes equipped with a FRIWO MPP 15, 15 W switch-mode power supply unit.The power supply unit has the following features:lModel number: FRIWO MPP 15 (FW 7520/24)lInput voltage: 100 to 240 V aclOutput voltage: 24 V dclOutput current: 625 mAlPower rating: 15 WlType: Switch mode22 / 68
ReliaGATE 10-11-16 User Manual Rev 1-0 9 Getting started9 GETTING STARTEDFollow these steps to get started with the ReliaGATE 10-11-16:1. Know the ReliaGATE 10-11-16 interfaces.The ReliaGATE 10-11-16 provides connectivity to several wired and wireless interfaces.For further information, see:l"Product interfaces" on page 25l"Interfaces in detail" on page 312. Apply power to the ReliaGATE 10-11-16.The ReliaGATE 10-11-16 supports a variety of usage scenarios.For further information, see "Power features" on page 413. Log into the administrative console.The ReliaGATE 10-11-16 runs a Linux distribution based on a Yocto framework and supports loginvia a variety of methods.For further information, see:l"Software" on page 49l"Administrative console" on page 51l"How to access to Linux peripherals" on page 534. Install the ReliaGATE 10-11-16.The ReliaGATE 10-11-16 is lightweight and compact. You can easily install it on a DIN rail.For further information, see:l"Mechanical specifications" on page 63l"Install / remove the product" on page 6523 / 68
(This page has been intentionally left blank)
ReliaGATE 10-11-16 User Manual Rev 1-0 10 Product interfaces10 PRODUCT INTERFACESThis section gives you an overview of the interfaces on the ReliaGATE 10-11-16.10.1 Front panel interfacesThe interfaces available on the front panel are the following:Figure 10.1 - Front panel interfaces layoutRef# Description1Digital I/Os2Serial ports 1 and 23CAN portsTable 10.1 - Rear panel interfaces description25 / 68
10 Product interfaces ReliaGATE 10-11-16 User Manual Rev 1-010.2 Rear panel interfacesThe interfaces available on the rear panel are the following:Figure 10.2 - Rear panel interfaces layoutRef# Description1Ethernet 0 port2USB 0 host port3USB 1 host port4Cellular antenna5GPS antenna6Wi-Fi/BT antenna7Service Panel8Power supply inputTable 10.2 - Rear panel interfaces description26 / 68
ReliaGATE 10-11-16 User Manual Rev 1-0 10 Product interfaces10.3 Service panel interfacesThe interfaces available behind the service panel are the following:Figure 10.3 - Service panel interfaces layoutRef# Description1Micro SD card2RTC battery connection jumper3Boot selection jumper4Serial port configuration DIP-switch5Programmable pushbutton6Micro SIM card7RTC battery8Reset pushbutton9Debug Serial portTable 10.3 - Service panel interfaces description27 / 68
10 Product interfaces ReliaGATE 10-11-16 User Manual Rev 1-010.4 LED indicatorsThe LED indicators are available on the top side of the ReliaGATE 10-11-16:Figure 10.4 - LED indicators layoutRef# Use Color1USER1 (General purpose) Green2USER2 (General purpose) Green3USER3 (General purpose) Red4USER4 (General purpose) Red5CELL (Modem activity) Red6POWER GreenTable 10.4 - LED indicators description28 / 68
ReliaGATE 10-11-16 User Manual Rev 1-0 10 Product interfaces10.5 Client USB interfaceA USB 2.0 client interface for add-on modules is available on the right side.This interface is noise and surge protected.Figure 10.5 - Client USB interface layout10.5.1 Connector and mating connector specificationsConnector Micro-B USB socketMating connector Micro-B USB plug10.5.2 Connector pinoutPin# Name Type Description1VBUS 5 +5V2D- IO Negative data3D+ IO Positive data4DGND P Digital ground29 / 68
(This page has been intentionally left blank)
ReliaGATE 10-11-16 User Manual Rev 1-0 11 Interfaces in detail11 INTERFACES IN DETAIL11.1 Digital I/O interfacesThe ReliaGATE 10-11-16 provides:l2x Digital Inputs:oIndependent 1 kV optoinsulated voltage (or volt free)o5V TTL leveloNot protected against reverse voltage polarityl2x Digital OutputsoOpen collector (or drain)o50 V DC rated with sink capacity of 10 mAo1 kHz maximum switching frequencyThese interfaces are available on the front panel11.1.1 Connector and mating connector specificationsConnector Phoenix Contacts MC 1.5/ 8-GF-3.5Mating connector11.1.2 Connector pinoutPin# Name Type Description1Digital OUT: 1C O Digital Output 1 Collector2Digital OUT: 1E O Digital Output 1 Emitter3Digital OUT: 2C O Digital Output 2 Collector4Digital OUT: 2E O Digital Output 2 Emitter5Digital IN: 1A I Digital Input 1 Anode6Digital IN: 1C I Digital Input 1 Cathode7Digital IN: 2A I Digital Input 2 Anode8Digital IN: 2C I Digital Input 2 Cathode31 / 68
11 Interfaces in detail ReliaGATE 10-11-16 User Manual Rev 1-011.2 Serial ports 1 and 2The ReliaGATE 10-11-16 provides 2 serial ports on the front panel. The interfaces are surge protected.Maximum supported baud rates are:lFor RS232 mode: up to 450 kbpslFor RS485 mode: up to 3.6864 MbpsEach data signal is routed to two different pins on the connector.11.2.1 Connector and mating connector specificationsConnector Phoenix Contacts MC 1.5/ 10-GF-3.5Mating connector -11.2.2 Connector pinoutPin# Name Type Description1Serial 1: TX/B O Serial port 1:lRS232: Transmit DatalRS485: B Line2Serial 1: RX/A I Serial port 1:lRS232: Receive DatalRS485: A Line3Serial 1: DGND P Digital Ground4Serial 1: RX/A I Serial port 1:lRS232: Receive DatalRS485: A Line5Serial 1: TX/B O Serial port 1:lRS232: Transmit DatalRS485: B Line6Serial 2: TX/B O Serial port 2:lRS232: Transmit DatalRS485: B Line7Serial 2: RX/A I Serial port 2:lRS232: Receive DatalRS485: A Line8Serial 2: DGND P Digital Ground9Serial 2: RX/A I Serial port 2:lRS232: Receive DatalRS485: A Line10 Serial 2: TX/B O Serial port 2:lRS232: Transmit DatalRS485: B Line32 / 68
ReliaGATE 10-11-16 User Manual Rev 1-0 11 Interfaces in detailNote for termination resistors and fail safe resistors in RS485 mode:lTermination resistors: you can insert them using the additional pinslFail safe resistors: you can insert them using the DIP switch located behind the Service Panel.11.2.3 DIP switch for RS485 fail-safe resistors insertionYou can use this DIP switch to insert the RS485 fail-safe resistors.11.2.3.1 Switches meaningDefault DIP switch configuration is OFF; this means no resistors inserted.SW# Signal Description1RS232RX_1 / RS485+_1 ON: 4.7 kΩ pull-up resistor inserted2RS232TX_1 / RS485-_1 ON: 4.7 kΩ pull-down resistor inserted3RS232RX_2 / RS485+_2 ON: 4.7 kΩ pull-up resistor inserted4RS232TX_2 / RS485-_2 ON: 4.7 kΩ pull-down resistor inserted33 / 68
11 Interfaces in detail ReliaGATE 10-11-16 User Manual Rev 1-011.3 CAN ports 0 and 1The ReliaGATE 10-11-16 provides 2 CAN (Controller Area Network) ports compliant with the CANSpecification 2.0, Parts A and B.These interfaces are available on the front panel.Notes about CANpower supply:lThe ReliaGATE 10-11-16 can supply power to the 2 CAN ports: 100 mA @ 5V (each port)lCAN power can be enabled / disabled by softwarelThe interfaces are surge protected.11.3.1 Connector and mating connector specificationsConnector Phoenix Contacts MC 1.5/ 1-GF-3.5Mating connector -11.3.2 Connector pinoutPin# Name Type Description1CAN 0: H IO CAN port 0 Positive Data2CAN 0: L IO CAN port 0 Negative Data3CAN 0: 5V 5 CAN node 05 V Output power supply4CAN 0: DGND P Digital Ground5CAN 1: H IO CAN port 1 Positive Data6CAN 1: L IO CAN port 1 Negative Data7CAN 1: 5V 5 CAN node 15 V Output power supply8CAN 1: DGND P Digital Ground34 / 68
ReliaGATE 10-11-16 User Manual Rev 1-0 11 Interfaces in detail11.4 Cellular with integrated GPSThe ReliaGATE 10-11-16 provides a cellular modem with integrated GPS receiver on an external antennasconnection.The cellular modem has the following approvals:lFully type approved confirming with R&TTE directivelCE, GCF (Global and Europe / Australia / New Zealand / Brazil variants)lFCC, IC, PTCRB (North America variants)11.4.1 Cellular antenna specificationsCellular is available using an external cellular antenna.Connector Female SMAMating connector Male SMA11.4.2 Cellular modem specificationslAdvanced E-GPRS/WCDMA/HSDPA/HSUPA Software protocol stackl(Layer 1 to 3) – Version: 3GPP Release 7lGSM Quad band (850, 900, 1800, 1900)lWCDMA Multi-band (I, II, IV, V, VI, VIII and XIX)lHSDPA up 21.0Mbps (for the high-end variants; up to 7.2 Mbps for the others)lHSUPA up to 5.76MbpslWCDMA up to 384kbps downlink/uplinklDTM (Dual Transfer Mode)lReceive Diversity, type3i interference cancellation receiverlCPC (DRX/DTX) (Continuous Packet Connectivity)lDARPlControl via AT commands according to 3GPP TS27.005, 27.007 and Telit customized ATcommandslSerial port multiplexer 3GPP TS27.010lSIM application Tool Kits 3GPP TS 51.014lPower consumption (typical values):oStand-by current 2G, DRX5, 1.1 mAoStand-by current 3G, DRX7, 1.2 mAlOutput poweroClass 4 (2W) @ 850 / 900 MHz, GSMoClass 1 (1W) @ 1800 / 1900 MHz, GSMoClass E2 (0.5W) @ 850/900 MHz, EDGEoClass E2 (0.4W) @ 1800/1900 MHz, EDGEoClass 3 (0.25W) @ 850/900/1700/1900/2100 MHz, WCDMAlSensitivity:o-109 dBm (typ.) @ 850 / 900 MHz (GSM)o-110 dBm (typ.) @ 1800 / 1900 MHz (GSM)o-111 dBm (typ.) @ 850/900/1700/1900 / 2100 MHz (WCDMA)35 / 68
11 Interfaces in detail ReliaGATE 10-11-16 User Manual Rev 1-011.4.3 GPS antenna specificationsGPS is available using an external GPS antenna with a frequency of 1575.42 MHz (GPS L1).Typically, GPS antennas must have line of sight to a wide area of the sky in order to receive signals frommultiple positioning satellites.Connector Female SMAMating connector Male SMA11.4.4 GPS receiver specificationslAdvanced real time hardware correlation engine for enhanced sensitivity (better than -165 dBm forA-GPS)lFast Acquisition giving rapid Time-to-First-Fix (TTFF)lCapability to monitor up to 28 channelslStand Alone and Assisted mode (SUPL 1.0)lIntegrated LNAlAccuracy: 3 mlHot start autonomous time: 1.8 slWarm start autonomous time: 30 slCold start autonomous time: 42 slL1 1575.42 MHzlGPS NMEA 0183 output formatlDatum WGS-8436 / 68
ReliaGATE 10-11-16 User Manual Rev 1-0 11 Interfaces in detail11.5 Wi-Fi and BluetoothThe ReliaGATE 10-11-16 includes a Wi-Fi & Bluetooth (BT) module and an external antenna connection tofully implement Wi-Fi 802.11b/g/n and Bluetooth 4.0 BLE functions.The circuitry allows for Wi-Fi and Bluetooth coexistence.11.5.1 Antenna specificationsConnector Female RP-SMAMating connector Male RP-SMA11.5.2 Wi-Fi specificationslIntegrated 2.4 & 5G GHz Power Amplifier (PA) for WLAN solutionlWLAN Baseband Processor and RF transceiver Supporting IEEE Std 802.11b/g/nlWLAN 2.4GHz SISO (20/40 MHz channels)l2.4-GHz MRC Support for Extended RangelBaseband Processor:oIEEE Std 802.11a/b/g/n data rates and IEEE Std 802.11n data rates with 20 or 40 MHzSISO.lFully calibrated system. Production calibration not required.lMedium Access Controller (MAC):oEmbedded ARM™ Central Processing Unit (CPU)oHardware-Based Encryption/Decryption using 64-, 128-, and 256-Bit WEP, TKIP or AESKeys,oSupports requirements for Wi-Fi Protected Access (WPA and WPA2.0) and IEEE Std802.11i [includes hardware-accelerated Advanced Encryption Standard (AES)]oDesigned to work with IEEE Std 802.1xlIEEE Std 802.11d,e,h,i,k,r PICS compliant.lNew advanced co-existence scheme with BT/BLE/ANT.l2.4 GHz Radio:oInternal LNA and PAoSupports: IEEE Std 802.11a, 802.11b, 802.11g and 802.11nlSupports 4 bit SDIO host interface, including high speed (HS) and V3 modes11.5.3 Bluetooth specificationslSupports Bluetooth 4.0 as well as CSA2lIncludes concurrent operation and built -in coexisting and prioritization handling of Bluetooth, BLE,ANT, audio processing and WLANlDedicated Audio processor supporting on chip SBC encoding + A2DP:oAssisted A2DP (A3DP) support - SBC encoding implemented internallyoAssisted WB-Speech (AWBS) support - modified SBC codec implemented internally11.5.4 BLE specificationslFully compliant with BT4.0 BLE dual mode standardlSupport for all roles and role-combinations, mandatory as well as optionallSupports up to 10 BLE connectionslIndependent buffering for LE allows having large number of multiple connections without affectingBR/EDR performance37 / 68
11 Interfaces in detail ReliaGATE 10-11-16 User Manual Rev 1-011.5.5 ANT specificationsFully compliant with all ANT Protocols:lANT solution optimized for the fitness and health use-caseslSimple to complex network topologieslSupports high-resolution proximity pairing38 / 68
ReliaGATE 10-11-16 User Manual Rev 1-0 11 Interfaces in detail11.6 Ethernet portYour ReliaGATE 10-11-16 provides one 10/100 Mbps Ethernet port for wired network connectivity.This interface is available on the rear panel:lit is referenced as eth011.6.1 Connector and mating connector specificationsConnector Female RJ-45Mating connector Male RJ-4511.6.2 Connector pinoutPin# Name Type Description1TX+ O Transmit Data +2TX- O Transmit Data -3RX+ I Receive Data +6RX- I Receive Data -11.6.3 Port specificationsFeature DescriptionNetwork Standard IEEE802.3u 10/100-BaseTX.IEEE 802.3x full-duplex flow control.Speeds 10/100-BaseTX interfaces with MACNotes The interfaces are noise and surge protected.The RJ-45 connector has integrated magnetics.39 / 68
11 Interfaces in detail ReliaGATE 10-11-16 User Manual Rev 1-011.7 Host USB portsThe ReliaGATE 10-11-16 provides 2 USB 2.0 host ports for general purpose applications.These interfaces are available on the rear panel, and are noise and surge protected.11.7.1 Connector and mating connector specificationsConnector USB Type-A socketMating connector USB Type-A plug11.7.2 Connector pinoutPin# Name Type Description1VBUS 5 +5V2D- IO Negative data3D+ IO Positive data4DGND P Digital ground40 / 68
ReliaGATE 10-11-16 User Manual Rev 1-0 11 Interfaces in detail11.8 Power features11.8.1 Power supplyThe ReliaGATE 10-11-16 provides the power supply input port on the rear panel.The port is protected against: surge, noise, reverse polarity, over-voltage and short circuit.The power input is protected with a resettable fuse.Power supply Nominal: 24 V dc; Range: 9 - 36 V dc with transient protectionPower consumption 2 WPeak demand < 15 W11.8.1.1 Connector and mating connector specificationsConnector Phoenix Contacts MC 1,5/ 3-GF-3,5Mating connector -11.8.1.2 Connector pinoutPin# Name Type Description1VIN+ P Positive power supply input2VIN- P Negative power supply input3DGND P Digital Ground11.8.2 Power ManagementYou can reduce the power consumption of the ReliaGATE 10-11-16 by turning off the radio interfaces and /or setting the CPU in low power consumption mode (stand-by / deep sleep).The maximum power consumption at the lowest power state is ≤ 0.4 W.The ReliaGATE 10-11-16 can be woken up from the low power consumption mode by:lthe RTC alarm41 / 68
11 Interfaces in detail ReliaGATE 10-11-16 User Manual Rev 1-011.9 The Reset pushbuttonA reset pushbutton is available to trigger a hardware reset of the ReliaGATE 10-11-16.The pushbutton is located behind the Service Panel.42 / 68
ReliaGATE 10-11-16 User Manual Rev 1-0 11 Interfaces in detail11.10 RTC (Real Time Clock)The ReliaGATE 10-11-16 includes the following two RTC (Real Time Clocks) devices:RTC device Description Use/dev/rtc0 lIt comes from the CPU SoC Reserved/dev/rtc1 lIt does not come from the CPU SoClIt is the default RTC used by Linux to set and getthe Wall time while booting up and whilesuspending / resuminglIt has an accuracy of 25 minutes per year (at 25 °C)lIt can trigger an interrupt to the CPU.Wake the ReliaGATE 10-11-16 up from a deep lowpower state11.10.1 The RTC device "/dev/rtc1"The RTC device "/dev/rtc1" offers:lthree timestamp registerslone user-available byte.11.10.2 The RTC batteryThe ReliaGATE 10-11-16 includes a BR1225 lithium coin cell RTC battery behind the Service Panel.The RTC battery retains the timestamp for up to 180 days when the ReliaGATE 10-11-16 is powered off:11.10.2.1 How to enable / disable the RTC batteryThe ReliaGATE 10-11-16 includes an RTC battery jumper behind the Service Panel.You can use the RTC battery jumper to enable / disable the RTC battery (this can be useful for examplewhen the ReliaGATE 10-11-16 is stored in the warehouse to save RTC battery charge):lJumper inserted = Battery connectedlJumper removed = Battery not connected43 / 68
11 Interfaces in detail ReliaGATE 10-11-16 User Manual Rev 1-011.11 The Programmable pushbuttonYour ReliaGATE 10-11-16 includes a programmable pushbutton.It is available behind the Service Panel.The pushbutton is sensed by a Linux daemon which executes a shell script every time you push thebutton.44 / 68
ReliaGATE 10-11-16 User Manual Rev 1-0 11 Interfaces in detail11.12 The MicroSD card receptacleYour ReliaGATE 10-11-16 includes a push-push type Micro SD card receptacle.This interface is available behind the Service Panel.Insert the Micro SD card as in the picture below, with the contacts facing down.11.13 The MicroSIM card receptacleYour ReliaGATE 10-11-16 includes a push-push type Micro SIM card receptacle.This interface is available behind the Service Panel.Insert the Micro SD card as in the picture below, with the contacts facing up.45 / 68
11 Interfaces in detail ReliaGATE 10-11-16 User Manual Rev 1-011.14 Debug Serial portYour ReliaGATE 10-11-16 provides a debug TTL serial port (Linux OS console).This interface is available behind the Service Panel.11.14.1 Connector and mating connector specificationsConnector Molex 53261-0371Mating connector Molex 51021-030011.14.2 Connector pinoutPin# Name Type Description1TX O Transmit Data2RX I Receive Data3DGND P Digital Ground46 / 68
ReliaGATE 10-11-16 User Manual Rev 1-0 11 Interfaces in detail11.15 WatchdogYour ReliaGATE 10-11-16 includes a watchdog / supervisor IC, external to the CPU47 / 68
(This page has been intentionally left blank)
ReliaGATE 10-11-16 User Manual Rev 1-0 12 Software12 SOFTWARE12.1 The Linux OS distributionEurotech provides a Linux operating systems based on Yocto framework (www.yoctoproject.org) as wellas an SDK for application development.All the documentation for the developer is available from:www.yoctoproject.org/documentation.12.2 The bootloader procedureThe bootloader procedure is the following:1. The MLO file is loaded from either the external microSD card or the onboard eMMC memory, andsaved in the on-chip memory to configure the RAM memory for use2. The u-boot.img file is loaded (from the same device where MLO was loaded from), saved in theRAM memory, and executed3. The bootloader searches for a valid operating system. The search order is:a. microSD cardb. eMMC4. The bootloader fetches the Linux kernel (/boot/zImage) and the device tree (/boot/reliagate-10-11.dtb), and boots the operating system up12.2.1 How to select the MLO sourceThe MLO file can be loaded from either the external microSD card or the onboard eMMC memory,according to the setting of the Boot selection jumper (JP2):lJP2 inserted = MLO file loaded from the micro-SD cardlJP2 removed = MLO file loaded from the eMMC and, if not found, from the microSD card12.2.2 How to set up a correct microSD card / eMMC card partitionTo allow the correct bootloader procedure, the microSD card and the eMMC memory have to be configuredwith at least these 2 partitions:l1st partition:oType: FAT16oFlags: lba, bootoContains the files: MLO and u-boot.imgl2nd partition:oType: ext4oContains the operating system, including the Linux kernel (/boot/zImage) and the device tree(/boot/reliagate-10-11.dtb)49 / 68
(This page has been intentionally left blank)
ReliaGATE 10-11-16 User Manual Rev 1-0 13 Administrative console13 ADMINISTRATIVE CONSOLEThis section describes how to log in the operating system using the administrative console (this can beuseful for diagnostic and system maintenance purposes).This section also describes how to change the security settings after the initial setup.The ReliaGATE 10-11-16 runs a Yocto project based Linux operating system.You can log in the administrative console in one of the following ways:lVia a Serial console (Console Port)lVia a Remote login (over a network connection) via SSH (Secure SHell)13.1 How to log in using the Serial consoleTo log in using the serial console, complete the following steps:1. Connect a null modem serial cable from your development PC to the Serial Console on theReliaGATE device2. Start a terminal emulation program such as TeraTerm on your development PC (minicom on a Linuxhost). Configure the serial port connection for 115200, 8 bits, 1 stop bit, no parity, and no flowcontrol3. Connect power supply to ReliaGATE device. The Power LED lights green when power issuccessfully connected4. Via the Uboot bootloader, the Linux kernel is found and launched automatically.5. At the login prompt, enter username and password:lDefault username (case sensitive): rootlDefault password (case sensitive): eurotech13.2 How to log in using the Remote login13.2.1 If your development PC is running LinuxTo log in over a network connection, use an SSH client:1. Enter the command ssh. The SSH client opens.2. At the login prompt, enter username and password:lDefault username (case sensitive): rootlDefault password (case sensitive): eurotechNOTICEIf you are running a Linux host, by default theReliaGATE 10-11-16 runs zeroconf.This means that you can detect the IP address of the unit remotely by running the command:avahi-discover.Example:1. Run the the command: avahi-discover. A dialog box pops-up reporting all the deviceson your network that support this mechanism2. Under "eth0 IPv4" > "local" > "Workstation", you should see your Reliagate’s hostname(ie: rg-10-11). Select it to see its IP address3. Log in your Reliagate using: ssh root@rg-10-11.local51 / 68
13 Administrative console ReliaGATE 10-11-16 User Manual Rev 1-013.2.2 If your development PC is running WindowsTo log in over a network connection, use an SSH client (you can use PuTTY, a free SSH client):1. Download, install, and run PuTTY:lChoose the Windows-based installer version from:http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html2. Enter the IP address of the ReliaGATE 10-11-16:lEthernet 0 (eth0 interface) acquires automatically the ReliaGATE 10-11-16 IPaddress using DHCP3. Set the Connection type to ‘SSH’ and Port to ‘22’. Click Open to connect13.3 How to change your security settingsFor security reasons, Eurotech recommends you to change the Linux password after your initial setup.To change your Linux password, complete the followint steps:1. At the login prompt, enter username and password:lDefault username (case sensitive): rootlDefault password (case sensitive): eurotech2. Use the command passwd to change the ‘root’ password3. Enter a new ‘root’ account password when prompted52 / 68
ReliaGATE 10-11-16 User Manual Rev 1-0 14 How to access to Linux peripherals14 HOW TO ACCESS TO LINUX PERIPHERALS14.1 Ethernet portThe ReliaGATE 10-11-16 exposes one 10/100 Mbps Ethernet port for wired network connectivity asfollows:This interface is available on the rear panel:lit is referenced as eth0, and aquires automatically the ReliaGATE 10-11-16 IP address using DHCP14.2 Wi-FiThe ReliaGATE 10-11-16 exposes the Wi-Fi interface as follows:lWi-Fi: wlan0; not configured14.3 Serial PortsThe ReliaGATE 10-11-16 exposes the serial ports as follows:lConsole /dev/ttyO0lSerial port1: /dev/ttyO3lSerial port2: /dev/ttyO414.3.1 How to set the RS232/485 serial modesBefore you can use the serial ports, you have to configure them.You can configure them in the following ways:lusing the ethsetserial utilitylimplementing the ioctl in the source code14.3.1.1 Use the ethsetserial utility to configure the serial portsTo set Serial port 1 to RS232 mode, use the following command:ethsetserial –p ttyO3 –m232To set Serial port 1 to RS485 mode, use the following command:ethsetserial –p ttyO3 –m485To see all the available options, use the following command:ethsetserial –h14.3.1.2 Implement the ioctl in the source code to configure the serial portsTo implement the ioctl in the source code, see the following sections.Ioctl codes/*Ioctl to read */#define TIOCGRS485 0x542E/*Ioctl to write */#define TIOCSRS485 0x542F53 / 68
14 How to access to Linux peripherals ReliaGATE 10-11-16 User Manual Rev 1-0Definition of the flags bit/*FLAGS *///#define SER_RS485_ENABLED (1 << 0)/* Logical level for RTS pin when sending *///#define SER_RS485_RTS_ON_SEND (1 << 1)/* Logical level for RTS pin after sent*///#define SER_RS485_RTS_AFTER_SEND (1 << 2)//#define SER_RS485_RX_DURING_TX (1 << 4)/* Inverted logic level for RS485 gpio */#define SER_RS485_INVERT (1 << 5)/* if enabled serial line drivers must be configured in HiZ*/#define SER_HIZ_ENABLED (1 << 31)Linux kernel data structurestruct serial_rs485 {__u32 flags; /* RS485 feature flags */__u32 delay_rts_before_send; /* Delay before send (milliseconds) */__u32 delay_rts_after_send; /* Delay after send (milliseconds) */__u32 padding[5]; /* Memory is cheap, new structs};Example: Configure the serial port in RS232 modeUse the example below to configure the serial port in RS232 mode.ser_port_name can be either /dev/ttyO3 or /dev/ttyO4.struct serial_rs485 rs485conf;unsigned int rs_mode_mask=(SER_HIZ_ENABLED|SER_RS485_ENABLED|SER_RS485_INVERT|SER_RS485_RTS_ON_SEND|SER_RS485_RTS_AFTER_SEND);unsigned int set_flags=0;unsigned int set_flags_mask=rs_mode_mask;int fd;fd=open(ser_port_name,O_RDWR);if (fd==-1){/* process the error */…}/* get serial port configuration */if (ioctl (fd, TIOCGRS485, & rs485conf) < 0){/* process the error */…}rs485conf.flags&=~ set_flags_mask;set_flags&=set_flags_mask;rs485conf.flags|= set_flags;54 / 68
ReliaGATE 10-11-16 User Manual Rev 1-0 14 How to access to Linux peripherals/*set delay but not used in rs232 mode */rs485conf.delay_rts_after_send=<delay after send in ms>;rs485conf.delay_rts_before_send=<delay before send in ms>;/* apply changes */if (ioctl (fd, TIOCSRS485, & rs485conf) < 0){/* process the error */…}close(fd);Example: Configure the serial port in RS485 modeUse the example below to configure the serial port in RS485 mode.ser_port_name can be either /dev/ttyO3 or /dev/ttyO4.struct serial_rs485 rs485conf;unsigned int rs_mode_mask=(SER_HIZ_ENABLED|SER_RS485_ENABLED|SER_RS485_INVERT|SER_RS485_RTS_ON_SEND|SER_RS485_RTS_AFTER_SEND);unsigned int set_flags=(SER_RS485_INVERT|SER_RS485_ENABLED|SER_RS485_RTS_ON_SEND);unsigned int set_flags_mask=rs_mode_mask;int fd;fd=open(ser_port_name,O_RDWR);if (fd==-1){/* process the error */…}/* get serial port configuration */if (ioctl (fd, TIOCGRS485, & rs485conf) < 0){/* process the error */…}rs485conf.flags&=~ set_flags_mask;set_flags&=set_flags_mask;rs485conf.flags|= set_flags;/*set delays */rs485conf.delay_rts_after_send=<delay after send in ms>;rs485conf.delay_rts_before_send=<delay before send in ms>;/* apply changes */if (ioctl (fd, TIOCSRS485, & rs485conf) < 0){/* process the error */…}close(fd);55 / 68
14 How to access to Linux peripherals ReliaGATE 10-11-16 User Manual Rev 1-014.4 ModemBy default the ReliaGATE 10-11-16 exposes the modem as follows:lAT commands port (data communication): /dev/ttyACM0lGPS port: /dev/ttyACM314.5 CAN BusThe ReliaGATE 10-11-16 exposes the CAN bus (added through the SocketCAN kernel extension) asfollows:lCAN 0: /sys/class/gpio/gpio8/valuelCAN 1: /sys/class/gpio/gpio9/value14.5.1 How to enable the CAN bus 5VTo enable CAN0 5V, use the following commands:echo 1 >/sys/class/gpio/gpio8/valueTo enable CAN1 5V, use the following commands:echo 1 >/sys/class/gpio/gpio9/valueFor further information on SocketCAN refer to the Linux kernel documentation:www.kernel.org/doc/Documentation/networking/can.txt56 / 68
ReliaGATE 10-11-16 User Manual Rev 1-0 14 How to access to Linux peripherals14.6 Digital I/OsThe ReliaGATE 10-11-16 exposes the Digital I/Os as follows:lInput 1: /sys/class/gpio/gpio87/valuelInput 2: /sys/class/gpio/gpio89/valuelOutoput 1: /sys/class/gpio/gpio26/valuelOutoput 2: /sys/class/gpio/gpio27/value14.7 LED indicatorsThe ReliaGATE 10-11-16 exposes the LED indicatiors as follows:lLED 1 (green): /sys/class/gpio/gpio117/valuelLED 2 (green): /sys/class/gpio/gpio114/valuelLED 3 (red): /sys/class/gpio/gpio115/valuelLED 4 (red): /sys/class/gpio/gpio116/valuelLED 5 (red): LED ON means modem ON;LED blinking means modem attached to GSM network.lLED 6 (green): LED ON means ReliaGATE ON14.7.1 How to drive a LEDEach LED is m,anaged by its respective GPIOTo drive a LED, complete the following steps:1. Export the LED (if it hasn’t already exported before)2. Drive the LEDTo export LED1, use the following commands:#export gpio 117echo 117 >/sys/class/gpio/export#gpio is outputecho out >/sys/class/gpio117/directionTo drive LED1, use the following commands:#turn led onecho 1 >/sys/class/gpio117/value#turn led offecho 0 >/sys/class/gpio117/value14.8 Flash MemoryThe ReliaGATE 10-11-16 exposes the flash memory as follows:lInternal flash (eMMC) memory: /dev/mmcblk0lMicroSD card memory: /dev/mmcblk157 / 68
14 How to access to Linux peripherals ReliaGATE 10-11-16 User Manual Rev 1-014.9 WatchdogThe ReliaGATE 10-11-16 exposes the watchdog as follows:lWatchdog: /dev/watchdog114.9.1 Manage the watchdog using the C programming languageTo manage the watchdog using the C programming language use the following commands:Int interval;Int bootstatus;Long value;/* display current watchdog value */If (ioctl(fd,WDIOC_GETTIMEOUT,&interval)==0){// interval contains current timeout in seconds}/* Check if lasdt boot is caused by watchdog */If (ioctl(fd,WDIOC_GETBOOTSTATUS,&bootstatus)==0){//bootstatus <> 0 Watchdog//bootstatus = 0 Power-on reset}/* set the watchdog value (for example: 30 seconds) */value=30;If (ioctl(fd,WDIOC_SETTIMEOUT,&value)==0){//Watchdog has been set to value content}/* stop the watchdog */write(fd,”V”,1);/* feed the watchdog */ioctl(fd,WDIOC_KEEPALIVE,0);14.9.2 Manage the watchdog from the command lineTo set the watchdog value (for example: 30 seconds), use the following command:wdt_setup –d /dev/watchdog1 –t 30To feed the watchdog, use the following command:echo 10 >/dev/watchdog1To stop the watchdog, use the following command:echo V >/dev/watchdog158 / 68
ReliaGATE 10-11-16 User Manual Rev 1-0 14 How to access to Linux peripherals14.9.3 For furhter informationFor further information on Linux support for watchdog, see:www.kernel.org/doc/Documentation/watchdog/watchdog-api.txt14.10 RTCThe ReliaGATE 10-11-16 exposes the user-available RTC as follows:lRTC: /dev/rtc1The "/dev/rtc1" offers:lthree timestamp registerslone user-available byte.14.10.1 How to use the timestamp registersThe timestamp registers are the following:Timestamp register What it containssys/class/rtc/rtc1/device/timestamp1 Reserved datasys/class/rtc/rtc1/device/timestamp2 The timestamp that the system last lost power (only if asuccessful initialization has been achieved)sys/class/rtc/rtc1/device/timestamp3 The timestamp that the system last has been powered(only if a successful initialization has been achieved)You can only read and reset the timestamp registers.To read the timestamp2, use the following command:cat /sys/class/rtc/rtc1/device/timestamp2To reset the timestamp2, use the following command:echo timestamp2 > /sys/class/rtc/rtc1/device/resets59 / 68
14 How to access to Linux peripherals ReliaGATE 10-11-16 User Manual Rev 1-014.10.2 How to use the user-available byteThe user-available byte is the following:User-available byte What it contains/sys/class/rtc/rtc1/device/ram_byte The default value is 0.You can write in it a value included in the range: 0 to 255.Thisvalue is retained as long as the /dev/rtc1 device receives avalid power supply (main power supply or battery)You can read and write the user-available byte.To read the byte, use the following command:cat /sys/class/rtc/rtc1/device/ram_byteTo write 112 in the byte, use the following command:echo 112 > /sys/class/rtc/rtc1/device/ram_byte14.10.3 How to automaticallly wake the ReliaGATE 10-11-16 up from the sleep modeTo wake the ReliaGATE 10-11-16 up 20 seconds after the current date and time, use the followingcommands:#set current dateDATE=”09/04/2015”TIME=”10:00:00”date +”%m/%d/%y %H:%M:%s” –s “$DATE $TIME”rtctest –d /dev/rtc1 –a “04/09/2015 10:00:20”echo mem >/sys/power/state14.11 EEPROMYou can use the EEPROMintegrated in the ReliaGATE 10-11-16 to read and write data.NOTE: By default the EEPROM is write-protected.14.11.1 How to enable / disable the EEPROM write-protectionThe write-protection is managed by the GPIO 73.To enable/disable the EEPROM write-protection, complete the following steps:1. Export the GPIO 732. Drive the GPIO 73 to enable / disable the write-protectionTo export the GPIO 73, use the following commands:#export gpio 73echo 73 >/sys/class/gpio/export#set gpio as outputecho out >/sys/class/gpio73/direction60 / 68
ReliaGATE 10-11-16 User Manual Rev 1-0 14 How to access to Linux peripheralsTo drive the GPIO 73, use the following commands:#enable write-protectionecho 1 >/sys/class/gpio73/value#disable write-protectionecho 0 >/sys/class/gpio73/value61 / 68
(This page has been intentionally left blank)
ReliaGATE 10-11-16 User Manual Rev 1-0 15 Mechanical specifications15 MECHANICAL SPECIFICATIONSThe ReliaGATE 10-11-16 electronics are housed in an ABS enclosure having the following dimensions:139 (L) x 95 (W) x 48 (H); mm (DINmounting kit installed and connectors included1).All dimensions are in millimeters.Figure 15.1 - Mechanical dimensions1The figure above shows the rear panel of the ReliaGATE 10-11 fully populated. Not all interfaces may be available inyour ReliaGATE 10-11 version.63 / 68
(This page has been intentionally left blank)
ReliaGATE 10-11-16 User Manual Rev 1-0 16 Install / remove the product16 INSTALL /REMOVE THE PRODUCT16.1 Install the ReliaGATE 10-11-16 on a DIN railThe ReliaGATE 10-11-161comes equipped with a mechanical adapter - the DIN mounting kit - that allowsyou to install the product on a DIN rail.To install the ReliaGATE 10-11-16 on a horizontal DIN rail, complete the following steps:1. Hook the upper mobile latches of the mechanical adapter on the upper edge of the din rail2. Push the ReliaGATE 10-11-16 against the DIN rail. The lower latches of the mechanical adapter arelocked on the din rail.16.2 Remove the ReliaGATE 10-11-16 from a DIN railTo remove the ReliaGATE 10-11-161from a horizontal DIN rail, complete the following steps:1. Push the upper mobile latches of the mechanical adapter downwards. The lower latches arereleased from the DIN rail2. Pull the ReliaGATE 10-11-16 out1The figures above show the rear panel of the ReliaGATE 10-11 fully populated. Not all interfaces may be available inyour ReliaGATE 10-11 version.65 / 68
16 Install / remove the product ReliaGATE 10-11-16 User Manual Rev 1-016.3 Remove the DIN mounting kit from the ReliaGATE 10-11-16To remove the DIN mounting kit from the ReliaGATE 10-11-161, complete the following steps:1. Remove the three screws that keep the DIN mounting kit in place2. Remove the DIN mounting kit16.4 Install the DIN mounting kit on the ReliaGATE 10-11-16To install the DIN mounting kit on the ReliaGATE 10-11-161, complete the following steps:1. Put the DIN mounting kit in place2. Tighten the three screws to keep the DIN mounting kit in place.1The figures above show the rear panel of the ReliaGATE 10-11 fully populated. Not all interfaces may be available inyour ReliaGATE 10-11 version.66 / 68
ReliaGATE 10-11-16 User Manual Rev 1-0 NotesNOTES67 / 68
WORLD SUPPORT EUROPE AMERICAS ASIAHEADQUARTERSEUROTECHVia Fratelli Solari, 3/a33020 Amaro (UD) - ItalyTel: +39 0433.485.411Fax: +39 0433.485.499Email: support.it@eurotech.comWeb: www.eurotech.comITALYEUROTECHTel: +39 0433.485.411Fax: +39 0433.485.499Email: sales.it@eurotech.comEmail: support.it@eurotech.comWeb: www.eurotech.comUNITED KINGDOMEUROTECHTel: +44 (0) 1223.403410Fax: +44 (0) 1223.410457Email: sales.uk@eurotech.comEmail: support.uk@eurotech.comWeb: www.eurotech.comFRANCEEUROTECHTel: +33 (0)4.72.89.00.90Fax: +33 (0)4.78.70.08.24Email: sales.fr@eurotech.comEmail: support.fr@eurotech.comWeb: www.eurotech.comUSAEUROTECHTel: +1 800.541.2003Tel: +1 301.490.4007Fax: +1 301.490.4582Email: sales.us@eurotech.comEmail: support.us@eurotech.comWeb: www.eurotech-inc.comJAPANADVANETTel: +81 86.245.2861Fax: +81 86.245.2860Email: sales@advanet.jpEmail: tsupport@advanet.jpWeb: www.advanet.jpFor your Eurotech local contact refer to: www.eurotech.com/contactsFor the Eurotech Global Support Center refer to: eurotech.desk.comFor the Eurotech Download Area refer to: eurotech.com/downloadAll trademarks and trade names are the property of their respective owners

Navigation menu