首页 / 专利库 / 软件 / 命令行界面 / Internet modem streaming socket method

Internet modem streaming socket method

阅读:514发布:2020-11-14

专利汇可以提供Internet modem streaming socket method专利检索,专利查询,专利分析的服务。并且An Internet client communicates with an Internet server such as an HTTP server or SMTP server through a TCP streaming socket on the Internet device with the Internet client. The TCP streaming sockets can be established through an Internet ready command line interface. The Internet ready command line interface includes nullIRnull commands that can establish, resume, release and terminate TCP sockets.,下面是Internet modem streaming socket method专利的具体信息内容。

1. An Internet device for communicating with an Internet server by an Internet client, said Internet device comprising: a command processor that accepts a command line interface; a TCP/IP stack that can be opened and closed, send and receive data; a streaming socket that can be attached to an open socket of said TCP/IP stack; and a plurality of Internet specific configuration elements to configure said command line interface; wherein said Internet device communicates with said Internet client through a serial port and said Internet device communicates with said Internet server over any of a phone system, wireless/cell/ mobile phone, data network, or local area network. 2. The Internet device of claim 1 wherein said Internet device can be operated in any of the following modes: command mode that accepts standard modem AT commands; data mode that passes input bytes to a connected remote Internet device; Internet session command mode that accepts said command line interface; and Internet session streaming socket mode that transmits data to and from said Internet server. 3. The Internet device of claim 2, wherein said command line interface uses a command line starting with an Internet ready code, followed by an Internet ready command, and terminated by a carriage-return character; and wherein a result code from executing said command line can be words or numeric characters. 4. The Internet device of claim 3, wherein said Internet ready command is selected from a group consisting of: a first command that checks whether said Internet device is Internet ready enabled; a second command that starts device connection and negotiates PPP; a third command that starts device termination and terminates PPP; a fourth command that starts device connection to said Internet server through TCP socket and transitions said Internet device to Internet session streaming socket mode; a fifth command that resumes Internet session streaming socket mode with a socket that has been connected through said T command that starts device connection to said Internet server; a sixth command that closes a socket and releases the resources allocated to the socket; a seventh command that sets up a socket resource to allow UDP communications; an eighth command that returns a UDP datagram from a UDP socket that has been set up; a ninth command that sends a UDP datagram containing desired data; a tenth command that sets and shows said Internet specific configuration elements of said Internet device; and an eleventh command that disables the Internet ready commands processing. 5. The Internet device of claim 3, wherein said result code of said Internet ready commands can be set using a standard modem &null;ATV&null; command. 6. The Internet device of claim 3, wherein said Internet ready code is &null;IR&null;. 7. The Internet device of claim 1, wherein said Internet specific configuration elements comprise: a first and a second read-only S-Register, each of which contains a 3-character string that represents a current operating status of physical sockets in said Internet device; a third and a fourth read-only S-Register, each of which contains a source port of physical sockets in said Internet device; a fifth S-Register that contains an IP address of said Internet device, said IP address is statically assigned; a sixth S-Register that contains an IP address of a primary domain name server; a seventh S-Register that contains an ASCII Hex byte storing the configuration of Internet ready command interface; an eighth S-Register that contains TCP Stream tick time used to determine when to send TCP segments; and a ninth S-Register that can store AT and IR commands so that said commands can be sent to the Internet device and be executed. 8. The Internet device of claim 7, wherein said fourth S-Register contains a valid IP address established during PPP negotiation. 9. A method of communicating to an Internet server from an Internet client through an Internet device accepting a command line interface, comprising the steps of: checking whether said Internet device supports said command line interface; dialing said Internet device to a destination number to switch said Internet device to data mode; escaping said Internet device from data mode to command mode; connecting to POP and negotiating a PPP connection and switching said Internet device to Internet session command mode; connecting to said Internet server and establishing a TCP socket connection for a streaming socket; performing necessary Internet transactions between said Internet client and said Internet server; escaping said Internet device from Internet streaming socket mode to Internet session command mode; releasing said socket connection; terminating said socket connection; and hanging up said Internet device using standard modem command. 10. The method of claim 9, wherein said command line interface uses a command line starting with an Internet ready code, followed by an Internet ready command, and terminated by a carriage-return character, and wherein a result code from executing said command line can be words or numeric characters. 11. The method of claim 10, wherein said Internet ready command is selected from a group consisting of: a first command that checks whether said Internet device is Internet ready enabled; a second command that starts device connection and negotiates PPP; a third command that starts device termination and terminates PPP; a fourth command that starts device connection to said Internet server through TCP socket and transitions said Internet device to Internet session streaming socket mode; a fifth command that resumes Internet session streaming socket mode with a socket that has been connected through said T command that starts device connection to said Internet server; a sixth command that closes a socket and releases the resource that has been allocated to said socket; a seventh command that sets up a socket resource to allow UDP communications; an eighth command that returns a UDP datagram from a socket that has been set up; a ninth command that sends a UDP datagram containing desired data; and a tenth command that sets and shows said Internet specific configuration elements of said Internet device; and an eleventh command that disables the Internet ready commands processing. 12. The method of claim 10, wherein said result code of Internet ready commands can be set using a standard modem &null;ATV&null; command. 13. The method of claim 10, wherein said Internet ready code is &null;IR&null;. 14. The method of claim 9 wherein Password Authentication Protocol is used in the step of negotiating PPP. 15. The method of claim 9, wherein while escaping to Internet session command mode further comprising connecting to a second Internet server and establishing a second TCP socket connection for a second socket; and performing necessary Internet transactions between said Internet client and said second Internet server over second socket. 16. The method of claim 9, wherein said streaming socket contains a send buffer and a streaming socket timer counter and said streaming socket performs state transition steps comprising starting streaming socket at an idle state; when connecting TCP socket to Streaming socket, resetting streaming socket timer counter and streaming socket send buffer to zero; becoming connected mode by said streaming socket; when escaping from streaming socket mode to idle state, forcing send buffer out TCP socket; when said Internet client sending character, placing received character into streaming socket send buffer and resetting the streaming socket timer counter; if send buffer is not full, keeping the received characters in streaming socket send buffer; if send buffer is full, forcing send buffer out TCP socket; if streaming socket send buffer has data, forcing out TCP socket and resetting streaming socket timer counter; and when TCP segment is received on the streaming socket from said Internet server, sending data to said Internet client. 17. The method of claim 16, wherein said streaming socket timer is between 1 millisecond and 5 seconds. 18. The method of claim 9, wherein said Internet server is an HTTP server and the step of performing necessary Internet transactions between said Internet client and said Internet server comprises the sub-steps of: performing a GET to a CGI program running on said HTTP server by said Internet client; sending parameter data to said CGI program by said Internet client; parsing said parameter data and saving it to said HTTP server by said CGI program; and returning data from said CGI program to said Internet client. 19. The method of claim 10, wherein said Internet server is an SMTP server and wherein the step of performing necessary Internet transactions between said Internet client and said Internet server comprises the sub-steps of: entering a return email address by said Internet client; entering one or more target email addresses by said Internet client; and sending data to said SMTP server by said Internet client.
说明书全文

