CN109362044A - A method of short message is sent by virtual short message cat - Google Patents

A method of short message is sent by virtual short message cat Download PDF

Info

Publication number
CN109362044A
CN109362044A CN201811320252.7A CN201811320252A CN109362044A CN 109362044 A CN109362044 A CN 109362044A CN 201811320252 A CN201811320252 A CN 201811320252A CN 109362044 A CN109362044 A CN 109362044A
Authority
CN
China
Prior art keywords
short message
information
virtual
sent
serial port
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
CN201811320252.7A
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.)
State Grid Sichuan Electric Power Co Ltd
Original Assignee
State Grid Sichuan Electric Power 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 State Grid Sichuan Electric Power Co Ltd filed Critical State Grid Sichuan Electric Power Co Ltd
Priority to CN201811320252.7A priority Critical patent/CN109362044A/en
Publication of CN109362044A publication Critical patent/CN109362044A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]

Abstract

The invention discloses a kind of methods for sending short message by virtual short message cat, successively follow the steps below: establishing virtual serial port on the application server, receive the command information that the software on application server is sent by the virtual serial port;The command information that identification virtual serial port receives, and analog answer is carried out for command information;After the completion of response, application server will need the content information sent to encode, and be subsequently sent to virtual serial port;The content information that virtual serial port is received is decoded, and is reduced into the information for needing to send;The information sent will be needed to be increased, reduced or replacement processing, and meet company information and send requirement;The information sent selection sending method will be needed to send, a kind of method sending short message by virtual short message cat is provided, when application reduces intermediate link, and the processing capacity of short message is higher, and communications are more stable, faster, more efficient.

Description

