称重仪表及PLC通讯实训指导手册_第1页
称重仪表及PLC通讯实训指导手册_第2页
称重仪表及PLC通讯实训指导手册_第3页
称重仪表及PLC通讯实训指导手册_第4页
称重仪表及PLC通讯实训指导手册_第5页
已阅读5页,还剩6页未读, 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、myprompt#iwconfig ath0key 3The following command sets the default key to be the hex key 0xDEAD-BEEF-AA:myprompt#iwconfig ath0key DEAD-BEEF-AAThe following command sets key 2to the ASCII phrase “password”and sets the authentication type toopen:myprompt#iwconfig ath0key 2s:passwordopenThe following co

2、mmand disables WEP:myprompt#iwconfig ath0key offtxpower -Set Transmit PowerSet the transmit power for data packets. Bare numbers are interpreted as values in dBm. If the number is followed by mW , the value is interpreted in milliwatts. The value can also be auto for automatic power control and off

3、for disabling the radio transmission.Example :The following command sets all data packets to transmit at either 30dBm or the maximumallowed in the current regulatory domain:myprompt#iwconfig ath0txpower 30retry -Set Retry LimitThis parameter sets the maximum number of retries used in the software re

4、try algorithm. Currently, the driver does not implement software retry, thus this parameter is meaningless.The current MadWidriver supports multiple APs and concurrent AP/Stationmode operation on the same device. The devices are restricted to using the same underlying hardware, thus are limited to c