CROSS-REFERENCE TO RELATED APPLICATIONS

&null;0001&null; This application is related to U.S. Provisional Pat. App. Ser. No. 60/247,265, filed on Oct. 16, 2000.

TECHNICAL FIELD

&null;0002&null; The invention relates generally to Internet communication technology, and more particularly to a system and method that provide streaming socket connection between Internet client and Internet server through an Internet modem.

BACKGROUND OF THE INVENTION

&null;0003&null; A standard modem can be in either one of two modes, command mode or data mode. In a command mode, no data is passed across the modem. The modem operation is controlled using standard modem &null;AT&null; or other commands. When the modem is connection to another modem, it goes into data mode. Changing back to command mode can be done with an escape sequence.

&null;0004&null; As for any standard modem, the following guidelines are used when issuing commands:

&null;0005&null; When using &null;AT&null; commands, start every command line (except the &null;A /&null; and &null;&null;&null;&null;&null; commands) with an attention (&null;AT&null;) code characters. Otherwise, the modem will not execute the command.

&null;0006&null; The commands following the &null;AT&null; prefix can be uppercase, lowercase, or a combination of both.

&null;0007&null; Always type the &null;AT&null; prefix in the same case (not &null;At&null; or &null;aT&null;).

&null;0008&null; Telephone numbers may be entered with or without punctuation.

&null;0009&null; Commands must be terminated with a carriage-return character. This is typically ASCII 13 (0x0D). However, it can be changed by modifying the modem S-Register number 3.

&null;0010&null; Each command line to a modem has the following format (with the exception of the &null;A/&null; and &null;&null;&null;&null;&null; commands):

1

<AT><Command> &null;Argument&null; &null;&null;n&null; &null;

&null;0011&null; Wherein &null;<AT>&null; is the attention code, &null;<Command>&null; is a command consisting of one letter of an ampersand (&null;&&null;), percent (&null;%&null;), or backslash (&null;&null;&null;) followed by a letter, &null;&null;Argument &null;&null; is optional information specific to the Command, and &null;&null;&null;n &null;&null; is used in some instance to qualify an Argument specific to the Command. The information in angle brackets (&null;<>&null;) must be included as part of the command line, while information in curly braces (&null;&null;&null;&null;) may or may not be necessary as part of the command line. It is also possible to string commands together in one command line. The attention code &null;AT&null; is only required at the beginning of the command line.

