CN100373905C - Pattern terminal scanner controlling method - Google Patents

Pattern terminal scanner controlling method Download PDF

Info

Publication number
CN100373905C
CN100373905C CNB2005100121115A CN200510012111A CN100373905C CN 100373905 C CN100373905 C CN 100373905C CN B2005100121115 A CNB2005100121115 A CN B2005100121115A CN 200510012111 A CN200510012111 A CN 200510012111A CN 100373905 C CN100373905 C CN 100373905C
Authority
CN
China
Prior art keywords
scanner
terminal
graphic terminal
control
graphic
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.)
Expired - Fee Related
Application number
CNB2005100121115A
Other languages
Chinese (zh)
Other versions
CN1710928A (en
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.)
ZIFENG SCIENCE AND TECHNOLOGY DEVELOPMENT Co Ltd BEIJING
Original Assignee
ZIFENG SCIENCE AND TECHNOLOGY DEVELOPMENT Co Ltd BEIJING
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 ZIFENG SCIENCE AND TECHNOLOGY DEVELOPMENT Co Ltd BEIJING filed Critical ZIFENG SCIENCE AND TECHNOLOGY DEVELOPMENT Co Ltd BEIJING
Priority to CNB2005100121115A priority Critical patent/CN100373905C/en
Publication of CN1710928A publication Critical patent/CN1710928A/en
Application granted granted Critical
Publication of CN100373905C publication Critical patent/CN100373905C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Facsimiles In General (AREA)

Abstract

The present invention can directly complete the control of a scanner on a terminal, which is realized by compiling a specific control program in an embedded system of a graphic terminal. The control program directly visits a USB port on the terminal and controls scanner hardware connected to the port through a USB2.0 interface protocol. A Socket service program (a control service of the scanner) is run on the terminal. The service program is used for listening network requests. When the scanning service program listens the requests, request data are firstly received. Then, a requested message is parsed. Control information is extracted from the message, and the control information is transferred to a control logic module of the scanner for scanning.

Description