5、oexisting on the same channel and using the same physical layer features. Each instance of an AP or station is called a Virtual AP (orV AP. Each V AP can be in either AP mode, station mode, “special”station mode, and monitor mode. Every V AP has an associated underlying base device, which is created

6、 when the driver is loaded.Creating and destroying V APs are done through the wlanconfig tool found in the MadWitools directory. Run-ning the wlanconfig utility with no arguments returns a brief help line. The format of the wlanconfig command takes two forms:wlanconfig VAP create wlandev Base Device

7、 wlanmode mode bssid -bssid nosbeacon wlanconfig VAP destroyEvery Linux network device consists of a prexfollowed by a number indicating the device number of the network device. For instance, the ethernet devices are named eth0, eth1, eth2, etc. Each V AP which is created is also registered as a Lin

8、ux network device. The value VAP can be either a prexname of the Linux network device, or it can be the entire device name. For instance, specifying VAP as ath lets the Linux kernel add the network device as the next device with the prexath . Thus, the Linux kernel appends the proper number to the e

9、nd to form the full device name, e.g., ath1if ath0already exists. However, the full device name can also be specied.For instance, VAP can also be ath2. In this case, the network device ath2is registered, regardless of whether ath1exists.The Base Device is the underlying wireless network device name

10、created when the driver is loaded. The MadWidriver creates wifi0, wifi1, etc. as the underlying devices. By specifying the Base Device , the V AP is created with the Base Device as the parent device.The mode is the operating mode of the V AP. The operating mode of the V AP cannot be changed once it

11、is created. In special cases, the operating mode of the V AP can be different from the operating mode of the underlying parent device. The rstV AP which is created sets the operating mode of the underlying device. If the rstV AP is deleted and6ModeAutoStation mode for infrastructure networksMasterPa

12、ssive monitor (promiscuousmodeTable 1:wlanconfig Operating ModesD8129To destroy a V AP, the wlanconfig command is used with the destroy parameter. In this case, the full device name must be used, i.e. you must specify the entire name, not just the device prex.Example :If we wish to use the system as

13、 a station only, we would create a single station V AP once thedriver is loaded. The following command creates a single station V AP named ath0on device wifi0:myprompt#wlanconfig ath create wlandev wifi0wlanmode staNote that no other V APs can be created since the we are assuming this is the rstV AP

14、 created on wifi0.Since this is the rstV AP created, we only need to specify ath , not ath0. However, the followingcommand would also be correct:myprompt#wlanconfig ath0create wlandev wifi0wlanmode staThe MAC address of the station V AP is the same as the underlying devicesMAC address since it is th

15、erstV AP created.Example :Now, we wish to create two AP V APs on device wifi0. The rstdevice will have a clonedMAC address taken from the underlying device. The second V AP will have a “virtual”MAC addressformed from the underlying devicesMAC address. The rstV AP will be ath0and the second devicewil

16、l be ath2.myprompt#wlanconfig ath create wlandev wifi0wlanmode apmyprompt#wlanconfig ath2create wlandev wifi0wlanmode apExample :Now, we wish to create two AP V APs on device wifi0. Both devices will have a the sameMAC address cloned from the underlying device. The rstV AP will be ath0and the second

17、 V AP will beath1.myprompt#wlanconfig ath create wlandev wifi0wlanmode ap -bssidmyprompt#wlanconfig ath create wlandev wifi0wlanmode ap -bssidExample :Now, we wish to create two AP V APs and one station V AP. The AP V APs will be ath0andath2and the station V AP will be ath1.myprompt#wlanconfig ath c

18、reate wlandev wifi0wlanmode apmyprompt#wlanconfig ath create wlandev wifi0wlanmode sta nosbeaconmyprompt#wlanconfig ath create wlandev wifi0wlanmode ap7Example :Now, we wish to destroy a V AP (regardlessof its operating mode. We assume that there is aV AP named ath0, and itsthe one we wish to destro

19、y.myprompt#wlanconfig ath0destroy1.3Private (DriverSpecicDriver CommandsThe following is a list of the private commands which are accessible using iwpriv . The general syntax of iwpriv isiwpriv device command parameters .The entire list of iwpriv commands can be found by running iwpriv to a device w

20、ithout any command. The resulting list of commands has several columns. The number of parameters allowed for each command is listed. Parameters are classiedas either “set”or “get”parameters. “Set”parameters are parameters which the user supplies to the driver. “Get”parameters are parameters which th

21、e driver returns to the user.setoptie -Set Optional Information ElementNumber of Input Arguments:1Number of Returned Arguments:0Default Value:? Resets State Machine After Command:?This command takes a 256byte input parameter which species?getoptie -Get Optional Information ElementNumber of Input Arg

22、uments:0Number of Returned Arguments:1Default Value:N/AResets State Machine After Command:?This commands gets the optional information element. The information element is returned as 256bytes. mode -Set Wireless ModeNumber of Input Arguments:1Number of Returned Arguments:0Default Value:auto Resets S

23、tate Machine After Command:YesThis command sets the wireless mode, i.e. the frequency band and the protocol used. The mode can be speciedeither by name or by number. The allowed mode names and corresponding numbers are given in Table 2.Mode1234567Descriptionmyprompt#iwpriv ath0mode 11aormyprompt#iwp

24、riv ath0mode 1get运行监控(常通) This command enables and disables the ability to hide the 802.11SSID in the beacon if the V AP is in AP mode. To enable hiding of the SSID, a value of 1is passed into the driver. To disable hiding of the SSID, a value of 0is passed into the driver.Example :The following com

25、mand enables hiding the 802.11SSID on ath0:myprompt#iwpriv ath0hidehidehidehidegetprotmodeath0getinit -Set Inactivity Period for INIT StateNumber of Input Arguments:1Number of Returned Arguments:0Default Value:30secs Resets State Machine After Command:NoThis commands sets the inactivity period for w

26、hen the net80211state machine is in the INIT (initializationstate. The argument passed into the driver is the desired inactivity period in seconds.Example :The following command sets the inactivity period for the INIT state on ath0to 90seconds:myprompt#iwpriv ath0inactinactinactinactauth -Set Inacti

27、vity Period for AUTH StateNumber of Input Arguments:1Number of Returned Arguments:0Default Value:180secs Resets State Machine After Command:NoThis commands sets the inactivity period for when the net80211state machine is in the AUTH (authorizationstate. The argument passed into the driver is the desired inactivity period in seconds.Example :The following command sets the inactivity period for the AUTH state on ath0to 90seconds:myprompt#iwpriv ath0inact初始脉冲接通M8121数据发送等待标志,用于其他通讯方式M8122数据发送请求标志M8123数据接收完成标志M8129通讯超时标志M81618位/16位数据处理模式转化标志

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论