&null;0012&null; In the command mode, characters received from the serial port are interpreted as commands and must follow the guidelines described above. The modem transitions from the command mode to the data mode after a successful &null;ATD&null; command or after receiving a call in auto-answer mode. To transition from the data mode to the command mode, an escape, either a sequence of characters or toggling the DTR line, must be sent to the modem. This sequence is typically &null;&null;&null;&null;&null;, however, this can be changed to another repeated character by modifying the modem S-Register number 2. Typically, a delay with no data transfer of one second before and after this escape sequence is required. This time delay can be changed by modifying the modem S-Register number 12. The &null;ATO&null; command is used to resume the data mode without having to hang-up and redial.

&null;0013&null; A separate TCP socket application is usually added to establish Internet connection once the modem is in data mode. However, it is often desirable that a TCP streaming socket can be opened on the modem so that an Internet client can directly communicate with an Internet server over the socket.

SUMMARY OF THE INVENTION

&null;0014&null; The streaming sockets technology according to this invention offers power and flexibility that are not garnered by traditional service based on batch commands excited in command mode.

&null;0015&null; A streaming socket is a highly efficient way of utilizing a TCP socket over an asynchronous or synchronous serial data channel like an RS-232 serial port without the need for complex framing or encapsulation. It allows the client device to send and receive data over a TCP socket by simply reading and writing characters on the data channel. The streaming-socket doesn't need to 4 know beforehand how much data is going to be exchanged, it simply allows a free flowing stream of data between the TCP socket and the client over the data channel. It also incorporates the concept of a streaming socket timer that allows the streaming socket to efficiently packetize the serial data stream into TCP segments. The socket streaming timer is tunable to provide maximum efficiency when utilized from various types of data sources, whether interactive or machine driven. Streaming sockets are also an effective way to share the data channel with many TCP sockets.

&null;0016&null; An Internet modem provides full modem functionality in addition to the Internet connectivity. The interface to the Internet modem is identical to that of a standard modem. Standard &null;AT&null; modem commands can be issued to the Internet modem and the behavior is the same as it is for a standard modem.

&null;0017&null; The internet modem is an extension of the command mode and data mode idea used in standard modem. In an Internet ready modem, there are two Internet session modes besides the standard command mode and data mode. The Internet session modes are Internet session command mode and Internet session streaming socket mode. The standard command mode and data mode are same as these of a standard modem. A &null;T&null; command or an &null;R &null; command enables Internet session streaming socket mode. Once in Internet session streaming socket mode, any data sent to the Internet modem is sent across the TCP socket, and data received on the socket is sent from the modem. Internet session streaming socket mode can be terminated by the standard modem escape sequence or by toggling the DTR. Once in Internet session command mode, the last streaming socket can be resumed, or another streaming socket can be started or resumed.

&null;0018&null; The Internet modem dials up an Internet Service Provider (ISP) and uses data mode to send a username and password string to the ISP. Once the username and password have been accepted, it returns to command mode by escaping out of data mode. Once back in data mode, PPP is raised, a TCP connection is initiated and Internet session streaming socket mode is entered. The TCP transaction is completed via the streaming socket. Once completed, Internet session streaming socket mode is escaped back into Internet session command mode where the socket can be closed and more commands can be executed.

&null;0019&null; Several streaming sockets can be used at the same time by escaping out of one streaming socket and creating or entering another streaming socket.

&null;0020&null; The communication method provides a straightforward way to transmit and receive data with an HTTP server. This is not limited to HTML content because any ASCII data can be transmitted via HTTP. The use of CGI can make this a powerful tool. Alternatively, an Internet client can use the Internet modem to communicate to an SMTP server.

BRIEF DESCRIPTION OF THE DRAWINGS

&null;0021&null; FIG. 1 is a block schematic diagram showing a computer network comprising an Internet server and an Internet client that contains an Internet modem;

&null;0022&null; FIG. 2 is a flow diagram of a method for establishing the communication between the Internet client and the Internet server through the Internet modem;

&null;0023&null; FIG. 3 is a diagram showing sample command sequence to establish a TCP connection over a streaming socket;

&null;0024&null; FIG. 4 is a state transition diagram for the Internet ready device; and

&null;0025&null; FIG. 5 is a state transition diagram showing the flow from connecting a TCP socket to a streaming socket, using the streaming socket and closing streaming socket.

DETAILED DESCRIPTION OF THE INVENTION

&null;0026&null; A. THE COMMUNICATIONS NETWORK

&null;0027&null; FIG. 1 is a block schematic diagram that illustrates a computer network 10 comprising of an Internet client 11, an Internet modem 12, and an Internet server 18. The Internet modem 12 contains a Streaming Socket 13, a command processor 14 that interprets an Internet ready command line interface, and a TCP/IP stack 15.

