9 562 brands
2 694 000 user's guides


Download your manual, it's FREE! Diplodocs allows you to download several types of document in order to best use your AXIS 700 : user manual, user guide, instruction manual.
Search a brand
Advanced Search

Need help using a product?
Look at the reviews on AXIS 700

User manual AXIS 700 - NETWORK GUIDE

Diplodocs help download the user guide AXIS 700 - NETWORK GUIDE .

Download the complete user guide (38 Ko)




You may also download the following manuals related to this product:
AXIS 700


Preview of the first 3 pages of manual

You either have JavaScript turned off or an old version of Adobe Flash Player
Get the latest Flash Player.
Manual abstract: user guide AXIS 700 - NETWORK GUIDE

Detailed instructions for use are in the User's Guide.

AXIS 700 Application Integration Introduction Scanning using your AXIS 700 can be divided into two types: · · Pull Type Scanning, which is initiated from an application and performed by using the HTTP protocol Push Type Scanning, which is initiated from the control panel of your AXIS 700 and performed by using the FTP protocol. This document describes how to integrate your AXIS 700 using both of these methods. It also describes how you can use FTP to obtain, and possibly modify, a list of available profiles. It contains the following information: · Scanning - HTTP Commands and Headers Required - Pull Type Scanning - Push Type Scanning - Using Microsoft's Foundation Classes. - Using Microsoft's Internet API · Using the config.ini file to add, modify and remove profiles. Axis Communications AB September 1st, 1998 1 Table of Contents -RXVSHYGXMSR 7GERRMRK 4YPP 8]TI 7GERRMRK HTTP Command Sequence...........................................................................................3 Scanning Using MFC.....................................................................................................5 Scanning Using the WinInet API ...................................................................................6 4YWL 8]TI 7GERRMRK %GGIWWMRK XLI 0MWX SJ 7GERRMRK 4VSJMPIW 2 Scanning Once you have decided which one of the available profiles you want to use, you can proceed with the scanning. Pull Type Scanning Pull type scanning uses the HTTP protocol. To do this, you need to emulate Scan-to-Web from your application. HTTP Command Sequence When scanning from the 7GER (SGYQIRX page in your Web browser: 1. Select a profile from the profile list. 2. Click either the 7GER button or the 6IWIVZI button. A 4378 request is sent to your AXIS 700. It contains the name of the page, the name of the selected profile, and the name of the button you selected. Your AXIS 700 makes sure that: · · · · A scanner is connected and supported. The scanner is not busy. The selected profile exists. Users are allowed to do Scan-to-Web. When all of these conditions are met you will receive an HTTP response stating that the document has moved temporarily, along with the URL to the image itself. However, if some of the conditions are not met, e.g. the scanner is busy, the response will contain the complete 7GER (SGYQIRX page, including an error message at the top. If you received the 1SZIH 8IQTSVEVMP] response, you should send a +)8 request to get the URL you received in the response. Follow the steps below to scan an image to your application using your AXIS 700. 1. Send a HTTP request with, at least, the following headers: POST /user/scan/scan.shtml HTTP/1.0 Content-type: application/x-www-form-urlencoded Content-length: 40 page=scan&profileName=Color+low&scanNow= 3 The last row contains the parameters to your AXIS 700. page=scan profileName=Color+low scanNow - necessary for your AXIS 700 to process your request. - tells your AXIS 700 which profile to use. - immediate scan. No value is needed. If you replace scanNow with reserve then the scanner is reserved, but the user is required to push the 7IRH button on the front panel of your AXIS 700. This is the same as clicking the 6IWIVZI button on the 7GER (SGYQIRX page. Your AXIS 700 will respond with either status 1SZIH XIQTSVEVMP] or 3/. If you receive the 3/ response then something has gone wrong, e.g. the scanner could be busy. The content of the response is a complete 7GER (SGYQIRX page, including an error message. The 1SZIH 8IQTSVEVMP] response means that the scanning is initiated. 2. The 1SZIH 8IQTSVEVMP] response includes the URL to the scanned image. It is on the form /image.xxx where xxx is one of pdf, jpg, or tif. The table below lists the image name and MIME type for the different image types. Image Type PDF TIFF JPEG Image Name image.pdf image.tif image.jpg MIME Type application/pdf image/tiff image/jpeg Http/1.0 302 Moved Temporarily Content-Length: 169 Content-Type: text/html Location: /image.jpg Moved Temporarily