A method of short message is sent by virtual short message cat
Technical field
The present invention relates to warning systems, and in particular to a method of short message is sent by virtual short message cat.
Background technique
For the reliability and stability for ensureing types of applications business, each service server is deployed with all kinds of warning systems, For when server, business software exception, instant early warning.At present on the market mainstream alarm be usually used sound, light, short message, The modes such as mail;Wherein sound, light alarm are to reflect on the display being connected with server in real time, need someone's post in 24 hours, It could find immediately;Mail alarm, which then needs to log in mail server immediately, just can collect and check warning information, and real-time is opposite It is poor;It is also preferable that short message alarm is then not necessarily to artificial post, real-time, once system delay machine, sends an SMS to administrator immediately, pipe Reason person can make emergency processing at the first time, so alarm mode is all based on short message alarm on the market at present.
Traditional hardware short message cat accesses application server, driving is installed, in the equipment manager-of application server " Port can generate corresponding com port port numbers.Application server in a program-" short message cat configuration-" " communication interface ", selection The corresponding port numbers of equipment manager, the baud rate of " traffic rate " selection short message cat, generally 115200;Short message cat is completed to set It sets, application server can start to send short message.The work of short message cat is all based on AT instruction, when application server sends information, AT instruction is first passed through, what brand detection short message cat uses, the short message cat of different brands, and communications command is different;Make It is the mobile phone card of which operator, different operators sms center is different;The signal strength of current short message cat, signal is too It is weak to send short message etc..After all communications status are all normal, application server will need the information sent to first pass through Bit7/ 8 or UCS2 is encoded, and is instructed by AT+CMGS, the information that sends will be needed to be sent to short message cat, and short message cat will receive Information transfers information to carrier network by gsm wireless network, and carrier network sends information to target mobile phones again, To complete short message transmission.
But traditional short message alarm the drawbacks of also having its own.Its major drawbacks is as follows:
Every application server needs to develop corresponding short message cat interface, for sending short message.Currently, there is alarm on the market The application software needed all supports that this is not main problem on 90%.Every server all needs a hardware short message cat, phase When in everybody mobile phone used in everyday, for sending short message.Each server needs to spend the hardware expense of a short message cat.Each The mobile phone card of the necessary operator of short message cat, so that each short message cat is monthly fixed to spend a Monthly Fee.Performance is unstable. Current external short message cat is divided to serial ports and USB interface two classes, due to working mechanism, more than 10 days of general work will delay machine, Needing could normal use after power-off restarting.And after delay machine, administrator is difficult to find immediately, and reliability and stability are poor.Short message Cat processing capacity is poor, in high-volume transmission process, the upper limit is easily reached, thus delay machine.Short message cat short message is sent out every and sends one, All need it is synchronous with operator, check short message whether send success, retransmit next, short message send speed to expire slow, low efficiency.Short message It being sent for dispersion, amount is small, and short message expense can not decline, and every 0.1 yuan of short message rate.Note number disunity.Due to every service Device all uses different short message cards, and the note number sent out is different from.It is limited by operator's base station signal, increase machine The static radiation in room.Short message cat uses the wireless signal of operator, if will be unable to work without base station signal or dtr signal Make;The transimission power of short message cat is generally 1-1.5W simultaneously, if a large amount of use, will increase the static radiation of computer room.Network peace It is complete poor.Carrier network and enterprise network have virtually been got through using short message cat, and can not have been increased between short message cat and enterprise network Add any Prevention-Security equipment, there is very big security risk.Single carrier network.Since only one SIM card of short message cat is inserted Slot, one carrier network of selection that can only be single can not switch over if carrier network failure.It cannot in high volume send out Send short message.Due to the management of Ministry of Industry and Information and the limitation of operator, plain old telephone card cannot send short message on a large scale.Hardware short message cat It using GSM or cdma wireless signal transmitted data, is influenced by weather, environment, base station distance etc., transmits unstable, easily interruption.
In addition, being to meet the extensive needs for sending short message there are also only a few service server, sent by customization short message Module, by modes such as information Batch sending to carrier gateway, middlewares, thus solve short message cat easily crash, transmitting efficiency it is low The problem of;But can its scope of application be only limitted to current server, and in addition server use must carry out secondary development, and two Secondary exploitation is also limited by the factors such as software development environment, operating system.It can not be widely applied, secondary development is costly.
Summary of the invention
In view of the above-mentioned problems, a kind of method for sending short message by virtual short message cat is provided, it is short without hardware when applying Believe cat, solves the problems, such as that traditional SMS sender formula must configure a hardware short message cat, save hardware costs.Simulation short message cat Short message, which uses, is not necessarily to operator's mobile phone card, and solution conventional hardware short message cat, which must all configure operator's mobile phone card, to be sent Short message problem can greatly save the rental charge of short message card.As long as server hardware not delay machine, short message would not occur can not be sent The problem of, solve the problems, such as that traditional short message cat is periodically crashed.The processing capacity of short message be limited only by application server CPU and Memory, for the process performance of current server, the resource that short message cat occupies can ignore completely, solve traditional short message The problems such as cat processing capacity is low, sends too fast delay machine.Short message is sent directly to carrier network, reduces intermediate link, energy Huge construction program Batch sending short message, transmitting efficiency are high.It solves traditional short message cat short message to send slowly, the problem of transmission one by one.Energy will Short message, which is concentrated, to be sent, and using monthly payment mode, can greatly save enterprise messaging expense.Solve traditional short message cat and cannot concentrate, measure it is small, Short message takes expensive problem.Using a kind of SMS sender formula of operator, note number can realize unification.Solves traditional short message The problem of cat one-machine-one-number code.Network communication mode is typically all fiber optic communication, and not only speed is fast, stable, radiationless, is solved The problem of traditional short message cat additionally increases computer room electromagnetic radiation.Using the communication network of enterprise, pass through firewall, intrusion prevention system The security management and controls means such as system, internet behavior managing and control system, can ensure information safety very well, solve traditional short message cat network security Property difference problem.By technological means can with the network condition of real-time perception operator, once detect carrier network exception, It can dynamically switch over, reduce short message and send a possibility that interrupting.Solve traditional single operator of short message cat, failure without The problem of method switches.SMS sender number can be applied to operator, and put on record in Ministry of Industry and Information, each number can it is extensive, batch Amount sends short message, and limits daily without quantity forwarded, solves the problems, such as that traditional short message cat cannot largely send short message.Use enterprise Industry communication network, typically optical fiber networking, communication is stablized, speed is fast.Hardware short message cat is solved by weather, environment, base station The problem of distance etc. influences.Need to only develop can once use on all servers for supporting short message cat interface, no longer need to two Secondary exploitation.Solve the problems, such as software transplanting and secondary development.
The present invention is achieved through the following technical solutions:
A method of short message is sent by virtual short message cat, is successively followed the steps below:
A, virtual serial port is established on the application server, and the software on application server is received by the virtual serial port and is sent out The command information sent;
B, the command information that identification virtual serial port receives, and analog answer is carried out for command information;
C, after the completion of response, application server will need the content information sent to encode, and be subsequently sent to virtually go here and there Mouthful;
D, the content information for receiving virtual serial port is decoded, and is reduced into the information for needing to send;
E, the information sent will be needed to be increased, reduced or replacement is handled, and met company information and send requirement;
F, the information sent selection sending method will be needed to send.
The present invention is under the premise of not changing application server using short message interface, by software realization than traditional short message Cat is using more stable, more efficient, expense is lower.In order to realize that the function, the present invention need to take now as traditional short message cat It is engaged in generating a communication serial port on device, unlike, the communication serial port of hardware short message cat is necessary being, simulation short message cat Serial ports is by software, and virtual in communication server equipment manager, serial port can be repaired according to actual use Change.Its use is as true communication serial port.After virtual serial port generates, pass through the interface, so that it may in application server Software realization digital communication.Firstly, the information that need to be sended over according to application server, identifies every command information, it may be assumed that Need to know that application software wants simulation short message cat What for;Then, for simulation short message cat according to the instruction identified, analog hardware is short Letter cat carries out response, wherein the factors question and answer such as operator, cellular signal strength, duplicity response is carried out, to all conditions After response is completed, application server encodes the content information that need to be sent, and is then sent to virtual serial port, and content is believed Breath is decoded, and is reduced into the information for needing to send.
Further, a method of short message being sent by virtual short message cat, the foundation of virtual serial port in the step A Journey is as follows: providing special interface to serial port drive using Driver Development packet, connects according to the driving of serial interface Standard compilation Mouthful, naming method creates device object in driver, links to device object designated symbols, modifies registration table, is registering Grassroot project name, type and content in table are realized between virtual serial port and application server by IO control code and read write command Digital communication.
Further, a method of short message is sent by virtual short message cat, it is soft on application server in the step A The command information that part is sent is AT instruction.
Further, a method of short message being sent by virtual short message cat, the command information in the step B includes short Believe cat brand, operator's informaiton, current communication signal intensity.
Further, a method of short message being sent by virtual short message cat, virtual serial port receives in the step B The identification process of command information is as follows: the command information received being converted to character string, character string is intercepted, is removed back All characters are converted into capitalizing by vehicle, space, newline.
Further, a method of short message is sent by virtual short message cat, is carried out in the step B for command information The process of analog answer is as follows: including all instructions information that the software on application server is sent;And believed according to every instruction Breath, finishes writing corresponding response language in advance;For the command information received, the response language finished writing in advance is replied.
Further, a method of short message being sent by virtual short message cat, application server will need in the step C The coded format that the content information of transmission is encoded is Bit7/8 or UCS2.
Further, a method of short message being sent by virtual short message cat, application server will need in the step C The process that the content information of transmission is encoded is as follows: plus the length of information, encryption format, reception letter before content information header Cease cell-phone number, the short message center number, sender number of people.
Further, a method of short message is sent by virtual short message cat, receives virtual serial port in the step D The process that is decoded of content information it is as follows: length, the encryption format, reception of information are restored according to content information header file The cell-phone number of information Man, short message center number, sender number;The encryption lattice that the information content is sent by information header again Formula selects corresponding manner of decryption to be decoded, to restore the short message content that need to be sent.
Further, a method of short message being sent by virtual short message cat, the letter for sending needs in the step F Breath selects sending method according to use environment, and described sender formula includes database middle table, ODBC middle table, WEBserver With MAS platform.
Compared with prior art, the present invention having the following advantages and benefits:
1, virtual communication serial ports, the serial ports use can modify wave as computer actual communication serial ports on the server Special rate, data bit etc., the work of analog hardware short message cat, the AT instruction that identification application server sends over, and according to different AT instruction carries out correct response.Receive the information that application server sends over, and the coding staff sended over according to server Formula is decoded, and is finally reduced into the information for needing to send.
2, information is carried out secondary treatment by the present invention.According to the needs of enterprise, the information sent will be needed to be increased, subtracted Less, replacement is handled, it is made more to meet the requirement of company information transmission.
3, present invention integration popular SMS sender formula on the market, such as: database middle table, ODBC middle table, WEBserver, MAS platform.After making software migration, user selects corresponding SMS sender according to different use environments Formula, so that it may complete short message transmission.
Detailed description of the invention
Attached drawing described herein is used to provide to further understand the embodiment of the present invention, constitutes one of the application Point, do not constitute the restriction to the embodiment of the present invention.In the accompanying drawings:
Fig. 1 is flow diagram of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below with reference to embodiment and attached drawing, to this Invention is described in further detail, and exemplary embodiment of the invention and its explanation for explaining only the invention, are not made For limitation of the invention.
Embodiment 1
As shown in Figure 1, a kind of method for sending short message by virtual short message cat, successively follows the steps below:
A, virtual serial port is established on the application server, and the software on application server is received by the virtual serial port and is sent out The command information sent;Described instruction information is AT instruction, and the establishment process of virtual serial port is as follows: using Driver Development packet pair Serial port drive provides special interface, and according to serial interface Standard compilation driving interface, naming method creates in driver Device object is linked to device object designated symbols, modifies registration table, and grassroot project name, type and content in registration table are led to IO control code and read write command are crossed, realizes the digital communication between virtual serial port and application server.
B, the command information that receives of identification virtual serial port, command information includes short message cat brand, operator's informaiton, current Communication signal strength, and analog answer is carried out for command information;The identification process for the command information that virtual serial port receives is such as Under: the command information received is converted into character string, character string is intercepted, removes carriage return, space, newline, by institute There is character to be converted into capitalizing;The process for carrying out analog answer for command information is as follows: including the software hair on application server All instructions information sent;And according to every command information, corresponding response language is finished writing in advance;For the instruction letter received Breath replys the response language finished writing in advance.
C, after the completion of response, application server will need the content information sent to encode, coded format Bit7/8 Or UCS2, it is subsequently sent to virtual serial port, the process of coding is as follows: plus the length of information, encryption lattice before content information header Formula, the cell-phone number for receiving information Man, short message center number, sender number.
D, the content information for receiving virtual serial port is decoded, and is reduced into the information for needing to send, decoded process It is as follows: according to content information header file restore the length of information, encryption format, the cell-phone number for receiving information Man, in short message Heart number, sender number;The encryption format that the information content is sent by information header again, select corresponding manner of decryption into Row decoding, to restore the short message content that need to be sent.
E, the information sent will be needed to be increased, reduced or replacement is handled, and met company information and send requirement;
F, the information sent selection sending method will be needed to send, the information sent will be needed to be selected according to use environment Sending method is selected, described sender formula includes database middle table, ODBC middle table, WEBserver and MAS platform.
The present invention is under the premise of not changing application server using short message interface, by software realization than traditional short message Cat is using more stable, more efficient, expense is lower.In order to realize that the function, the present invention need to take now as traditional short message cat It is engaged in generating a communication serial port on device, unlike, the communication serial port of hardware short message cat is necessary being, simulation short message cat Serial ports is by software, and virtual in communication server equipment manager, serial port can be repaired according to actual use Change.Its use is as true communication serial port.After virtual serial port generates, pass through the interface, so that it may in application server Software realization digital communication.Firstly, the information that need to be sended over according to application server, identifies every command information, it may be assumed that Need to know that application software wants simulation short message cat What for;Then, for simulation short message cat according to the instruction identified, analog hardware is short Letter cat carries out response, wherein the factors question and answer such as operator, cellular signal strength, duplicity response is carried out, to all conditions After response is completed, application server encodes the content information that need to be sent, and is then sent to virtual serial port, and content is believed Breath is decoded, and is reduced into the information for needing to send.
Embodiment 2
Based on embodiment 1, virtual serial port is established: the Windows Driver Development packet DDK provided using Microsoft (Driver Development Kit) tool, DDK provides special interface to serial port drive, according to Electronic Industries Association (EIA) the TIA/EIA-485-A standard defined, according to serial interface Standard compilation driving interface, naming method.In driver In, creation device object, to device object designated symbols link, note: Symbolic Links are started with COM, as soon as and connect a number, adopt With COM8.When actually generating virtual serial port, also needs to check those serial ports of computer physical presence, avoid existing and occur Mistake.After having created Symbolic Links, modify registration table, HKEY_LOCAL_MACHINE HARDWARE DEVICEMAP SERIALCOMM.Grassroot project name, type and content, type REG_SZ, content are COM7, AccessPort software any in this way The serial ports can all be enumerated.By IO control code and read write command, it can be achieved with application program and communicated with computer.
After virtual serial port generates, by the interface, simulation short message cat can be with the software realization number in application server Word communication.Simulation short message cat wants analog hardware short message cat to work, firstly, identifying that application server sends over every AT and refers to It enables, it may be assumed that need to know that application software wants simulation short message cat What for.Recognition mechanism: since short message cat is serial digital communication, lead to Letter is data flow, software receives always data according to serial data method of reseptance, when receiving the carriage return character, just receiving All data are combined into a character string.Since the work of hardware short message cat is all based on AT instruction, using character string intercept method, Interception is with the character string of " AT " beginning carriage return ending.Character string is further processed again, it is simultaneous during software work to guarantee Capacitive removes carriage return, space, newline, all characters are converted into capitalizing, and character string after treatment is just needed AT instruction.Simulation short message cat carries out response according to the instruction identified, analog hardware short message cat.Simulation short message cat is included first All AT instruction for needing to use in the application software course of work, and instructed according to every AT, response language is finished writing in advance.Such as: when Application software to simulation short message cat send instruction " AT+CGMI ", simulation short message cat just reply " r n WAVECOM MODEM r N r nOK r n ", r n be new line.Each AT instruction is replied, and simulation short message cat all must be in reply content finally, returning One " OK " multiple, application software judges that reply content terminates according to " OK " character, is each key since short message sends mechanism Factor all must satisfy condition, and for some parameters not actually existed, simulation short message cat must just carry out duplicity response, Such as: server asks simulation short message cat module id, and frequency band (GSM 900, the DCS 1800) server for being supported is sent " AT+CGMM " instruction, virtual short breath cat just carry out deception response transmission " r n MULTIBAND 900E 1800 r n r NOK r n ", consciousness be currently be 900~1800 signal in band;When server asks simulation short message cat current communication signal Intensity, sends instruction " AT+CSQ ", virtual short breath cat then cheat response " r n+CSQ:28,0 r n r nOK r n ", look like Be current signal strength be 28, model intensity is fine.These responses are all just to have set in a program in advance, will not be should be Environment, hardware change and change, and purpose is exactly to tell application server, all transmission conditions are all met the requirements.
After completing to all conditions responses, application server is ready for sending information, due to the processing of short message cat Ability is limited, does not support Chinese, and the information content need to carry out transcoding, and common coded format has Bit7/8 or UCS2, the information content It will recompile, then plus in the length of information, encryption format, the cell-phone number for receiving information Man, short message before information header The contents such as heart number, sender number.At this moment server sends the instruction started with " AT+CMGS=", tells one under short message cat What item sended over is short message content;Simulation short message cat just to " r n " is replied, begins to receive information always, until receiving clothes Business device, which sends over " (char) (26) ", just to be terminated.At this moment simulation short message cat reply " r nOK r n ", Tell server receive Terminate.Simulation short message cat restores the information being collected into.Length, the encryption lattice of information are restored according to information header file Formula, the cell-phone number for receiving information Man, short message center number, sender number;The information content is sent by information header again Encryption format, select corresponding manner of decryption to be decoded, to restore the short message content that need to be sent.
The information received can be carried out secondary treatment by simulation short message cat.Such as: increase, replacement, the deletion of information.It is especially suitable The enterprise for having special requirement is closed, keyword filtration is carried out.This function is new function, and physics short message cat can not be to the secondary place of information Reason.
Simulation short message cat is integrated a variety of sending methods with operator, such as: among database middle table, ODBC The modes such as table, WEBserver, MAS platform.User can select corresponding SMS sender formula, simulation short message cat root as needed Information is sent according to the selection mode of user.
In order to ensure the reliability of information transmission, simulation short message cat develops heartbeat detection program, and principle utilizes network " ICMP " agreement constantly calls " ping " test target network, detects carrier network, interrupts once sending, is cut immediately It changes, to ensure the reliability of transmission business.This function, hardware short message cat cannot achieve.
The complete analog hardware short message cat of the present invention, as long as supporting the application server of hardware short message cat, so that it may directly use, Secondary development, the portable strong, good compatibility of software are carried out with program without corresponding to again.
The present invention is not necessarily to additional hardware short message cat, mobile phone card, so that it may send short message, directly save purchase hardware for enterprise The expense of short message cat, and monthly save the lease expenses of short message card.
All it is to be communicated by the Transmission Control Protocol of network between the present invention and operator's platform, is arranged to identical transmission Mode, so that it may realize that the concentration of short message is sent.Since network itself just has collision detection, failure retransmission mechanism, whole process is high It imitates, is fast.
Processing capacity of the invention is limited only by the CPU and memory of application server, the processing for current server The resource of performance, occupancy of the invention can ignore completely, and the chip processing capabilities of traditional short message cat are in contrast, completely It is not in a magnitude.
Short message is sent directly to carrier network by the present invention, reduces intermediate link, can huge construction program Batch sending short message, Transmitting efficiency is high.
The present invention can be achieved short message and concentrate transmission, negotiates with operator, is sent using monthly payment mode, be equivalent to transmission and get over More, every short-message fee is lower, greatlys save enterprise messaging expense.
It is unified that note number can be achieved in the present invention.Using a kind of SMS sender formula used in operation, increases, reduces clothes Business device quantity can't change SMS sender formula, note number can be fixed, especially some important enterprises such as: country Power grid, China Petroleum, Sinopec customer service note number, the brand effect that can have been brought well to enterprise.
Inventive network communication mode is only related with the networking mode of server.Currently, the networking mode of general server It is all optical fiber networking, not only speed is fast, and communication stablizes, is radiationless, will not increase additional electromagnetic radiation to computer room.Especially suitable for Some pairs of computer room electromagnetic radiation preventions require relatively high enterprise-essential computer room.
The present invention uses the communication network of server, and the communication network of general enterprises is fitted with firewall, intrusion prevention System, internet behavior managing and control system etc., there is safely very big guarantee.
The present invention can with the network condition of real-time perception operator, once detect carrier network exception, can dynamic It switches over, so that reducing short message sends a possibility that interrupting.
SMS sender number of the invention can be applied to operator, and put on record in Ministry of Industry and Information, each number can it is extensive, Batch sending short message, and limited daily without quantity forwarded.
It is of the invention portable strong, it just can be used without overlapping development.The present invention need to only develop once can be at all It holds and is used on the server of short message cat interface, no longer need to secondary development.
In traditional SMS sender formula, application server must configure a hardware short message cat, since hardware short message cat has USB interface, com interface, so server corresponding selection USB or DB9 data line is connected with short message cat.Server will need to send out The short message sent is sent to hardware short message cat, and short message cat is selected different operators, information is passed through by different mobile phone cards GSM wireless network, is transmitted to carrier network, operator network handles, forwarding and then by gsm wireless signal, will believe Breath is sent to specified mobile phone.SMS sender formula of the invention virtually generates a communication serial port on the application server, and Analog hardware short message cat is communicated with application server, and the information for obtaining application server and needing to send, solution are instructed by AT Code, then information is passed through into enterprise's fiber optic network, then carry out safety filtering through safety equipment, it is then forwarded to carrier network.Fortune Battalion's quotient's network is retransmited to specified mobile phone.Intermediate link is improved, the processing capacity of short message is higher, communications are more stable, Faster, more efficient
It is small that the present invention occupies resource;The operation is stable;Short message treatment effeciency is high;Communication transfer speeds are fast;Without static radiation;It answers It is wide with environment;Short breath mode rich interface;Software migration is not necessarily to overlapping development;Without additional hardware short message cat, mobile phone card;It is short Signal code is unified;Short-message fee is low;Save the cost etc. factors.
Above-described specific embodiment has carried out further the purpose of the present invention, technical scheme and beneficial effects It is described in detail, it should be understood that being not intended to limit the present invention the foregoing is merely a specific embodiment of the invention Protection scope, all within the spirits and principles of the present invention, any modification, equivalent substitution, improvement and etc. done should all include Within protection scope of the present invention.