&null;0028&null; The Internet client 11 communicates with the Internet modem 12 through the Internet Ready command line interface over an RS-232 serial port 17. The command processor 14 instructs the TCP/IP stack 15 to open and close sockets, send and receive data, and provide other network functionality. The command processor 14 can also switch the Interne modem to Internet session streaming socket mode where the streaming socket 13 is attached directly to an open socket in the TCP/IP stack 15 and the serial port 17. The streaming data is sent from the Internet modem 12 to the Internet server 18 through a phone system 18.

&null;0029&null; The Internet modem 12 also contains the following Internet specific S-Registers:

&null;0030&null; s0-s 1: Socket 0/1 Status

&null;0031&null; These registers read the operating status of the two physical sockets in the Internet modem 12. They each contain a 3-character string that represents their current status. These registers are read-only. Any attempt to write to them will fail silently.

&null;0032&null; s2-s3: Socket 0/1 Source Port

&null;0033&null; These registers read the source port of the two physical sockets in the Internet modem 12. They are either set by a parameter in a &null;T &null; command or randomly generated if the parameter is omitted. These registers contain a character string that represents the port number. Valid port numbers are between 1 and 655535. These registers are read-only. Any attempt to write to them will fail silently.

&null;0034&null; S4: IP Address of Internet modem

&null;0035&null; This register stores the local device IP address. If the Internet modem is used with a static IP address, this register must be set with a valid address before the &null;C&null; command is executed. If this value is not set before &null;C &null; command is executed, the Internet modem 12 negotiates a valid &null;IP&null; address during PPP negotiations. In that case, the value is only valid while PPP is active, between the execution of a &null;C&null; command and &null;D&null; command. It then shows the current negotiated IP address for the Internet modem 12. The register contains a character string that represents the IP address. The string is in the &null;dotted decimal&null; format: xxx.xxx.xxx.xxx (i.e. 192.168.2.10). When the IP address is invalid, it returns the invalid IP address: 0.0.0.0.

&null;0036&null; S5: Primary DNS Server

&null;0037&null; This register stores the primary DNS server address. If the register is not set, hostname lookups will fail. The register contains a character string that represents the IP address. The string is in the &null;dotted decimal&null; format: xxx.xxx.xxx.xxx (i.e. 192.168.2.10). When the IP address is invalid, it returns the invalid IP address: 0.0.0.0.

&null;0038&null; S6: IR Configuration Byte

&null;0039&null; This register returns or can be set with a ASCII hex byte. The byte is assembled with the following bits:

&null;0040&null; 0x01&null;Echo in Command Modes (0&null;off&null;1&null;on(default))

&null;0041&null; 0x02&null;Echo in Streaming Socket Mode (0&null;off&null;1&null;on(default))

&null;0042&null; 0x04&null;Result Codes Verbose (0&null;off&null;1&null;on(default))

&null;0043&null; 0x08&null;Internet Mode Escape Sequence (inband escape) (0&null;off&null;1&null;on(default))

&null;0044&null; 0x10&null;Internet Modem Data Mode Escape (0&null;off&null;1&null;on(default))

&null;0045&null; 0x80&null;Debug Streaming Socket Marker (0&null;off(default)&null;1&null;on)

&null;0046&null; S7: TCP Stream Tick Time

&null;0047&null; This register contains the TCP Stream Tick Time used to determine when to send TCP segments. Valid range is 0 through 255 units. Each unit is equal to 10 ms. Default is 50.

&null;0048&null; SE: EEPROM Read/Write/Play Slots

&null;0049&null; This register lets the user take advantage of non-volatile memory that may exist on the device. The EEPROM memory is divided up into slots of 32 characters each. The number of slots available is dependent on the system design, typically 8 or 16. Slot 0 is a special slot that is automatically executed on modem power-up and is useful to set the modem in a default state on power-up. Slots can be used for AT commands, IR commands, or for user storage. Data can be written to slots, read from slots, or sent to the IR and AT command processors for &null;playback&null;. Multiple commands can be stored for playback in one slot if separated by the &null;&null;&null; (backward single quote) character.

&null;0050&null; For example:

&null;0051&null; To store a reset modem command and DNS server init command that will execute on reset:

&null;0052&null; irse0&null;ATZirs5&null;192.168.1.1

&null;0053&null; To echo slot zero back:

&null;0054&null; irse0

&null;0055&null; To playback slot 1 to the IR and AT command processors:

&null;0056&null; irse1&null;

&null;0057&null; To store a dial string in slot 2:

&null;0058&null; irse2&null;ATDT9,5559874

&null;0059&null; B. THE COMMAND LINE INTERFACE

