CN106330530A - Visual parameter configuration method - Google Patents

Visual parameter configuration method Download PDF

Info

Publication number
CN106330530A
CN106330530A CN201610650659.0A CN201610650659A CN106330530A CN 106330530 A CN106330530 A CN 106330530A CN 201610650659 A CN201610650659 A CN 201610650659A CN 106330530 A CN106330530 A CN 106330530A
Authority
CN
China
Prior art keywords
interface
configuration
order
configuration item
operation interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610650659.0A
Other languages
Chinese (zh)
Inventor
刘柱
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201610650659.0A priority Critical patent/CN106330530A/en
Publication of CN106330530A publication Critical patent/CN106330530A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/22Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks comprising specially adapted graphical user interfaces [GUI]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a visual parameter configuration method. The method is applied to a wireless device based on a Linux system. The method comprises the steps of establishing an operation interface in an interaction subsystem; providing a core and connecting the core with the operation interface through an interface, wherein the interface comprises commands for configuring the wireless device; and obtaining the commands from the interface, forming corresponding configuration items according to the commands, storing the configuration items in a configuration file and displaying the configuration items in the operation interface for selection of a user. The method also comprises the steps of detecting a selection operation of the user in the operation interface, and continuing to carry the step S1 if there is no operation; obtaining the configuration item corresponding to the selection operation according to the selection operation of the user; sending the configuration item to the interface through a control module; and converting the configuration item into the corresponding command and sending the command to the core by the interface. The technical scheme has the advantages that through application of the operation interface, the command corresponding to the configuration item can be sent to the core conveniently and rapidly, thereby realizing wireless configuration of the wireless device.

Description