Claims (10)

1. a kind of method for sending short message by virtual short message cat, which is characterized in that successively follow the steps below:
A, virtual serial port is established on the application server, receives what the software on application server was sent by the virtual serial port Command information;
B, the command information that identification virtual serial port receives, and analog answer is carried out for command information;
C, after the completion of response, application server will need the content information sent to encode, and be subsequently sent to virtual serial port;
D, the content information for receiving virtual serial port is decoded, and is reduced into the information for needing to send;
E, the information sent will be needed to be increased, reduced or replacement is handled, and met company information and send requirement;
F, the information sent selection sending method will be needed to send.
2. a kind of method for sending short message by virtual short message cat according to claim 1, which is characterized in that the step The establishment process of virtual serial port is as follows in A: special interface is provided to serial port drive using Driver Development packet, according to serial ports Interface standard writes driving interface, and naming method creates device object in driver, gives device object designated symbols chain It connects, modifies registration table, grassroot project name, type and content in registration table are realized virtual by IO control code and read write command Digital communication between serial ports and application server.
3. a kind of method for sending short message by virtual short message cat according to claim 1, which is characterized in that the step The command information that software in A on application server is sent is AT instruction.
4. a kind of method for sending short message by virtual short message cat according to claim 1, which is characterized in that the step Command information in B includes short message cat brand, operator's informaiton, current communication signal intensity.
5. a kind of method for sending short message by virtual short message cat according to claim 1, which is characterized in that the step The identification process for the command information that virtual serial port receives in B is as follows: the command information received being converted to character string, by word Symbol string is intercepted, and removes carriage return, space, newline, all characters are converted into capitalizing.
6. a kind of method for sending short message by virtual short message cat according to claim 1, which is characterized in that the step It is as follows for the process of command information progress analog answer in B: to include all instructions letter that the software on application server is sent Breath;And according to every command information, corresponding response language is finished writing in advance;For the command information received, reply is finished writing in advance Response language.
7. a kind of method for sending short message by virtual short message cat according to claim 1, which is characterized in that the step The coded format for needing the content information sent to encode is Bit7/8 or UCS2 by application server in C.
8. a kind of method for sending short message by virtual short message cat according to claim 1, which is characterized in that the step Application server is as follows by the process for needing the content information sent to encode in C: plus information before content information header Length, encryption format, the cell-phone number for receiving information Man, short message center number, sender number.
9. a kind of method for sending short message by virtual short message cat according to claim 8, which is characterized in that the step The process that the content information for receiving virtual serial port in D is decoded is as follows: restoring information according to content information header file Length, encryption format, receive the cell-phone number of information Man, short message center number, sender number;The information content is passed through again The encryption format that information header is sent selects corresponding manner of decryption to be decoded, to restore the short message content that need to be sent.
10. a kind of method for sending short message by virtual short message cat according to claim 1, which is characterized in that the step The information for needing to send is selected into sending method according to use environment in rapid F, described sender formula include database middle table, ODBC middle table, WEBserver and MAS platform.
CN201811320252.7A 2018-11-07 2018-11-07 A method of short message is sent by virtual short message cat Pending CN109362044A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811320252.7A CN109362044A (en) 2018-11-07 2018-11-07 A method of short message is sent by virtual short message cat

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811320252.7A CN109362044A (en) 2018-11-07 2018-11-07 A method of short message is sent by virtual short message cat