&null;0060&null; The Internet modem 12 extends the standard modem modes with two additional Internet session modes. When the Internet modem 12 is not in the Internet session modes, it behaves exactly like a standard modem, and can be in either the command mode or data mode. In the Internet session modes, the Internet modem 12 can be in either Internet session command mode or Internet session streaming socket mode. However, the Internet modem 12 does not behave exactly like a modem in these two modes. In Internet session command mode, characters received from the serial port are interpreted as commands and must follow the guidelines described above. In this case, only &null;IR&null; commands are interpreted by the command processor 14. Standard modem &null;AT&null; commands are not supported in this mode. In Internet session streaming socket mode, the Internet modem receives characters from the serial port, converts the data to Internet protocol packets, then converts them to analog signals and transmits these signals over the telephone line.

&null;0061&null; The Internet ready command line interface accepted by the command processor 14 consists of several &null;IR&null; commands. These &null;IR&null; commands follow the same guidelines as the stand modem &null;AT&null; commands:

&null;0062&null; When using &null;IR&null; commands, start every command line (except the &null;&null;&null;&null;&null; commands) with the Internet ready (&null;IR&null;) code characters.

&null;0063&null; The commands following the &null;IR&null; prefix can be uppercase, lowercase, or a combination of both.

&null;0064&null; Always type the &null;IR&null; prefix in the same case (not &null;Ir&null; or &null;iR&null;).

&null;0065&null; Commands must be terminated with a carriage-return character. This is typically ASCII 13 (0x0D). However this can be changed by modifying the modem S-Register number 3.

&null;0066&null; Each command line to a modem follows the format:

2

<IR ><Command> &null;Argument&null;

&null;0067&null; Wherein &null;<IR>&null; is the Internet ready code, &null;<Command>&null; is a command consists of one letter, and &null;&null;Argument &null;&null; is optional information specific to the Command. The information in angle brackets (&null;<>&null;) must be included as part of the command line, while information in curly braces (&null;&null;&null;&null;) may or may not be necessary as part of the command line. For the &null;IR&null; commands, it is not possible to string commands together in one command line.

&null;0068&null; The Internet ready command line interface 14 includes the following &null;IR&null; commands:

&null;0069&null; &null;C&null; command to initialize the connect mode

&null;0070&null; This command starts device connection and negotiates PPP. It may take some time to return. When finished, the Internet modem transitions to Internet session command mode. Only &null;IR&null; commands can be sent to the Internet modem after this command executes. The syntax of this command is

3

IRCn&null;username, password&null;

&null;0071&null; Wherein n can be 0 or 1 with a default value of 0. When n is set to 1, PAP authentication is used, and therefore the username and password must be provided. The username and password represents the PAP authentication user name and password respectively. The possible responses that may be returned include:

&null;0072&null; &null;CONNECT&null; (1): Connection is established

&null;0073&null; &null;ERROR&null; (4) : Invalid command format

&null;0074&null; &null;PPP FAILED&null; (80): PPP negotiation failed

&null;0075&null; &null;D&null; command to terminate the connect mode

&null;0076&null; This command starts device termination and device terminates PPP. When finished, the Internet modem 12 transitions to standard modem command mode. The syntax of this command is

&null;0077&null; IRD

&null;0078&null; No parameters are needed for this command. The possible responses that may be returned include:

&null;0079&null; &null;OK&null; (0) : Command executed. Return to standard modem command mode

&null;0080&null; &null;ERROR&null; (4) : Invalid command format

&null;0081&null; &null;PPP DOWN&null; (81): PPP is not up

&null;0082&null; &null;T&null; command to connect to TCP server

&null;0083&null; This command starts device connection to server through TCP socket. When finished, the Internet modem transitions to Internet session streaming socket mode. Any data sent to the serial port is sent through the open TCP socket. To return to Internet session command mode, the Internet modem must be escaped or the server must terminate the TCP connection. The syntax of this command is

4

IRTn, <server:port> &null;;&null;

&null;0084&null; Wherein n can be 0 or 1 to specify the socket number to connect, server is the IP address or name of the server to connect to, port is the TCP port number on the server to connect to. If the last character on the command line is a semicolon, the Internet modem 12 returns to Internet session command mode rather than the Internet session streaming socket mode. The connection is still created and alive. The possible responses that may be returned include:

&null;0085&null; &null;OK&null; (0) : Command executed. Return to command mode.

&null;0086&null; &null;CONNECT&null; (1): Connection is established

&null;0087&null; &null;ERROR&null; (4): Invalid command format

&null;0088&null; &null;PPP DOWN&null; (81): PPP is not up

&null;0089&null; &null;TCP FAILED&null; (82): TCP negotiation failed

&null;0090&null; &null;SOCKET INUSE&null; (85): Socket already in use

&null;0091&null; &null;SOCKET RESET&null; (86): Socket reset by peer

&null;0092&null; &null;R&null; command to resume socket connection

&null;0093&null; This command resumes Internet session streaming socket mode with the selected socket. The socket must have been connected with either a &null;T&null; command with a &null;;&null; argument, or &null;T&null; command and then escaped with &null;&null;&null;&null;&null;. The Internet modem 12 transitions to Internet session streaming socket mode. To return to Internet session command mode, the Internet modem 12 must be escaped or the server 18 must terminate the TCP connection. The syntax of this command is

