Lantronix XPress DR+ manual Appendix D Binary to Hexadecimal Conversions, Conversion Table

Page 108

Appendix D: Binary to Hexadecimal Conversions

Many of the unit’s configuration procedures require you to assemble a series of options (represented as bits) into a complete command (represented as a byte).

The resulting binary value must be converted to a hexadecimal representation.

Converting Binary to Hexadecimal

Following are two simple ways to convert binary numbers to hexadecimal notation.

Conversion Table

Hexadecimal digits have values ranging from 0 to F, which are represented as 0-9, A (for 10), B (for 11), etc. To convert a binary value (for example, 0100 1100) to a hexadecimal representation, treat the upper and lower four bits separately to produce a two-digit hexadecimal number (in this case, 4C). Use the following table to convert values from binary to hexadecimal.

Decimal

Binary

Hex

 

 

 

0

0000

0

 

 

 

1

0001

1

 

 

 

2

0010

2

 

 

 

3

0011

3

 

 

 

4

0100

4

 

 

 

5

0101

5

 

 

 

6

0110

6

 

 

 

7

0111

7

 

 

 

Decimal

Binary

Hex

 

 

 

8

1000

8

 

 

 

9

1001

9

 

 

 

10

1010

A

 

 

 

12

1100

C

 

 

 

13

1101

D

 

 

 

14

1110

E

 

 

 

15

1111

F

 

 

 

 

 

 

Scientific Calculator

Another simple way to convert binary to hexadecimals is to use a scientific calculator, such as the one available on Windows’ operating systems. For example:

1.On the Windows’ Start menu, click ProgramsÆAccessoriesÆCalculator.

1.On the View menu, select Scientific. The scientific calculator displays.

2.Click Bin (Binary), and type the number you want to convert.

XPress DR+ User Guide

108