Moved Temporarily!

The requested resource has been temporarily moved to a new location.

The image data can now be retrieved by sending a +)8 request to your AXIS 700 for the URL. The request would look something like this: GET /image.jpg HTTP/1.0 Accept: image/jpeg, */* 4 Your AXIS 700 will now respond by sending you a 3/ response and image data. Scanning Using MFC Microsoft Foundation Classes (MFC) offers good support for Internet connections, especially when it comes to HTTP and FTP. As described above, scanning is performed by requesting a 4378 using HTTP. If the operation is successful, the image is returned via a redirect response. The steps below describe how a scanning is performed using MFC. If you need more information about the classes described, see the MFC documentation. The following code is not checked for errors. 1. Create a CInternetSession object: CInternetSession aSession("ScanSDK"); The parameter is a string identifying the application. An application needs only one instance of this class. 2. Using this object you can now retrieve an HTTP connection: CHttpConnection* anHttpConnection = aSession.GetHttpConnection("somescanserver", (INTERNET_PORT) 80, NULL, NULL); 3. Using this connection, you can now open a request. By default, redirect responses are handled automatically: CHttpFile* anHttpFile = anHttpConnection->OpenRequest(0, "/user/scan/scan.shtml"); The first parameter defines that a POST request shall be opened, the second is the request target. 4. Create a query string containing the parameters you want to send: CString aQueryString = "\n\npage=scan&profileName=Color+low&scanNow="; 5. Add an HTTP header which informs the HTTP server that the request contains encoded data: anHttpFile->AddRequestHeaders( "Content-type: application/x-www-form-urlencoded"); 5 6. Send the request: anHttpFile->SendRequest(NULL, 0, (void*)(const char*)aQueryString, aQueryString.GetLength()); The method will not return ????? until a response is received from the server or after a time out. 7. If the request is successful, image data will be sent back. Otherwise an HTML page containing error information will be sent. One way of testing what was sent back is to look at the Content-type. Its value can be retrieved by the following call: anHttpFile->QueryInfo(HTTP_QUERY_CONTENT_TYPE,aContType); If all went well, aContType will have the value "image/jpeg" (if JPEG is the chosen format. See table above.), otherwise "text/html". 8. Finally we are ready to receive the data: UINT bytesRead = anHttpFile->Read(buffer, MAXBUF - 1); while( nBytesRead > 0) { //Save data somewhere . . . //Read next chunk nBytesRead = anHttpFile->Read(buffer,MAXBUF -1); } Scanning Using the WinInet API If you do not want to use MFC to create an Internet application you can use the WinInet API instead. It provides basically the same functionality as MFC does and the functions in the WinInet API are very similar to those in MFC. In the steps below we describe how the API is used. For more information, see the WinInet documentation. The following code is not checked for errors. 1. Call InternetOpen to enable an Internet connection: HINTERNET anInetHandle = InternetOpen("ScanSDK", INTERNET_OPEN_TYPE_DIRECT, NULL, NULL, 0); 6 2. Create an HTTP handle by calling the InternetConnect function with the necessary parameters: HINTERNET anHTTPHandle = InternetConnect(anInetHandle, "171.16.1.185", INTERNET_DEFAULT_HTTP_PORT, "root", "pass", INTERNET_SERVICE_HTTP, 0, 0); 3. Use the HTTP handle to open a request. The second parameter indicates that it is a 4378 request and the third indicates that the target is the '/user/scan/scan.shtml' page. By default, redirect responses are handled automatically: HINTERNET anHttpRequest = HttpOpenRequest(anHTTPHandle, "POST", "/user/scan/scan.shtml", NULL, NULL, NULL, 0, 0); 4. Add an HTTP header which informs the HTTP server that the request contains encoded data: char aReqStr[] = "Content-type: application/x-www-form-urlencoded"; HttpAddRequestHeaders(anHttpRequest, aReqStr, strlen(aReqStr), 0) 5. Create a query string containing the parameters you want to send and send the request: char aQeryStr[] = "\n\npage=scan&profileName=Color+low&scanNow="; HttpSendRequest(anHttpRequest, 0, 0, aQeryStr, strlen(aQeryStr)) 7 6. If the request is successful, image data will be sent back. Otherwise an HTML page containing error information will be sent. One way of testing what was sent back is to look at the Content-type. Its value can be retrieved by the following call: HttpQueryInfo(anHttpRequest, 0, &aBuffer, &aBufferSize, HTTP_QUERY_CONTENT_TYPE); The third parameter is the address to a buffer that receives the information, and the fourth is the address to a variable containing the buffer's length. After the call it will contain the size of the information written to the buffer. If all went well, aContType will have the value "image/jpeg" (if JPEG was the chosen format (see table above). Otherwise the value will be "text/html". 7. The data can now be received: // All data has been read when (nrBytesRead == 0) while(InternetReadFile(anHttpRequest, aBuffer, aBufferSize, &nrBytesRead) && nrBytesRead > 0) { // Save data somewhere } 8. Finally, it is important to close all opened handles: InternetCloseHandle(anHttpRequest); InternetCloseHandle(anHTTPHandle); InternetCloseHandle(anInetHandle); Push Type Scanning We refer to push type scanning as scanning initiated from the control panel of your AXIS 700. The images are pushed out to a directory on an FTP server. Your application can scan the directory on the FTP server. When new images arrive, the application can, depending on information sent with the image, take the appropriate actions. For each image file written to the directory, an information file will also be written, unless you choose Include Image Information: None when defining the destination. The information file is in raw text format and it contains data about the image. Information included in the information file is · · · · Name and size of the image file. Internet address of your AXIS 700. Currently connected scanner. The name of the destination (the name appearing in the destination list). 8 · · · Scanning profile used. Paper size. Number of pages. If you selected Include Image Information: Complete, then additional information, such as resolutions and file format, is also included. Your application can use values in the information file to trigger actions. )\EQTPI SJ MRJSVQEXMSR JMPI The following example is taken from a real scanning, with the pre-defined scanning profile Text. Here, Image Information Included is set to Complete. If it was set to Basic, the Image Information part would not be present. ; AXIS 700 Parameter List, V1.10 Jul 29 1998 [General] File name File size Host address Scanner Destination Profile Paper size Number of pages [Image Information] Width Height Resolution (DPI) Bits per pixel Data type Paper orientation Format Double-sided Intensity Contrast = = = = = = = = = = = = = = = = = = branko_subasic001.tif 71413 172.19.4.22 FCPA ScanPartner 600C Branko FTP Text low Letter 2 1696 2200 200 1 Black & white Portrait CCITT G.4 Off 50 50 ; End of Parameter List It is important to notice that the information file is always written after the image file. Thus when your application processes the information file the image file itself is guaranteed to be there already. )\EQTPI A document distributing system may check the file name to see whom the image is targeted for. The file name may then be on the form name_lastNameXXX.tif, where XXX is the sequence number optionally appended by your AXIS 700. Your application can now decide whom to send the image to. )\EQTPI A fax server application can use the image name to obtain the fax number, and the file format to decide how to convert the document to fax data. See the AXIS 700 Additional Installation Note, Setting Up Your AXIS 700 for Scan-to-File for information on how to define Scan-to-File destinations. 9 Accessing the List of Scanning Profiles The profiles list is stored in the config.ini file, along with all other parameters. It can be obtained using FTP (see AXIS 700 Additional Installation Note, Reading and Writing the config.ini file). There is one group stating the number of available profiles, along with their names. In addition, there is one parameter group for each profile. To obtain all available profiles it is enough to read the file from your AXIS 700 and find the group ?4VSJMPIWA. It looks like this: [Profiles] Clear List First Profiles Profile0 Profile1 = = = = no 2 Profile-Text Profile-Color low ; yes/no The first parameter defines whether to remove all existing profiles before storing the new ones or not. The second parameter defines the number of available profiles, which are two in this case. The following tw ...

  Know our Partners   Frequently Asked Questions   Contact Diplodocs team   Last searches
Latest additions
  Sitemap
Brands starting with A B C D E F G H I J K L M N O P Q R S T U V W X Y Z #
Copyright © 2005 - 2008 - Diplodocs - All Rights Reserved.
Designated trademarks and brands are the property of their respective owners.