&null;0094&null; IRRn

&null;0095&null; Wherein n can be 0 or 1 to specify the socket number to resume. The possible responses that may be returned include:

&null;0096&null; &null;OK&null; (0): Command executed. Return to command mode

&null;0097&null; &null;CONNECT&null; (1): Connection resumed

&null;0098&null; &null;ERROR&null; (4): Invalid command format

&null;0099&null; &null;PPPP DOWN&null; (81): PPP is not up

&null;0100&null; &null;SOCKET DOWN&null; (84): Socket not connected

&null;0101&null; &null;X&null; command to release socket connection

&null;0102&null; This command closes the selected socket and releases the socket resources. The syntax of this command is

&null;0103&null; IRXn

&null;0104&null; Wherein n can be 0 or 1 to specify the socket number to release. The possible responses that may be returned include:

&null;0105&null; &null;OK&null; (0) : Command executed

&null;0106&null; &null;ERROR&null; (4) : Invalid command format

&null;0107&null; &null;PPP DOWN&null; (81) PPP is not up

&null;0108&null; &null;SOCKET DOWN&null; (84): Socket not connected

&null;0109&null; &null;U&null; command to allocate UDP socket

&null;0110&null; This command sets up a socket resource to allow UDP communications. The syntax of this command is

5

IRUn, <port>

&null;0111&null; Wherein n can be 0 or 1 to specify the socket number to allocate, port is the UDP port number to listen for packets on. The possible responses that may be returned include:

&null;0112&null; &null;OK&null; (0) : Command executed.

&null;0113&null; &null;ERROR&null; (4) : Invalid command format.

&null;0114&null; &null;PPP DOWN&null; (81): PPP is not up.

&null;0115&null; &null;SOCKET BUSY&null; (90): Socket is already in use and must be released first.

&null;0116&null; &null;G&null; command to get UDP data from socket.

&null;0117&null; This command returns a UDP datagram from socket if it exists. The syntax of this command is

&null;0118&null; IRGn

&null;0119&null; Wherein n can be 0 or 1 to specify the socket to check for data on. The possible responses that may be returned include:

&null;0120&null; &null;OK&null; (0) ip:port, len:&null;data&null;cr/lf: Datagram is available and returned, wherein ip is 4 bytes, port is 2 bytes, len is 2 bytes and data is len bytes

&null;0121&null; &null;ERROR&null; (4): Invalid command format

&null;0122&null; &null;PPP DOWN&null; (81): PPP is not up

&null;0123&null; &null;NO DATA&null; (81): No data is waiting

&null;0124&null; &null;SOCKET DOWN&null; (81) : Socket not allocated

&null;0125&null; &null;P&null; command to put data out UDP socket

&null;0126&null; This command sends a UDP datagram containing desired data. The syntax of this command is

6

IRPn, <server:port>, <len: &null;data&null;>

&null;0127&null; Wherein n can be 0 or 1 to specify the socket to send data to, server is the IP address or name of the server to send datagram to, port is the UDP port number to send datagram to, len is 2 byte to specify the length of data. The possible responses that may be returned include:

&null;0128&null; &null;OK&null; (0) : Datagram was sent

&null;0129&null; &null;ERROR&null; (4) : Invalid command format

&null;0130&null; &null;PPP DOWN&null; (81) : PPP is not up

&null;0131&null; &null;NO DATA&null; (81): No data is waiting

&null;0132&null; &null;SOCKET DOWN&null; (81): Socket not allocated

&null;0133&null; &null;S&null; command to set or show S-Register

&null;0134&null; This command is used to set and show the Internet specific S-Registers of the Internet modem 12. The registers are used to store various operating parameters of the Internet modem 12. The syntax of this command is

&null;0135&null; IRSn&null;, IRSn&null;y

&null;0136&null; Wherein n specifies the Register number to access, y is the new value to set the register to.

&null;0137&null; &null;O&null; command to turn off Internet session modes

&null;0138&null; This command turns off the Internet session modes. It can not be turned back on except by reset the power. The syntax of this command is

&null;0139&null; IRO

&null;0140&null; A result code is issued from the Internet modem 12 for standard &null;AT&null; commands as well as &null;IR&null; commands. The result codes may be issued in either of two possible formats: words (the long form, also known as verbose) or numeric characters (the short form, represented by digits). The result code format is set using the &null;ATV&null; command, ATV1 (default) for words, and ATV0 for numeric characters.

&null;0141&null; Word result codes are preceded and followed by a carriage-return (typically ASCII 13 (0x0D)) and line-feed (typically ASCII 10 (0x0A)) character. These characters are defined by modem S-Registers numbers 3 and 4. Numeric character result codes are terminated by the same carriage-return character that command lines are terminated with (ASCII 13 (0x0D)).