Pattern terminal scanner controlling method
Technical field
The present invention relates to graphic terminal control field, relate in particular to graphic terminal gated sweep instrument field.
Background technology
Since the nineties, traditional character terminal has obtained sufficient application from eighties of last century.But traditional character terminal can only character display.Along with the continuous growth of customer demand, simple character terminal can not satisfy the use needs, so the character terminal of some simple line lattice occurred showing.Afterwards, occurred can color display graphic terminal.
Graphic terminal is the terminal of future generation with respect to the Unix character terminal, can display graphics user interface (Graphic User Interface is called for short GUI) on graphic terminal.
As shown in Figure 1, said here graphic terminal is meant the graphic terminal of Windows operating system figure terminal or Unix/Linux operating system X-Server.By graphic terminal, can be in the resource on the access server of long-range use graphical window interface.
Graphic terminal is connected with server by Ethernet, can connect simple input equipment such as keyboard, mouse on graphic terminal.Graphic terminal itself contains central processing unit (CPU), basic hardwares such as internal memory, and the operation embedded OS (as Windows CE/Linux etc.).
After graphic terminal is opened, generally need to connect and sign in on the server.After the login, be the displaying of interface on the local terminal of server end at interface shown on the graphic terminal, the program that on graphic terminal, shows and move, reality is moved at server end.
Graphic terminal generally has the repertoire of traditional character terminal, and can the display graphics user interface, but certain limitation is in use still arranged, and shows that mainly graphic terminal can not that works controls external equipment easily as PC.
Causing graphic terminal can not conveniently control the reason of external equipment, mainly is that reality does not operate on the terminal, but operates on the background server because of the application program that is presented on the terminal.Therefore the operated hardware resource of program is actually equipment on the server.(for example, the file of editing on graphic terminal is to be kept on the hard disk of server after the preservation.) like this, just make the directly hardware resource on the control terminal of graphic terminal.
Summary of the invention
The present invention is intended to solve this limitation of graphic terminal, successfully is implemented in gated sweep instrument on the graphic terminal.
The invention provides a kind of method of graphic terminal gated sweep instrument, described graphic terminal comprises scanner control service routine module and scanner bottom control logic module, graphic terminal is connected with remote server by Ethernet, and scanner is connected on the graphic terminal, and described method comprises:
Operation scanner control service routine is monitored network requests on graphic terminal;
When the scan service program listens to request, receive request msg earlier, the message of analysis request therefrom extracts control information then, and control information is passed to the scanner control logic module, scans.
After scanning is finished, earlier graph data is stored in the internal memory of terminal, by the scanner service routine this view data is sent to client by the socket connection of having set up again---promptly serve a side who sends scan request and receive view data to scanner control.
Scanning step comprises: initialization scan equipment at first, and next is provided with sweep parameter, and scanner scans then, preserves graph data at last and returns.
Scanner is connected on the USB interface of graphic terminal.
Description of drawings
Fig. 1 is the connected mode of graphic terminal;
Fig. 2 is a graphic terminal gated sweep instrument hardware connection diagram;
Fig. 3 is the hardware block diagram of graphic terminal gated sweep instrument structure;
Fig. 4 is the scanner workflow diagram;
Fig. 5 is scanner control service routine flow chart;
Fig. 6 is the flow chart of scan control application program;
Fig. 7 is the system schematic with a plurality of graphic terminals.
Embodiment
Following examples are used to illustrate the present invention, but are not used for limiting the scope of the invention.
Accompanying drawing 1 shows the connected mode of graphic terminal.
Accompanying drawing 2 is the hardware connection diagram of graphic terminal gated sweep instrument.As shown in the figure, graphic terminal is connected according to common connected mode with server.Scanner is connected on the USB interface of graphic terminal.
The program that is presented on the graphic terminal still operates on the server, and in needs scanning, the scanner of control connection on terminal finished scanning automatically.
Hardware and software aspect with reference to accompanying drawing 1 and 2 pairs of graphic terminal gated sweep of accompanying drawing instrument technology when as follows describes respectively.
Graphic terminal scan control technology hardware aspect is by constituting as the lower part:
● server---application program running environment
● graphic terminal---application program display environment and operating environment
● scanner---be connected on the graphic terminal, be used for the graph scanning collection.
Graphic terminal scan control technical software aspect is by constituting as the lower part:
● the graphical interfaces application program---run on server end, be shown on the graphic terminal
● bottom-layer network api function storehouse---provide by operating system
● scanner control service routine---operate in the graphic terminal embedded OS, be responsible for monitoring scan request.
● scanner bottom control logic module---operate in the graphic terminal embedded OS, be responsible for gated sweep instrument hardware.
To describe the detailed process of graphic terminal gated sweep instrument below in detail.As shown in Figure 2, at first realize scanner bottom control logic module, promptly on terminal, directly finish scanner control.This can realize by write specific control program in the graphic terminal embedded system.USB port (not shown) on the direct access terminal of this control program is by the scanner hardware of USB2.0 interface protocol control connection on this port.This module has following major control interface---and be the module interface function, supply external module or routine call:
1. the sweep parameter interface is set: be used to finish the setting of scanner Control Parameter, be kept in the memory variable of scanning control instrument bottom control logic module.
Input parameter: the scanner Control Parameter comprises scanning area coordinate, scanning accuracy, number of colours etc.
Return results: successfully indicate or the failure error code
Logical process: input parameter is kept in the memory variable
2. scan interface: according to the sweep parameter that has been provided with, the gated sweep instrument is finished scanning.Scanner specifically drives process, generally can be because of the common difference to some extent of scanner brand.The scanner hardware driver is provided by scanner hardware manufacturer.Therefore, directly call scanner hardware according to hardware class here and drive API (ApplicationProgramming Interface---application program is weaved into interface).Referring to accompanying drawing 4. input parameters: do not have
Output parameter: the view data that scanning obtains
Return parameters: successfully indicate or the failure error code
Logical process: main process comprises following content: check that scanner connection status → initialization scan instrument hardware → read sweep parameter information → send Control Parameter → startups scanner to scanner hardware begins scanning → circulation and receives view data and scan stop signal until been scanned → transmissions, and end scans → copy view data to output buffer → function end.
Operation-Socket sockets services program is a scanner control service routine on terminal.At first, service starts, the initialization network.Secondly, this scanner control service routine is used to monitor network requests.When scanner control service routine listens to request, receive the message data of request earlier, the message data of analysis request therefrom extracts control information then, and control information is passed to scanner bottom control logic module, scans.After scanning is finished, earlier graph data is stored in the internal memory of terminal, by the scan service program this view data is sent to client by the socket connection of before having set up again.Referring to accompanying drawing 5.
The main logic of scanner control service routine: service routine starts → reads configuration information (for example Socket port, buffer size etc.) → create socket socket handle → initialization socket socket handle → binding listening port, enters listening state.
When service routine receives connection request, enter in the following processing module.
The scan request processing module:
Input parameter: the socket socket handle that has connected
Output parameter: do not have
Return parameters: successfully indicate or the failure error code
Logical process: receive request msg → analysis request data, what obtain scanner Control Parameter → call scanner bottom control logic module is provided with the sweep parameter interface, transmit the scanner Control Parameter, finish being provided with → call the scan interface of scanner bottom control logic module, scan → the reads image data buffering area, obtain view data → transmission view data and return to client (being the request end) → function
After finishing above step, can be in the application program of terminal server end, under the situation of given IP address of terminal, the scan service on the access terminal is finished scanning.When application program is moved with terminal pattern, can directly obtain the IP address of current terminal by operating system bottom api function, like this, just can directly visit the scan service on the current terminal, and then finish scanning.
Application program gated sweep process main modular is described below (referring to accompanying drawing 6)
Input parameter: the scanner Control Parameter comprises scanning area coordinate, scanning accuracy, number of colours etc.
Output parameter: the view data that scanning obtains
Return parameters: successfully indicate or the failure error code
Logical process: call operation system api function, obtain IP address of terminal → establishment client Socket socket handle → according to IP address of terminal, set up socket to connect → become the data message → scan service end that sends datagram → wait for to return the data that view data → circulation receives the images serve end scan setting model parameter, up to receiving → disconnect Socket connection → output image data, function returns
Adopt the present invention, a station server can connect many graphic terminals, can connect (or a not connecting) scanner on every graphic terminal, independently controls on terminal, as shown in Figure 7.
Along with popularizing of graphical application interface, growing field adopts graphic terminal as office equipment.Gated sweep instrument on graphic terminal can enlarge the scope of application of graphic terminal, saves hardware input and maintenance cost greatly.
Here the present invention is described in detail.However, what it will be appreciated by those skilled in the art that is can make a lot of modifications to the present invention under the situation that does not break away from the spirit and scope of the present invention.Therefore, cover all these variation and modifications within the spirit and scope of the present invention by additional claim.