A kind of visual configuration parametric technique
Technical field
The present invention relates to communication technical field, particularly relate to a kind of visual configuration parametric technique.
Background technology
When the wireless parameter of wireless device based on (SuSE) Linux OS is configured, if not providing net In the case of network management module and wireless device are in the development phase, Wireless Tools(i.e. Linux command row can only be passed through Tool kit) instrument carries out configuration operation to wireless device, and generally great majority operating systems based on linux kernel all comprise Wireless Tools instrument, the Command Line Interface provided by Wireless Tools instrument can realize the nothing to wireless device Line parameter configures, and wherein Wireless Tools mainly includes following three orders:
Iwconfig order mainly arranges basic wireless parameter;
Iwlist order mainly scans, lists frequency, bit rate, key etc.;
Iwpriv order mainly operates the specific driving of wireless device;
The wireless parameter to wireless device can be realized by above-mentioned iwconfig order, Iwlist order and Iwpriv order Configuration, and this is for being unfamiliar with user of these orders, then operate very inconvenience, have impact on wireless device Development process.
Summary of the invention
Carry out, for wireless parameter to wireless device in prior art, the problems referred to above that configuration exists, existing provide a kind of purport In realization, the wireless parameter of wireless device is carried out visualized operation, and visual configuration parametric technique simple to operation.
Concrete technical scheme is as follows:
A kind of visual configuration parametric technique, is applied to wireless device based on linux system, wherein, it is provided that a mutual subsystem System, creates an operation interface in described interactive subsystem;
One kernel is provided;Described kernel is connected with described operation interface by an interface;
Described interface includes the order configuring described wireless device, obtains described order, according to described life in described interface Order forms corresponding configuration item, and is stored in a configuration file by institute's configuration item;
Described configuration item in described configuration file is shown in described operation interface, selects for user;
Further comprising the steps of:
Step S1, in described operation interface, detection user selection operation, if it has not, then continue executing with step S1;
Step S2, operate according to the selection of user, obtain the described described configuration item selecting operation corresponding;
Step S3, by a control module, described configuration item is sent to described interface;
Step S4, described interface are converted into the described order of correspondence according to described configuration item, and send described order to described Kernel.
Preferably, described configuration file is wireless.h file.
Preferably, described operation interface provides a basic configuration interface;
Described basic configuration interface is in order to show based on the described configuration item associated by iwconfig order.
Preferably, described operation interface provides an advanced configuration interface;
Described advanced configuration interface is in order to show based on the described configuration item associated by iwlist order.
Preferably, described operation interface provides an advanced configuration interface;
Described advanced configuration interface is in order to show based on the described configuration item associated by iwpriv order.
Preferably, described operation interface is based on lwe(Linux Wireless Extensions, the work of radio network configuration Tool) foundation of interface and described kernel is connected.
Preferably, described control module is ioctl function.
Preferably, operated interface is by GTK+(GIMP Toolkit, a set of graphical tool p acket across kinds of platform) instrument Bag establishment forms.
Preferably, operated interface is by QT(cross-platform C++ graphical user interface application program development framework) Development Framework Establishment forms.
Preferably, described operation interface also provides for a feedback display interface, in order to show described kernel by described interface Feedack.
Technique scheme has the advantage that or beneficial effect: can be easily and fast by configuration item pair by operation interface The order answered sends to kernel, it is achieved the radio configuration to wireless device, overcomes and passes through Wireless in prior art The Tools instrument defect to the inconvenience of kernel setup complex operation.
Accompanying drawing explanation
With reference to appended accompanying drawing, more fully to describe embodiments of the invention.But, appended accompanying drawing be merely to illustrate and Illustrate, be not intended that limitation of the scope of the invention.
Fig. 1 is the flow chart of the present invention a kind of visual configuration parametric technique embodiment.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on Embodiment in the present invention, those of ordinary skill in the art obtained on the premise of not making creative work all its His embodiment, broadly falls into the scope of protection of the invention.
It should be noted that in the case of not conflicting, the embodiment in the present invention and the feature in embodiment can phases Combination mutually.
The invention will be further described with specific embodiment below in conjunction with the accompanying drawings, but not as limiting to the invention.
The present invention includes a kind of visual configuration parametric technique.
The embodiment of a kind of visual configuration parametric technique, is applied to wireless device based on linux system, wherein, carries For an interactive subsystem, in interactive subsystem, create an operation interface;
One kernel is provided;Kernel is connected with operation interface by an interface;
Interface includes the order configuring wireless device, obtains order in interface, forms corresponding configuration item according to order, and Institute's configuration item is stored in a configuration file;
Configuration item in configuration file is shown in operation interface, selects for user;
As it is shown in figure 1, further comprising the steps of:
Step S1, in operation interface in, detection user selection operation, if it has not, then continue executing with step S1;
Step S2, operate according to the selection of user, obtain the configuration item selecting operation corresponding;
Step S3, by a control module, configuration item is sent to interface;
Step S4, interface are converted into the order of correspondence according to configuration item, and send commands to kernel.
In technique scheme, wireless device based on linux system is carried out wireless parameter configuration time, generally with Family interactive subsystem realizes by keying in related command the configuration of the wireless parameter to wireless device, needs during its configuration User possesses certain Professional knowledge, therefore operation very inconvenience;
The present invention be then in user interactive system by create visual operation interface, and provide interface make operation interface with The kernel of wireless device connects, and wherein interface includes the order configuring wireless device, the most square in operation interface Just the kernel that sends commands to realizes quickly, carrying out especially by the following manner, and the order in interface is formed corresponding joining Put item and configuration item is stored in configuration file, from configuration file, obtaining configuration item, and configuration item is shown in operation circle In face, person checks to facilitate user, after complete being shown in of configuration item operates in interface, can initialize operation interface Operation, and after having initialized, enter the major cycle at operation interface, enter in major cycle mainly in order to real in operation interface Time detection user whether have selected configuration item, after detecting that user have selected configuration item, by configuration item send to connecing Mouthful, the order corresponding with this configuration item is then sent to kernel by interface according to the configuration item sent, it is achieved to wireless device The configuration of wireless parameter.
In one preferably embodiment, configuration file is wireless.h file.
In technique scheme, by configuration file, the command definition in interface can be become the configuration item of correspondence, and will join Put item to be shown in the form of a list in operation interface, can conveniently select for user.
In one preferably embodiment, operation interface provides a basic configuration interface;
Basic configuration interface is in order to show based on the configuration item associated by iwconfig order.
Advanced configuration interface is in order to show based on the configuration item associated by iwlist order.
Preferably, operation interface provides an advanced configuration interface;
In technique scheme, the configuration item of iwconfig order association mainly realizes the wireless parameter to wireless device and carries out base This configuration.
In one preferably embodiment, operation interface provides an advanced configuration interface;
Advanced configuration interface is in order to show based on the configuration item associated by iwlist order.
In one preferably embodiment, operation interface provides an advanced configuration interface;
Advanced configuration interface is in order to show based on the configuration item associated by iwpriv order.
In technique scheme, advanced configuration interface mainly shows and includes that iwlist order and iwpriv order are closed respectively The configuration item of connection, wherein the wireless parameter of wireless device is mainly scanned, arranges by the configuration item associated by iwlist order Go out frequency, bit rate, key etc.;And the configuration item associated by iwpriv order mainly operates the specific driving of wireless device.
In technique scheme, operation mainly includes basic configuration interface and advanced configuration interface in interface, and each Configuration item under configuration interface shows at operation interface the most in the form of a list, thus facilitates user to select at operation interface Configuration item therein sends to kernel.
In one preferably embodiment, operation interface is connected with kernel foundation based on lwe interface.
In technique scheme, lwe interface is that instrument based on radio network configuration is connected with kernel foundation
In one preferably embodiment, control module is ioctl function.
In one preferably embodiment, operated interface is created by GTK+ tool kit and forms, wherein GTK+ tool kit It it is a set of graphical tool across kinds of platform.In one preferably embodiment, operated interface is created by QT Development Framework Form, the cross-platform C++ graphical user interface application program development framework that wherein QT Development Framework is developed by Trolltech.
In one preferably embodiment, operation interface also provides for a feedback display interface, in order to be shown by interface Kernel feedack.
In technique scheme, after configuration item is issued in kernel, if user is wanted to know that configuration item is to wireless device Wireless parameter configuration whether success, now can be by sending an inquiry request in operation interface to kernel, wherein, this inquiry Request is issued to kernel by calling ioctl function, when kernel receives this inquiry request, and can be by performing call back function such as Iw_hander, and by netlink function by the configuration state formation one feedback feedback letter of the wireless parameter about this wireless device Breath sends to user interface and feedback information is shown in user interface.
In a particular embodiment, after user creates user interface in user's interactive subsystem, wherein user Operation can include basic configuration interface and advanced configuration interface in interface, and user can as required, in corresponding configuration circle Selecting corresponding configuration item in face, sent configuration item to interface by ioctl function, configuration item is converted into correspondence by interface Order, the kernel of transmission to wireless device completes the configuration of the wireless parameter to wireless device;
If now user wants to know the configuring condition of the wireless parameter of wireless device, time the most successful, by operation circle Selecting an inquiry request, operation interface to send inquiry request to kernel by calling loctl function in face, kernel is looked into according to this The situation that wireless parameter about this wireless device configures, by netlink function, is formed a feedback information and sends by request of asking To user interface feedback display interface that feedback information is shown in user interface.
The foregoing is only preferred embodiment of the present invention, not thereby limit embodiments of the present invention and protection model Enclose, to those skilled in the art, it should can appreciate that done by all utilization description of the invention and diagramatic content Scheme obtained by equivalent and obvious change, all should be included in protection scope of the present invention.