&null;0142&null; One can modify or change the values of an S-Register from the command mode with the &null;ATSn&null;&null; command. One can read the current value of an S-Register from the command mode with the &null;ATSn&null;&null; command.

&null;0143&null; The command processor 14 interprets some standard modem &null;AT&null; commands that modify the command mode interface. These include &null;ATE&null; for setting the echo mode, &null;ATV&null; for changing the result code format, and &null;ATS&null; for changing the interface command characters. These commands affect the command mode for both the &null;AT&null; commands and the &null;IR&null; commands.

&null;0144&null; C. CONNECT INTERNET CLIENT TO INTERNET SERVER

&null;0145&null; Now referring to FIG. 2, illustrated is a flow diagram 20 of a method for establishing the communication between the Internet client 11 and the Internet server 18 through the Internet modem 12. The method includes the following steps:

&null;0146&null; 21. Checking whether an Internet modem is present.

&null;0147&null; Command to Modem: IR

&null;0148&null; Response from Modem: OK

&null;0149&null; 22. Dialing the modem to a destination number switching modem to data mode.

&null;0150&null; Command to Modem: ATDT14089614565

&null;0151&null; Response from Modem: CONNECT

&null;0152&null; The sample command is shown as 301 and the response is shown as 302 in the command sequence diagram (FIG. 3).

&null;0153&null; 23. Escaping the Internet modem from data mode to command mode.

&null;0154&null; Command to Modem: &null;&null;&null;

&null;0155&null; Response from Modem: OK

&null;0156&null; The sample command is shown as part of 302 in the command sequence diagram (FIG. 3).

&null;0157&null; 24.Connecting to the POP and negotiating a PPP connection using the &null;C&null; command and switching the Internet modem 12 to Internet session command mode.

&null;0158&null; Command to Modem: IRC1username, password

&null;0159&null; Response from Modem: CONNECT

&null;0160&null; The sample command is shown as 303 in the command sequence diagram (FIG. 3).

&null;0161&null; 25. Connecting to the Internet server 18 using the &null;T&null; command and establishing a TCP socket connection for one streaming socket.

&null;0162&null; Command to Modem: IRT0, 192.168.1.20:80,4321

&null;0163&null; Response from Modem: CONNECT

&null;0164&null; The sample command is shown as 304 in the command sequence diagram (FIG. 3).

&null;0165&null; 26. Performing necessary Internet transactions between the Internet client 11 and the Internet server 18. This step is also shown as 305 in FIG. 3.

&null;0166&null; The Internet client 11 can post data to a CGI script on an HTTP server and receive response from the server. Alternatively, the client can connect to an SMTP server and send out emails to target email addresses.

&null;0167&null; 27. Escaping the Internet modem 12 from Internet session streaming socket mode to Internet session command mode.

&null;0168&null; Command to Modem: &null;&null;&null;

&null;0169&null; Response from Modem: OK

&null;0170&null; The sample command is shown as 306 in the command sequence diagram (FIG. 3).

&null;0171&null; 28. Releasing the socket connection using the &null;X&null; command.

&null;0172&null; Command to Modem: IRX0

&null;0173&null; Response from Modem: OK

&null;0174&null; 29. Terminating the socket connection using the &null;D&null; command.

&null;0175&null; Command to Modem: IRD

&null;0176&null; Response from Modem: OK

&null;0177&null; 30. Hanging up the Internet modem 12 using standard &null;ATH&null; modem command.

&null;0178&null; Command to Modem: ATH

&null;0179&null; Response from Modem: OK

&null;0180&null; FIG. 4 shows the state transition diagram for the Internet modem. The Internet modem transits from Internet modem command mode to Internet modem data mode after a successful &null;ATD&null; modem command (401). It then transits back to Internet modem command mode following an Escape sequence (402). An &null;IRC&null; command negotiates PPP connection and transits the Internet modem to Internet session command mode (403) and an &null;IRT&null; or &null;IRR&null; command opens or resumes a TCP socket and transits the Internet modem to Internet session streaming socket mode (404). An escape sequence transits the Internet modem to Internet session command mode (405) and an &null;IRD&null; command transits the Internet modem to Internet modem command mode (406).

&null;0181&null; The method described above assumes the negotiating of a PPP connection is using the Password Authentication Protocol. However the method is equally applicable when negotiating of a PPP connection does not use the Password Authentication Protocol.

&null;0182&null; While escaping back to Internet session command mode, another command can be executed. This is shown as 307 in FIG. 3. One can create another TCP connection attached to other streaming sockets and perform interaction between the Internet client and a second Internet server by escaping out of one streaming socket.

&null;0183&null; FIG. 5 is a state diagram shows the flow from connecting a TCP socket to a streaming socket, using the streaming socket, and closing the streaming socket (leaving the TCP socket connected). The state transition comprises the following steps:

