Lantronix 900-618 manual Binary to Hexadecimal Conversions, Converting Binary to Hexadecimal

Page 77

A:Binary to Hexadecimal Conversions

Many of the unit’s configuration procedures require assembling a series of options (represented as bits) into a complete command (represented as a byte). Convert the resulting binary value to a hexadecimal representation.

Converting Binary to Hexadecimal

Following are two simple ways to convert binary numbers to hexadecimals.

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, the upper and lower four bits are treated separately, resulting in 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

8

1000

8

9

1001

9

10

1010

A

11

1011

B

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 ProgramsAccessoriesCalculator.

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

3.Select Bin (Binary), and type the number to convert.

xPico User Guide

77

Image 77
Contents User Guide Technical Support Sales Offices Lantronix Corporate HeadquartersDisclaimer Table of Contents Configuration via Telnet or Serial Port Setup Mode Setup Mode Advanced Settings Gpio Interface List of Figures List of TablesChapter Summary Using This GuidePurpose and Audience XPico Integration Guide Additional DocumentationApplications IntroductionCapabilities Protocol Support Configuration MethodsAddresses and Port Numbers Hardware AddressPort Numbers Product Information LabelIP Address Installing DeviceInstaller Using DeviceInstallerTo install DeviceInstaller Assigning an IP AddressTo view the units current settings Accessing the xPico Using DeviceInstallerSelect Assign a specific IP address and click Next NameGroup Dhcp Device NameComments Device FamilySupports Configurable Firmware UpgradeablePins Supports Http SetupAccessing Web-Manager Using DeviceInstaller Configuration Using Web ManagerWeb-Manager Login Window Network ConfigurationSelect Obtain IP address automatically Network ModeTo assign an IP address automatically Ethernet Configuration Static IP Address ConfigurationSelect Use the following IP configuration To assign an IP address manuallyAuto Negotiate To configure the xPico’s device server settingsAdvanced Host List ConfigurationServer Configuration Retry Settings Channel 1 and 2 ConfigurationTo configure the xPico’s host list Host InformationPort Settings Serial SettingsTo configure the channel’s serial settings ChannelFlush Input Buffer Serial to Network Pack ControlTo configure a channel’s TCP settings Connection Settings TCPFlush Output Buffer Network to Serial At Time of DisconnectTCP Connection Settings Connect Mode Active Connection Connect Mode Passive ConnectionEndpoint Configuration Connect ProtocolTo configure a channel’s UDP settings Connection Settings UDPDisconnect Mode Datagram Type Datagram ModeUse Broadcast Device Address TableTo configure the xPico’s Configurable Pins Configurable Pin SettingsConfigurable Pin Functions Apply Defaults Apply SettingsSerial Channel 1 Status LED Serial Channel 2 Status LEDTelnet Connection Configuration via Telnet or Serial Port Setup ModeAccessing Setup Mode To establish a Telnet connection Serial Port ConnectionTo exit setup mode Exiting Setup ModeServer Configuration Option Setup Mode Server ConfigurationBootP/DHCP/AutoIP Options IP AddressSet Gateway IP Address Change Telnet/Web-Manager PasswordNetmask Number of Bits for Host Part Set DNS Server IP AddressDhcp Name Baudrate Setup Mode Channel ConfigurationChannel 1 Option 1 or Channel 2 Option Interface Mode Options Interface ModeRS232 Interface Mode Settings FlowPort Number Connect ModeFlow Control Options Reserved Port NumbersIncoming Connection Connect Mode OptionsIncoming Connection ResponseActive Startup ResponseManual Connection Address Example Manual ConnectionHostlist Option To enable the hostlistDirected UDP Modem ModeDatagram Type Numeric Response Modem Mode CommandsAuto Increment Source Port Send the Escape Sequence +++ in Modem ModeShow IP addr after Ring Remote IP Address Disconnect Mode OptionsPack Control Flush Mode Buffer FlushingSend Characters Packing IntervalTrailing Characters Channel Port Password DisConnTime Inactivity TimeoutSend Characters Telnet Terminal TypeTCP Keepalive time in seconds Setup Mode Advanced SettingsExpert Settings Option Disable Monitor Mode at bootup ARP Cache timeout in secondsCPU Performance Http Port NumberTCP Re-Transmission Timeout Security Settings OptionEnable alternate MAC Ethernet Connection TypeSnmp Community Name Disable SnmpDisable Telnet Setup Disable Port 77FE Hex Disable Tftp Firmware UpgradeDisable Web Server Disable Web SetupTo configure AES encryption on the xPico Enable EncryptionEnable Enhanced Password Default Settings OptionDisable Port 77F0 Hex Channel 1 and Channel 2 Configuration DefaultsSecurity Settings Defaults Expert Settings DefaultsHostlist retry timeout Start character for serial channelGpio Interface Configurable PinsFeatures Byte 0 Command Types CommandsControl Protocol GuidelinesCommand 11h, Get Directions Command 10h, Get FunctionsCommand 12h, Get Active Levels Command 13h, Get Current StatesCommand 1Ah, Set Active Levels Command 19h, Set DirectionsCommand 1Bh, Set States Command detailsResponse details Using Tftp Graphical User Interface Firmware UpgradesObtaining Firmware Reloading Firmware To download new firmware from a computerTftp Window Using Tftp Command Line InterfaceTo recover firmware Entering Monitor Mode Using the Serial Port Monitor ModeEntering Monitor Mode Using the Network Port Monitor Mode CommandsG0, G1, ....,Ge, Gf Monitor Mode CommandsS0, S1,...,Se, Sf ExampleResponse Meaning Command Response CodesProblems and Error Messages Troubleshooting Lock on Caps Lock is not onTroubleshooting Technical Support Europe, Middle East, and Africa Technical SupportTechnical Support US Converting Binary to Hexadecimal Binary to Hexadecimal ConversionsConversion Table Scientific CalculatorBinary to Hexadecimal Conversions RoHS Notice Compliance