Image 108
Contents XPress DR+ User Guide Lantronix Corporate Headquarters Technical Support Sales OfficesDate Rev Comments Contents Using DeviceInstaller Configuration Using Web ManagerContents Configuration Using Telnet or Serial Port Setup Mode Setup Mode Server ConfigurationSetup Mode Channel Configuration Setup Mode Advanced Settings Expert Settings Option 5Firmware Upgrades Monitor ModeTroubleshooting and Technical Support Appendix D Binary to Hexadecimal Conversions 108Appendix F Warranty 115 Index 116 FiguresTables Using This Guide Purpose and AudienceSummary of Chapters Chapter DescriptionUsing This Guide Additional DocumentationIntroduction Product DescriptionIntroduction XPress DR+ FrontIndustrial Automation Protocols Network Protocols Serial TunnelingXPress DR+ Application Examples Example of Serial TunnelingAddresses and Port Numbers Hardware AddressIP Address Port NumbersConfiguration Methods Lantronix Web Manager. See Configuration Using Web ManagerInstallation and Hardware Physically Connecting the XPress DR+Whats in the Box? What Must the User Provide?Installation and Hardware XPress DR+ Front PanelSerial Interface Front of XPress DR+Screw Terminal Serial Connectors RJ45 Serial Connector PinoutsSerial Screw Terminal Pinout for RS422 4-Wire Serial Screw Terminal Pinout for RS485 2-WirePin RS-232 to Serial RJ45 Cable P/N DTE, 9-Pin XPress DR+ Female Serial RJ45Ethernet Interface Signals Typical RJ45 ConnectorEthernet Interface Power Requirements Reset SwitchMulti-Drop Ethernet Connections LEDs RXD Activity LED TXD Activity LED Ethernet Link LEDEthernet Activity LED Dimensions Status MeaningXPress DR+ LED Functions Wall Mount Bracket Product Information LabelXPress DR+W Application ExamplesSerial Tunneling Network Ad Hoc Network Serial Tunneling InfrastructureXPress DR+W Physically Connecting the XPress DR+W Ad Hoc XPress DR+W ConnectionTypical XPress DR+W Configuration Front Panel DescriptionRequired Information for Initial Configuration XPress DR+W LED FunctionsInstalling the XPress DR+W for Initial Configuration Server Configuration OptionWlan Settings IP Address Subnet Mask GatewayNetwork Mode XPress DR+W only BootP/DHCP/AutoIP optionsSet Gateway IP Address Options BitWlan Configuration Option Change Telnet Configuration PasswordNetmask Number of Bits for Host Part Change Dhcp Device NameTopology Network Name SsidAdhoc Network Channel Key Type Encryption Key HexPassphrase WPA WPA2/802.11i Fixed or Automatic Data RateNext Steps Transmission Data RateUsing DeviceInstaller Installing DeviceInstallerTo install DeviceInstaller Assigning an IP AddressAccessing the XPress DR+ Using DeviceInstaller Viewing the Current ConfigurationUsing DeviceInstaller To view the units current settingsSetting Description Supports Configurable PinsSupports Http Setup Supports Dynamic IPConfiguration Using Web Manager Accessing XPress DR+ Using DeviceInstallerConfiguration Using Web Manager Network Configuration Lantronix Web ManagerAutomatic IP Address Configuration To assign an IP address automaticallyAutoIP Dhcp Host NameServer Configuration Static IP Address ConfigurationDefault Gateway To assign an IP address manuallyServer Configuration To configure the units device server settingsAdvanced Host List Configuration To configure the units host list0x77FE Server Port MTU Size Channel Configuration Serial SettingsRetry Settings To configure the channel’s serial settingsPort Settings ChannelPack Control Flush Input Buffer Serial to NetworkFlush Output Buffer Network to Serial Connection Settings TCP To configure a channel’s TCP settingsConnect Mode Passive Connection Connect Mode Active ConnectionEndpoint Configuration Connect ProtocolConnection Settings UDP Disconnect ModeTo configure a channel’s UDP settings Common OptionsDatagram Mode Datagram TypeWlan Configuration XPress DR+W only Device Address TableTo configure the XPress DR+W’s Wlan settings Wlan Settings Ad Hoc Network TypeWireless Network Configuration Network Name SsidNetwork Type ChannelWireless Network Security WEP OptionsWPA Options Applying Settings Applying Factory DefaultsAdvanced Settings WPA2/802.11i OptionsConfiguration Using Telnet or Serial Port Setup Mode Accessing Setup ModeConfiguration Using Telnet or Serial Port Setup Mode Serial Port ConnectionTo establish a Telnet connection Exiting Setup Mode To exit setup modeSetup Mode Server Configuration Setup Mode Server Configuration Dhcp Name Setup Mode Channel Configuration Channel 1 Option 1 and Channel 2 OptionBaudrate Interface Mode Setup Mode Channel ConfigurationMode Option Common I/F Mode Setting Binary HexFlow Port NumberFlow Control Option Hex Port Numbers Reserved forConnect Mode Connect Mode OptionIncoming Connection ResponseActive Startup Autostart Automatic ConnectionHostlist Modem Mode To enable the hostlistDatagram Type Directed UDPMessage Meaning Modem Mode Function Command Modem Mode CommandsSend the Escape Sequence +++ in Modem Mode Auto Increment Source PortRemote IP Address Disconnect Mode Option Disconnect Mode OptionsRemote Port DisConnModeFlush Mode Buffer Flushing Pack ControlOption DisConnTime Inactivity Timeout Packing IntervalTrailing Characters Send CharactersChannel Port Password Wlan Settings XPress DR+W OnlySend Characters Telnet Terminal TypeTopology 0=Infrastructure, 1=Adhoc 0 ? WEP WEP64 or 13 WEP128 bytes and limits the number of key TX Data rate 0=fixed, 1=auto fallback 1 ? Enable Power Management Setup Mode Advanced Settings Expert Settings OptionARP Cache timeout in seconds Disable Monitor Mode at bootupSecurity Settings Option Enable alternate MACSetup Mode Advanced Settings Http Port NumberDisable Snmp Disable Telnet SetupDisable Tftp Firmware Upgrade Disable Port 77FE HexDefault Settings Option Expert Settings Security SettingsWlan Settings XPress DR+W only Topology AdHoc Network NameFirmware Upgrades Using Tftp Graphical User InterfaceObtaining Firmware Reloading Firmware ROM FileUsing Tftp Command Line Interface Firmware UpgradesTo recover firmware Firmware Upgrades Monitor Mode Entering Monitor Mode Using the Serial PortEntering Monitor Mode Using the Network Port Monitor Mode CommandsMonitor Mode Command Command Name FunctionMonitor Mode Commands G0, G1, ....,Ge, GfCommand Response Codes Response MeaningTroubleshooting and Technical Support Problems and Error MessagesProblem/Message Reason Solution Problems and Error MessagesTroubleshooting and Technical Support XPress DR+ User Guide 101 Technical Support Technical Support Europe, Middle East, and AfricaAppendix a Technical Specifications XPress DR+ and XPress DR+W SpecificationsAppendix a Technical Specifications XPress DR+W Wireless SpecificationsCategory Ieee 802.11b/g Appendix B Lantronix Cables and Adapters Lantronix P/N DescriptionApplications Appendix C Alternative Methods of Assigning an IP Address AutoIPARP and Telnet Appendix C Alternative Methods of Assigning an IP AddressTo assign a temporary IP address Appendix D Binary to Hexadecimal Conversions Converting Binary to HexadecimalConversion Table Scientific CalculatorAppendix D Binary to Hexadecimal Conversions Appendix E Compliance Information Declaration of ConformityElectromagnetic Emissions and Immunity XPress DR+ Emissions ImmunityAppendix E Compliance Information RadioElectromagnetic Emissions and Immunity XPress DR+W XPress DR+W Regulatory Information USA Federal Communications Commission FCC NoticeCanada Industry Canada Notice Europe R&TTE Directive 99/5/EC, Wireless Notice Antenna NoticeExposure of Humans to RF Fields Australia & New Zealand Wireless Notice Appendix F Warranty Index