&null;0184&null; Step 501: Starting streaming socket at an idle state.

&null;0185&null; Step 502: When connecting TCP socket to Streaming socket, resetting streaming socket timer counter and streaming socket send buffer to zero.

&null;0186&null; Step 503: Streaming socket is now in connected mode.

&null;0187&null; Step 504: When escaping from streaming socket mode to idle state, forcing send buffer out TCP socket.

&null;0188&null; Step 505: When Internet client sending character, placing received character into streaming socket send buffer and resetting the streaming socket time counter.

&null;0189&null; Step 506: If send buffer is not full, keeping the received characters in streaming socket send buffer.

&null;0190&null; Step 507: If send buffer is full, forcing send buffer out TCP socket.

&null;0191&null; Step 508: If streaming socket send buffer has data, forcing out TCP socket and resetting streaming socket timer counter.

&null;0192&null; Step 509: When TCP segment is received on the streaming socket, sending data to Internet client.

&null;0193&null; The sending of TCP packets from the streaming socket buffer is controlled by a Streaming socket timer. The streaming socket timer is usually a value between 1 milliseconds and 5 seconds. When a client sends a character to the streaming socket the timer is reset and starts counting down. If the streaming socket doesn't receive a character before the timer expires it will send any data waiting to be sent across the TCP socket. This allows data to be packaged up into groups instead of sending one packet for each character or having to know beforehand how many characters the client will be sending. Slower timer values can provide efficiencies even for interactive use.

&null;0194&null; D. CONNECT TO AN HTTP SERVER

&null;0195&null; In one embodiment, the Internet server 18 is an HTTP server. A simple CGI program on the HTTP server can accept an HTTP GET with data parameters, and process the data, possibly checking for checksums included in the data, possibly parsing the data for specific information. A response can be generated on the fly and returned in the same HTTP GET transaction, possibly containing status, or configuration information. The data can then be stored in a database or simple file. This also provides a capability for dynamic formatting a presentation of the data in HTML format for a web browser. This can be done through various means, depending on the data storage and the Web tools available. The Internet client 11 established a TCP streaming socket 13 to the HTTP server 18 as described in the above section.

&null;0196&null; Once a TCP streaming socket 13 is established, the Internet client 11 may communicate with the Internet server 18 through the Internet modem 12 as illustrated in the following steps:

&null;0197&null; Performing a GET to a CGI program running on the HTTP server by the Internet client;

&null;0198&null; Sending parameter data to the CGI program by the Internet client;

&null;0199&null; Parsing the parameter data and saving it to the HTTP server by the CGI program;

&null;0200&null; Returning data from the CGI program to the Internet client 11. The data can be viewed through a PC web browser.

&null;0201&null; After the Internet transaction has been performed, the TCP streaming socket 13 can be released and the modem 12 is hang up as described in the above section.

&null;0202&null; E. CONNECT TO A SMTP SERVER

&null;0203&null; The TCP streaming socket 13 also provides a straightforward way to transmit data with an SMTP server. In another embodiment, the Internet server 18 is an SMTP server. The Internet client 11 uses the Internet modem 12 to send data to a specific email address through the SMTP server.

&null;0204&null; Once a TCP streaming socket 13 is established, the Internet client 11 may communicate with the Internet server 18 through the Internet modem 12 as illustrated in the following steps:

&null;0205&null; Entering a return email address by the Internet client 11;

&null;0206&null; Entering one or more target email addresses by the Internet client 11;

&null;0207&null; Sending data to the SMTP server by the Internet client 11. The data can be retrieved from the mailbox of the target email address.

&null;0208&null; After the Internet transaction has been performed, the TCP streaming socket 13 can be released and the modem 12 is hang up as described in the above section.

&null;0209&null; Although the invention is described herein with reference to the preferred embodiment, one skilled in the art will readily appreciate that other applications may be substituted for those set forth herein without departing from the spirit and scope of the present invention.

&null;0210&null; Accordingly, the invention should only be limited by the claims included below.

高效检索全球专利

专利汇是专利免费检索,专利查询,专利分析-国家发明专利查询检索分析平台,是提供专利分析,专利查询,专利检索等数据服务功能的知识产权数据服务商。

我们的产品包含105个国家的1.26亿组数据,免费查、免费专利分析。

申请试用

分析报告

专利汇分析报告产品可以对行业情报数据进行梳理分析,涉及维度包括行业专利基本状况分析、地域分析、技术分析、发明人分析、申请人分析、专利权人分析、失效分析、核心专利分析、法律分析、研发重点分析、企业专利处境分析、技术处境分析、专利寿命分析、企业定位分析、引证分析等超过60个分析角度,系统通过AI智能系统对图表进行解读,只需1分钟,一键生成行业专利分析报告。

申请试用

QQ群二维码
意见反馈