Claims (4)

1. the method for a graphic terminal gated sweep instrument, described graphic terminal comprises scanner control service routine module and scanner bottom control logic module, graphical interfaces application program display module, graphic terminal is connected with remote server by Ethernet, scanner is connected on the graphic terminal, described graphical interfaces application program runs on server end, be shown on the described graphic terminal, described method comprises:
Operation scanner control service routine is monitored network requests on graphic terminal;
When the scan service program listens to request, receive request msg earlier, the message of analysis request therefrom extracts control information then, and control information is passed to the scanner control logic module, scans.
2. the method for claim 1 also comprises step: after scanning is finished, earlier graph data is stored in the internal memory of terminal, by the scanner service routine this view data is sent to client by the socket connection of having set up again.
3. the method for claim 1, wherein scanning step comprises: initialization scan equipment at first, next is provided with sweep parameter, and scanner scans then, preserves graph data at last and returns.
4. the method for claim 1, wherein scanner is connected on the USB interface of graphic terminal.
CNB2005100121115A 2005-07-07 2005-07-07 Pattern terminal scanner controlling method Expired - Fee Related CN100373905C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100121115A CN100373905C (en) 2005-07-07 2005-07-07 Pattern terminal scanner controlling method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100121115A CN100373905C (en) 2005-07-07 2005-07-07 Pattern terminal scanner controlling method