Claims (10)

1. a visual configuration parametric technique, is applied to wireless device based on linux system, it is characterised in that provide one Interactive subsystem, creates an operation interface in described interactive subsystem;
One kernel is provided;Described kernel is connected with described operation interface by an interface;
Described interface includes the order configuring described wireless device, obtains described order, according to described life in described interface Order forms corresponding configuration item, and is stored in a configuration file by institute's configuration item;
Described configuration item in described configuration file is shown in described operation interface, selects for user;
Further comprising the steps of:
Step S1, in described operation interface, detection user selection operation, if it has not, then continue executing with step S1;
Step S2, operate according to the selection of user, obtain the described described configuration item selecting operation corresponding;
Step S3, by a control module, described configuration item is sent to described interface;
Step S4, described interface are converted into the described order of correspondence according to described configuration item, and send described order to described Kernel.
Visual configuration parametric technique the most according to claim 1, it is characterised in that described configuration file is Wireless.h file.
Visual configuration parametric technique the most according to claim 1, it is characterised in that described operation interface provides one basic Configuration interface;
Described basic configuration interface is in order to show based on the described configuration item associated by iwconfig order.
Visual configuration parametric technique the most according to claim 1, it is characterised in that described operation interface provides one senior Configuration interface;
Described advanced configuration interface is in order to show based on the described configuration item associated by iwlist order.
Visual configuration parametric technique the most according to claim 1, it is characterised in that described operation interface provides one senior Configuration interface;
Described advanced configuration interface is in order to show based on the described configuration item associated by iwpriv order.
Visual configuration parametric technique the most according to claim 1, it is characterised in that described operation interface connects based on lwe Mouth is set up with described kernel and is connected.
Visual configuration parametric technique the most according to claim 1, it is characterised in that described control module is ioctl letter Number.
Visual configuration parametric technique the most according to claim 1, it is characterised in that operated interface is by GTK+ tool kit Establishment forms.
Visual configuration parametric technique the most according to claim 1, it is characterised in that operated interface is by QT Development Framework Establishment forms.
Visual configuration parametric technique the most according to claim 1, it is characterised in that described operation interface also provides for one Feedback display interface, in order to show described kernel feedack by described interface.
CN201610650659.0A 2016-08-10 2016-08-10 Visual parameter configuration method Pending CN106330530A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610650659.0A CN106330530A (en) 2016-08-10 2016-08-10 Visual parameter configuration method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610650659.0A CN106330530A (en) 2016-08-10 2016-08-10 Visual parameter configuration method

Publications (1)

Publication Number Publication Date
CN106330530A true CN106330530A (en) 2017-01-11

Family

ID=57739735

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610650659.0A Pending CN106330530A (en) 2016-08-10 2016-08-10 Visual parameter configuration method

Country Status (1)

