CH Tech EM405D user manual Communicating with the Carrier and M-MODULES, Table I. Command Summary

Page 23

The defaults that are restored using the above procedure are those set by the manufacturer of the Ethernet device and not by C&H Technologies, Inc. The default settings of the carrier as received from the factory at C&H are different in several key areas. The user must manually return these settings to the default as set by C&H in order for the carrier to operate properly. Refer to APPENDIX C or details on the factory default settings as received from C&H Technologies, Inc.

4.3 COMMUNICATING WITH THE CARRIER AND M-MODULES

The EM405D uses a simple binary command structure to communicate with the host software. The commands allow the user to either write or read registers residing on the EM405D or on each M-module. By writing registers residing on the EM405D, the user can identify the module, perform device configuration, and receive status. The registers residing on each M-module are specific to the particular M-module. Refer to the M-module’s documentation for register details.

Each command consists of a command-id byte, a module number on which the command is to be executed and parameters, if required. The commands are listed in Table I. Details of each command are found throughout the rest of this section.

Table I. Command Summary

Binary

 

Command-id

Function

0x20

Write Data

0x30

Read Data

0x40

Block Write

0x50

Block Read

4.3.1 Error Handling

Each command will return a status code as the last byte returned. This status code will indicate whether the command completed successfully or whether an error occurred while the EM405D was performing the command. Table II shows a list of potential status codes that may be returned.

Table II. Status Code (SC)

Value

Meaning

0x00

Successful

0x01

Invalid Command

0x02

Invalid Parameter

0x03

Module did not respond*

* Note: Applies to M-module requests only.

17

Image 23
Contents H E R N E T Copyright 2004 by C&H Technologies, Inc CopyrightDocument Revision Notice Introduction Operating Instructions Table of Contents General DescriptionInstallation Functional DescriptionList of Tables EM405D Ethernet M-Module CarrierPurpose of Equipment Features and SpecificationsKey Features Maximum Ratings SpecificationsBus Compliance ElectricalMechanical EnvironmentalApplicable Documents Installation of M-MODULES Installation Unpacking and InspectionHandling Precautions MA Configuration Diagram Ethernet Interface Functional Description GeneralRear Panel Power ConversionModule Interface Front Panel Front PanelPage IP Address Configuring the Ethernet InterfaceOperating Instructions General Recommendation Default subnet mask is GatewayDefault gateway address is Port Numbers Default setting is Auto-Scan Telnet x.x.x.x Performing the Configuration Wireless Ethernet Wi-Fi Page Table II. Status Code SC Table I. Command SummaryError Handling Communicating with the Carrier and M-MODULESPage Read Data command Write Data commandStarting address + block size * word size Block AccessNumber of bytes = number of blocks * block size * word size 0x50 md as ws ad ai nh nl bs Table III. Register Summary 5 EM405D Configuration/Status RegistersFirmware Version Reset Error & Manufacturer IdentificationDevice Identification Hardware VersionFan Control & Temperature Status Reset & Trigger ControlFollowing values would be invalid Controlling the TriggersFAN and Temperature Control Page Figure A-1 -Pin Dsub Connector Page Table B-1. Ethernet Interface Default Settings Appendix B Wired Ethernet Default SettingsOn Passive Connection True CPU Performance High Page Wireless LAN Settings Table C-1. Wireless Ethernet Configuration Default SettingsCurrent Port Profile TCP Sockets Gpio Page T E S Page Comments Readers Comment FormInstructions