Publications (1)

Publication Number Publication Date
CN109362044A true CN109362044A (en) 2019-02-19

Family

ID=65344453

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811320252.7A Pending CN109362044A (en) 2018-11-07 2018-11-07 A method of short message is sent by virtual short message cat

Country Status (1)

Country Link
CN (1) CN109362044A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7373144B1 (en) * 2002-09-30 2008-05-13 Danger, Inc. System and method for automatically providing user status in a messaging service
CN101345952A (en) * 2008-09-03 2009-01-14 深圳华为通信技术有限公司 Data storing and reading method, device and system for client identification card
CN101860892A (en) * 2009-04-11 2010-10-13 深圳富泰宏精密工业有限公司 Test system and method for simulating phone AT command
CN102137333A (en) * 2010-01-27 2011-07-27 中国移动通信集团公司 Method and system for muting mobile terminal, and short message control device
CN102158350A (en) * 2011-02-12 2011-08-17 华为终端有限公司 Mobile broadband equipment and mobile broadband equipment management method
CN103731805A (en) * 2012-10-15 2014-04-16 苏州精易会信息技术有限公司 System for providing short message sending service for software system
CN103731804A (en) * 2012-10-15 2014-04-16 苏州精易会信息技术有限公司 Implementation method for providing short message sending service for software system
CN106375969A (en) * 2016-08-31 2017-02-01 国网山东省电力公司蓬莱市供电公司 Auxiliary communication platform for power dispatching control based on short message modem

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7373144B1 (en) * 2002-09-30 2008-05-13 Danger, Inc. System and method for automatically providing user status in a messaging service
CN101345952A (en) * 2008-09-03 2009-01-14 深圳华为通信技术有限公司 Data storing and reading method, device and system for client identification card
CN101860892A (en) * 2009-04-11 2010-10-13 深圳富泰宏精密工业有限公司 Test system and method for simulating phone AT command
CN102137333A (en) * 2010-01-27 2011-07-27 中国移动通信集团公司 Method and system for muting mobile terminal, and short message control device
CN102158350A (en) * 2011-02-12 2011-08-17 华为终端有限公司 Mobile broadband equipment and mobile broadband equipment management method
CN103731805A (en) * 2012-10-15 2014-04-16 苏州精易会信息技术有限公司 System for providing short message sending service for software system
CN103731804A (en) * 2012-10-15 2014-04-16 苏州精易会信息技术有限公司 Implementation method for providing short message sending service for software system
CN106375969A (en) * 2016-08-31 2017-02-01 国网山东省电力公司蓬莱市供电公司 Auxiliary communication platform for power dispatching control based on short message modem