Publications (2)

Publication Number Publication Date
CN1710928A CN1710928A (en) 2005-12-21
CN100373905C true CN100373905C (en) 2008-03-05

Family

ID=35707097

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100121115A Expired - Fee Related CN100373905C (en) 2005-07-07 2005-07-07 Pattern terminal scanner controlling method

Country Status (1)

Country Link
CN (1) CN100373905C (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116932415B (en) * 2023-09-15 2023-12-05 统信软件技术有限公司 Scanner application development method, computing device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003125154A (en) * 2001-10-18 2003-04-25 Sony Corp System, method and program for managing scanner, and computer-readable storage medium with the management program of the scanner recorded thereon
JP2003219089A (en) * 2002-01-23 2003-07-31 Seiko Epson Corp Control apparatus for electronic device
CN1122241C (en) * 1998-11-26 2003-09-24 鸿友科技股份有限公司 Image processing system
US20040120278A1 (en) * 2002-12-18 2004-06-24 Microsoft Corporation Method and apparatus for scanning in wireless computing devices

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1122241C (en) * 1998-11-26 2003-09-24 鸿友科技股份有限公司 Image processing system
JP2003125154A (en) * 2001-10-18 2003-04-25 Sony Corp System, method and program for managing scanner, and computer-readable storage medium with the management program of the scanner recorded thereon
JP2003219089A (en) * 2002-01-23 2003-07-31 Seiko Epson Corp Control apparatus for electronic device
US20040120278A1 (en) * 2002-12-18 2004-06-24 Microsoft Corporation Method and apparatus for scanning in wireless computing devices

Also Published As

Publication number Publication date
CN1710928A (en) 2005-12-21

Similar Documents

Publication Publication Date Title
US7539785B2 (en) Network device manager
CN101908989B (en) A kind of control method of intelligent appliance
CN101652742B (en) Remoting of windows presentation framework based applications in a non-composed desktop
US20100077085A1 (en) Systems and method for configuring display resolution in a terminal server environment
US20090210482A1 (en) Framework for Rendering Plug-ins in Remote Access Services
US20090006977A1 (en) Method and System of Computer Remote Control that Optimized for Low Bandwidth Network and Low Level Personal Communication Terminal Device
CN102362477A (en) Method for the remote sharing of computer office(s)
CN102664937A (en) Cloud computing graphic server and cloud computing graphic service method
US20050021795A1 (en) Shared device control method and server-client system
CN104199723A (en) Camera mapping method based on virtual equipment
CN100373905C (en) Pattern terminal scanner controlling method
CN114880136A (en) Scanner using method and device, computing equipment and storage medium
CN101344741A (en) Program determining apparatus and program determining method
US6754695B2 (en) Server device that manages a state of a shared device, and method of controlling same
US8370434B2 (en) Workflow system and method of controlling the same
CN102968807A (en) Automatic image generating method and automatic image generating system
JP2000293622A (en) Method and device for image processing and storage medium
US20020067224A1 (en) System and method for scanner executing scanning
CN102387118B (en) A kind of data output method and device
JP3706762B2 (en) Display processing method, data processing apparatus, and computer-readable storage medium
JP2000293464A (en) Data processor and display processing method and storage medium for storing computer readable porogram
KR101199575B1 (en) Remote design & operation system and method thereof
CN114064057A (en) Distributed flashing system, flashing method and server
JP3998006B2 (en) Scanner control device, scanner control system, and control method
CN113657597A (en) AI training test website architecture system and AI training test method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080305

Termination date: 20140707

EXPY Termination of patent right or utility model