RangeLAN2 Serial AdapterModels 7910 and 7911User’s Guide2
4Figure 1RangeLAN2 791x Serial Adapter Components
94Sample TCP Send Program1 /*******************************************************2 * tcpsend.c3 * Sends a message to a Serial Adapter using
9540 hp= gethostbyname(argv[1]);41 if (hp==0) {42 fprintf(stderr, “%s: Unknown host\n”, argv[1]);43 exit(2);44 }45 memcpy( (ch
96Sample UDP Receive Program1 /********************************************************2 * udprecv.c3 * Receives a series of messages from
9741 if (bind(sock, (struct sockaddr *)&name, sizeof(name)) < 0) {42 perror(“binding datagram socket”);43 exit(1);44 }4546 /*
9813 #define DATA1 01415 main(argc, argv)16 int argc;17 char *argv[];18 {19 int i, sock;20 short dataLength;21 short
9955 name.sin_family= AF_INET;56 /* htons() converts a 16-bit integer from host to network byte order */57 name.sin_port= htons(atoi
100C. Menu StructureDotted Line - Visible when configured as a MasterDashed Line - Visible when configured as a StationDomain Channel Subchannel Maste
101Radio ParametersNetwork ParametersBaud Rate(current)Baud Rate(configured)Parity(current)Parity(configured)# Stop Bits(current)# Stop Bits(configure
102Dotted Line - Visible when configured as a MasterDashed Line - Visible when configured as a StationDisplay Parameter ValuesReset Param eters to Fac
103Display Parameter ValuesReset Parameters to Factory DefaultsRadio Configuration MenuSend Mode Destination AddressIP Address Subnet MaskLocal Port N
52. Quick InstallationYou may follow the quick installation and configuration steps ifall of the following conditions are true:❑ You will use all of t
104Display Parameter ValuesReset Param eters to Factory DefaultsRadio Configuration MenuNetwork Configuration MenuBaud Rate ParityNum ber of Stop Bits
105* For use while in p acketized m ode on lyDisplay Param eter ValuesReset Param eters to Factory DefaultsRadio Configuration MenuNetwork Configurati
106Display Parameter ValuesReset Parameters to Factory DefaultsRadio Configuration MenuNetwork Configuration MenuSerial Configuration MenuAdvanced Con
107D. ParametersRadio ParametersemaNretemaraPegnaRtluafeDniamoDesUrof"U"dna,51-0hctiwShctiwSesU*lennahCrof0dna,51-1noitcelescitamotua0*lenna
108Network ParametersemaNretemaraPegnaRtluafeDedoMdneS,)tnioPottnioP(PCT,)tnioPottnioP(PDUtsacdaorBdna)tnioPottnioP(PCTsserddAnoitanitseD--sserddAPI-
109Serial ParametersemaNretemaraPegnaRtluafeDetaRduaB)spb(,0084,0042,0021,003,00483,00291,0069002511dna,006750069ytiraP,kraM,ddO,nevEenoNdna,ecapSenoN
110Advanced Configuration ParametersemaNretemaraPegnaRtluafeDretliFsserddAPI--tsacdaorBtpeccAstekcaPoN/seYseYtnioP-ot-tnioPtpeccAstekcaPoN/seYseYuneM-
111E. Procedure for Downloading New SoftwareAt some point in the future, you may need to upgrade the RangeLAN2Serial Adapter software. To do this, ch
112Note:Do not choose the “Download New Software Version”menu item unless you are prepared to perform a soft-ware download to the device. Once you pr
113F. GlossaryAccess Point — An internetworking device that seamlesslyconnects wired and wireless networks together.Assert — To set a flow control pi
6Figure 2Attachment of the RangeLAN2 Serial Adapter Antenna2. Attach one end of an RS-232 cable to the RangeLAN2Serial Adapter and the other end to a
114Inhibit — To set a flow control pin to the “off” position.Interference — A situation that occurs when an unwanted RFsignal occupies the same freque
115G. How to Reach Technical SupportIf you’re having a problem using RangeLAN2 791x SerialAdapter and can’t resolve it with the information in Chapte
116H. U.S. SpecificationsThe following technical specification is for reference purposes only.Actual product’s performance and compliance with local t
117IndexAAccess Point. See RangeLAN2: Access PointAdvanced Configuration Menu 55. See also Configuration MenuAntenna 3, 5, 28, 65, 116Placement 66BBau
118EEcho Mode 51, 69EEPROM 1Escape Parameters 57Escape-to-Menu Character 57Escape-to-Menu Delay 57Extension Point. See RangeLAN2: Extension PointFFCC
119Microwave Ovens 65Mounting 28–31NNetwork Configuration Menu 45–48. See also Configuration MenuNotify Remote Nodes of Pin Status Change 57Null Modem
120Repeating 41RMA iRoam Config 42Roaming Enabled 43Rotary Switch 1, 19–22, 24Domain 3, 7, 19, 20–22, 31, 38Station Type 3, 6, 19, 37Router 16, 48RS-2
121UU.S. Specifications 116–117UDP 46, 64, 114VView Statistics 63WWindows Sockets. See SocketsXXMODEM 111XON/OFF. See Flow Control
74. Each RangeLAN2 791x Serial Adapter is preconfiguredto use Domain 0. If you have multiple pairs of SerialAdapters and each pair consists of one Mas
93. Wireless TopologiesThe RangeLAN2 Serial Adapter supports numerous wirelesstopologies. The following sections describe four (4) basicwireless con
10In Figure 3 above, Serial Adapters 1 and 2 can communicatewith each other, as can Serial Adapters 3 and 4. Even though allfour units may be in rang
11Point-to-MultipointThe RangeLAN2 Serial Adapter may also operate in a Point-to-Multipoint topology. This configuration provides added flexibil-ity,
12Figure 4Point-to-Multipoint
13Point-to-Point Using RangeLAN2 InfrastructureYou may also use your existing RangeLAN2 infrastructure andnetwork to increase the range and flexibilit
iCopyright© 1999 Proxim, Inc., Sunnyvale, CA. All rights reserved. This manual and thesoftware described in it are copyrighted with all rights reserve
14Figure 5Point-to-Point Using RangeLAN2 Infrastructure
15Point-to-Multipoint Using aRangeLAN2 Access Point as a Base UnitA Serial Adapter may communicate directly with a workstationthat has either a RangeL
16Figure 6 above shows a simple configuration of this topology.Desktop 1 is on the same network as a RangeLAN2 AccessPoint. Serial Adapters 1 and 2 a
174. Pass-through and Packetized ModesThe Serial Adapter’s serial interface can be set for two kinds ofoperating modes: Pass-through mode and Packetiz
18
195. Understanding the HardwareRotary SwitchesThe RangeLAN2 Serial Adapter is designed for easy config-uration by setting two rotary switches located
20Figure 7Rotary SwitchesThe Pairing DomainThere is an additional feature associated with Domain 8 on theDomain Switch called the Pairing Domain. Whe
21when the unit is reset. This allows the user to permanentlyconfigure a pair of Serial Adapters to communicate exclusivelywith one another. Follow
22To reset the unit back to the default setting, manually set theDestination Address to 0.0.0.0 or reset the unit to factory de-faults from within the
23❑ The Serial LED on the left side blinks green when theSerial Adapter is transmitting data over the serialconnection.Figure 8Top Panel LEDsStatus LE
iiWarranty Return PolicyIf you have a problem with your RangeLAN2 product, please call ProximTechnical Support at (408) 731-2640. Proxim Technical Sup
24There are also four LEDs on the back panel of the RangeLAN2791x Serial Adapter:❑ The green Master LED, located between the DC powerjack and the ser
25Figure 9Back Panel LEDsOverride LEDMaster LEDSync LED
26Serial Port SpecificationFigure 10 and the table below provide the specification of the 9-pin serial port located on the RangeLAN2 Serial Adapter.
27Figure 10Serial Port Specification
28Antenna OptionsThe Serial Adapter is shipped with a standard directly-connectedantenna. To install the antenna, screw it clockwise onto theantenna
29Figure 11Mounting Holes2.10”2.75”
30
316. ConfigurationYou need to configure the RangeLAN2 Serial Adapter using thesoftware menus if any of the following conditions apply:❑ You plan to op
323. Apply power to the Serial Adapter. When the unit is readyfor operation, the letter “U” will be displayed on the terminalscreen.Let the unit sit
33Type the number of the menu option and <ENTER> to view thesub-menus. Hit <ESC> at any time to back up one menu.To simplify the menu opt
iiiContents1. Introduction ...1The RangeLAN2 Family ...
34
357. Radio Configuration MenuThis section discusses the Radio Configuration values that canbe manually configured by the user.The software tree below
36Radio ParametersThe table below shows the range and default values for each ofthe Radio parameters:emaNretemaraPegnaRtluafeDniamoDesUrof"U"
37Note that changes to these parameters will not take effect untileither the radio or the Serial Adapter is reset.A RangeLAN2 Serial Adapter may be se
38In order to establish communications, all Stations and the Mastermust be configured with the same Domain number. Radios ondifferent Domains cannot
39Each Master can select one of 15 Channels to establish commu-nication with its Stations. Each Channel number sets a uniquefrequency hopping sequenc
40For example, you can use Channel 1, Subchannel 1 for AdapterPair A and Channel 1, Subchannel 2 for Adapter Pair B. Thetwo pairs will not communicat
41The Repeating Enabled parameter gives the ability to enable ordisable the RangeLAN2 repeating feature. When enabled, aSerial Adapter, acting as a M
42There is no inactivity timeout set by default, but you maychange this to any interval of 10 seconds. This parameter isvisible only when the Serial
43You may choose to disable a Serial Adapter’s ability to roamwith the Roaming Enabled parameter. This feature is enabledby default; however, if you
iv10. Advanced Configuration Menu...55Advanced Parameters ...
458. Network Configuration MenuThis section describes the network configuration parameters forthe RangeLAN2 Serial Adapter.The software tree below sho
46Network ParametersemaNretemaraPegnaRtluafeDedoMdneS,)tnioPottnioP(PCT,)tnioPottnioP(PDUtsacdaorBdna)tnioPottnioP(PCTsserddAnoitanitseD--sserddAPI- s
47broadcast message. Broadcast mode uses the UDP transportlayer protocol to send data. As stated above, UDP is faster thanTCP but does not ensure re
48cate with the wired infrastructure, it will be necessary to changethe default address to one which is on the same subnet as thewired stations so tha
499. Serial Configuration MenuThis section describes the serial configuration parameters for theRangeLAN2 Serial Adapter.The software tree below shows
50Serial ParametersemaNretemaraPegnaRtluafeDetaRduaB)spb(,0084,0042,0021,003,00483,00291,0069002511dna,006750069ytiraP,kraM,ddO,nevEenoNdna,ecapSenoNs
51You may also change the default settings for Parity, Number ofStop Bits, and Number of Data Bits to match the settings ofyour RS-232 application. T
52CTS pin, notifying the remote RS-232 host that data may be sentover the connection. This function regulates the data exchangebetween two RS-232 hos
53The Maximum Line Length refers to the maximum number ofcharacters the Serial Adapter must receive before transmittingthe message. The maximum value
vD. Parameters ...107Radio Parameters ...
54
5510. Advanced Configuration Menu* For u se wh ile in packetized m ode onlyDisplay Param eter ValuesReset Parameters to Factory DefaultsRadio Configur
56Advanced ParametersemaNretemaraPegnaRtluafeDretliFsserddAPI--tsacdaorBtpeccAstekcaPoN/seYseYtnioP-ot-tnioPtpeccAstekcaPoN/seYseYuneM-ot-epacsEretcar
57The IP Address Filter parameter allows you filter out packetsreceived by the Serial Adapter from any IP Address other thanone specified IP Address.
58and loses communication with its destination unit. You may setthe unit to either reestablish the connection and continue trans-missions or to halt
59If you have written, or plan to write, a custom application toallow communication between the RangeLAN2 Serial Adapterand an Ethernet device, set th
60
6111. Display Parameter ValuesThe Serial Adapter displays all of the relevant parameters in onecentralized location. By choosing “Display Parameter V
62Radio ParametersNetw ork ParametersBaud Rate(current)Baud Rate(configured)Parity(current)Parity(configured)# Stop Bits(current)# Stop Bits(configure
6312. View StatisticsYou can view statistics about the RangeLAN2 Serial Adapterfrom the View Statistics menu. The following diagram illustratesthe so
11. IntroductionCongratulations on your purchase of the RangeLAN2 791xSerial Adapter, the radio module that replaces RS-232 serialcables with wireless
64Serial Errors StatisticsThis category displays the number of errors occurring in the serialinterface of the Serial Adapter during operation.The Seri
6513. Performance HintsThis section provides the user with ideas for how to increaseperformance with Proxim wireless products.Microwave OvensMicrowave
66Proper antenna placement can help improve range. Here aresome guidelines:❑ The antenna should be placed in a vertical position.❑ Do not place a she
6714. TroubleshootingThe RangeLAN2 791x Serial Adapter is designed to be very easyto install and operate. If you do experience difficulties, however,
683 blinks: Software error4 blinks: Failed to initialize the radio5 blinks: Memory full6 blinks: Miscellaneous error7 blinks: Failed to initialize the
69noitseuQmotpmyS/melborPrewsnA/noituloSelbissoPs'resUniretpahCediuGehtpugnirbt'nacI.uneMnoitarugifnoCsgnitteslanimretruoytahtyfireV.1laireS
70A. Packetized Mode SpecificationOverviewThe purpose of the Serial Adapter is to accept information from aserial line and transmit it reliably via ra
71tions where developing special software to interact with the SerialAdapter is undesirable.For some applications, the Pass-through mode of operation
72The Modem Command Protocol (MCP) is an application layerprotocol by which an External computer may exchange com-mands, status information, and data
73PPX-1 ProtocolThe following is the format of the PPX-1 packet:BYTE SOH ;Start of header for synchronization(ASCII 01H)BYTE LEN H ;High byte of lengt
2The RangeLAN2 FamilyRangeLAN2 791x Serial Adapter is part of a family of high-performance products that provides a complete wireless net-working solu
74Modem Command Protocol (MCP)This section describes the Modem Command Protocol. All of thecommands which the Serial Adapter will accept are listed b
75the External Computer creates a command packet, it should placea unique number (from 0 to 127) into the seqno field of thepacket. When the Serial A
76The four byte address field is the IP address of the destinationnode. Broadcast addresses (for example, x.y.z.255) can also beused.Request Radio Si
77Go To StandbyPurpose: The purpose of this command is to place the SerialAdapter in Standby mode in order to conserve current. For thiscommand to wo
78Message Format:BYTE command (ASCII ‘C’, 43H)BYTE seqnoBYTE Radio Channel (1 to 15)Set Network SubchannelPurpose: To set the subchannel of the Serial
79The meaning of the baud rate argument is as follows:Value of baudrate field Baud rate 2 300 3 1200 4 2400 5 48
80Call up Configuration MenuPurpose: To invoke the Serial Adapter configuration menu frompacketized mode.Response Expected from Serial Adapter: NoneBY
81MCP Responses From Serial AdapterThis section describes the format of MCP response messagespassed from the Serial Adapter to an External Computer.Da
82The StatusInd field does not show whether the destination nodehas received the message.Message Format:BYTE response (ASCII ‘t’, 74H)BYTE seqno (from
83Serial Adapter Version ReportPurpose: This packet is generated by the Serial Adapter in re-sponse to a Request Serial Adapter Version command. Thepa
3System RequirementsTo begin using your RangeLAN2 791x Serial Adapter, you needthe following minimum system requirements:❑ At least one (1) device wit
84Message Format:BYTE response (ASCII ‘i’, 69H)BYTE seqno (from original command)BYTE IPaddr H (Serial Adapter’s IP Address)BYTE IPaddr 3BYTE IPaddr
85Message Format:BYTE response (ASCII ‘s’, 73H)BYTE seqno (from original command)BYTE subchannel (1 to 15, from original command)Baud Rate Confirmati
86RS-232 Pin Status ReplyBYTE response (ASCII ‘p’, 70H)BYTE seqnoBYTE status 0= success 1= error4 BYTES IP address of remote nodeBYTE pin statusTh
87B. Serial Adapter TCP/IP SpecificationThe fundamental obstacle to allowing a Serial Adapter to commu-nicate with a wired workstation is that the two
88that Windows Sockets programs require a compiler, such asVisual C++, in order to be executed. On UNIX machines,Berkeley Sockets is available on mos
89Bit 4 is set if CD is asserted on the sending side.Bit 5 is set if the sending host has sent a BREAK; this bit shouldbe set to 0.Bit 6: Reserved an
907. The Default Gateway Address and Subnet Mask parameterson the Serial Adapter must be set to the appropriate values foryour network. See your Net
91Sample TCP/IP Communication ProgramsOn the following pages are four pieces of sample code written inBerkeley Sockets as an example of the type of cu
92232425 /* Open the log file */26 logfile= fopen(“proxlink.log”, “wb”);27 if (!logfile) {28 printf(“Error: Couldn’t open log file\n
9365 /* Establish the TCP connection. Accept() returns a new66 socket number for the connection, allowing listen() to67 (if desired) continue to
Komentarze do niniejszej Instrukcji