Similar Documents

Publication Publication Date Title
CN101651743B (en) Remote desktop access system facing to mobilephone terminal user
Ma et al. General application research on GSM module
CN1244064C (en) Radio terminal with browser
CN1455522A (en) Back-up system and method for mobile terminal data network
CN102655481A (en) Webpape-based instant messaging chat content looking-up method and system
CN101588366B (en) System and method for accessing enterprise information system based on SaaS
CN102355509A (en) Method and device for transmitting and receiving message according to mobile number in contact list
CN104125321B (en) A kind of contact details update method, device and system
CN107018189A (en) Migrate application data and receive the method and device of application data
CN106712837A (en) Communication node based on Beidou satellite navigation system, and communication method thereof
CN103595611B (en) The realization method and system and equipment of instant messaging application
CN1156781C (en) Radio terminal with browser
CN109362044A (en) A method of short message is sent by virtual short message cat
CN102404248A (en) Method and device for applying fused messages and mails
CN103609193B (en) The method and wireless access network equipment of identification terminal type
CN103581843B (en) A kind of personal information transmission method and system
CN103795845A (en) Historical interface access method, historical interface access device and mobile terminal
CN109510756A (en) The method for carrying out instant messaging using satellite network
CN102281516B (en) Short message processing method and short message processing terminal
CN100563362C (en) The inter-network communication server and the inter-network means of communication
CN102090088A (en) A system operable to enable mobile access
CN103546879B (en) A kind of method and system of SIM card processing data
CN107172034A (en) The real name identification method and device of public WIFI connections
CN103297966B (en) Realize the access authentication method and device of WLAN
CN112689000A (en) Remote desktop control system and method based on VNC tool

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

Application publication date: 20190219

RJ01 Rejection of invention patent application after publication