Country Link
CN (1) CN106330530A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106681740A (en) * 2017-01-12 2017-05-17 合肥杰美电子科技有限公司 Method and system for visualized instruction configuration
CN108345459A (en) * 2017-01-22 2018-07-31 北京国双科技有限公司 A kind of site deployment method and device
CN109117224A (en) * 2018-07-26 2019-01-01 深信服科技股份有限公司 A kind of method and default Virtual terminal for graphically changing configuration in console
CN111142903A (en) * 2019-12-23 2020-05-12 杭州安恒信息技术股份有限公司 Configuration file interactive updating method and device based on file comparison

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1601970A (en) * 2003-09-23 2005-03-30 华为技术有限公司 General command line inputting device based on man-machine interactive languages, and its method
CN101198137A (en) * 2007-12-25 2008-06-11 中兴通讯股份有限公司 Background order processing apparatus and method
CN101227323A (en) * 2008-01-15 2008-07-23 中兴通讯股份有限公司 System and method for implementing synchronous operating data of interface collocation and command line collocation
CN104468281A (en) * 2014-12-24 2015-03-25 上海斐讯数据通信技术有限公司 Routing information protocol simulator and routing information protocol communication test method thereof
CN104852833A (en) * 2015-06-04 2015-08-19 上海斐讯数据通信技术有限公司 Network protocol stack management method and system in Linux system
CN105373386A (en) * 2015-11-25 2016-03-02 广州华多网络科技有限公司 Processing method and device of command line program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1601970A (en) * 2003-09-23 2005-03-30 华为技术有限公司 General command line inputting device based on man-machine interactive languages, and its method
CN101198137A (en) * 2007-12-25 2008-06-11 中兴通讯股份有限公司 Background order processing apparatus and method
CN101227323A (en) * 2008-01-15 2008-07-23 中兴通讯股份有限公司 System and method for implementing synchronous operating data of interface collocation and command line collocation
CN104468281A (en) * 2014-12-24 2015-03-25 上海斐讯数据通信技术有限公司 Routing information protocol simulator and routing information protocol communication test method thereof
CN104852833A (en) * 2015-06-04 2015-08-19 上海斐讯数据通信技术有限公司 Network protocol stack management method and system in Linux system
CN105373386A (en) * 2015-11-25 2016-03-02 广州华多网络科技有限公司 Processing method and device of command line program

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106681740A (en) * 2017-01-12 2017-05-17 合肥杰美电子科技有限公司 Method and system for visualized instruction configuration
CN108345459A (en) * 2017-01-22 2018-07-31 北京国双科技有限公司 A kind of site deployment method and device
CN108345459B (en) * 2017-01-22 2021-09-17 北京国双科技有限公司 Site deployment method and device
CN109117224A (en) * 2018-07-26 2019-01-01 深信服科技股份有限公司 A kind of method and default Virtual terminal for graphically changing configuration in console
CN111142903A (en) * 2019-12-23 2020-05-12 杭州安恒信息技术股份有限公司 Configuration file interactive updating method and device based on file comparison
CN111142903B (en) * 2019-12-23 2023-09-22 杭州安恒信息技术股份有限公司 Configuration file interactive updating method and device based on file comparison

Similar Documents

Publication Publication Date Title
CN106330530A (en) Visual parameter configuration method
KR101975844B1 (en) Hair dyeing system using smart device
KR102207443B1 (en) Method for providing graphic user interface and apparatus for the same
CN106855797A (en) The method to set up and device of a kind of interface element color
CN105745649A (en) Link insertion and link preview features
CN103428007B (en) A kind of method and device setting up communication group
CN105677351B (en) The compatible display methods of multiwindow and device
CN106850719A (en) A kind of data transmission method and device
CN107274587A (en) The display methods and device, clothes washing system and storage medium of free time laundry machine information
CN1787560B (en) Mobile terminal having user assignable hot keys and method for using same
CN104219553A (en) Method and device for remote control of intelligent set top box
CN104640231A (en) Wireless network setting method and wireless network setting system of intelligent household electrical appliance
CN102982826A (en) Method and device for searching and selecting blue-ray player
US11233893B2 (en) Communication system selection
CN104469530A (en) Method for setting menus in smart television based on voice control
US8762866B2 (en) Remote paint mixing controller
CN106462330A (en) Application workflow framework
CN105573593A (en) Shortcut menu display method and apparatus
CN104618818A (en) Television front page setting method and device
CN108391233A (en) A kind of geographical location sharing method, apparatus and system
CN106326476A (en) Information processing method and device
CN103647879B (en) A kind of method and terminal for showing application content
CN103049208A (en) Method, device and mobile terminal for customizing rapid touch operation
CN105354508A (en) Mobile terminal safety control method and apparatus
CN104360749A (en) Method and device for inputting information through mobile terminal device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170111