CN110473364A - Gathering broadcasting method and device based on MQTT agreement - Google Patents

Gathering broadcasting method and device based on MQTT agreement Download PDF

Info

Publication number
CN110473364A
CN110473364A CN201910745778.8A CN201910745778A CN110473364A CN 110473364 A CN110473364 A CN 110473364A CN 201910745778 A CN201910745778 A CN 201910745778A CN 110473364 A CN110473364 A CN 110473364A
Authority
CN
China
Prior art keywords
mqtt
payment
casting
gathering
server
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
CN201910745778.8A
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.)
Shenzhen Zeolite Polytron Technologies Inc
Original Assignee
Shenzhen Zeolite Polytron Technologies Inc
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 Shenzhen Zeolite Polytron Technologies Inc filed Critical Shenzhen Zeolite Polytron Technologies Inc
Priority to CN201910745778.8A priority Critical patent/CN110473364A/en
Publication of CN110473364A publication Critical patent/CN110473364A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/085Payment architectures involving remote charge determination or related payment systems
    • G06Q20/0855Payment architectures involving remote charge determination or related payment systems involving a third party
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07GREGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
    • G07G1/00Cash registers
    • G07G1/01Details for indicating
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07GREGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
    • G07G1/00Cash registers
    • G07G1/12Cash registers electronically operated
    • G07G1/14Systems including one or more distant stations co-operating with a central processing unit
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Abstract

The present invention provides a kind of gathering broadcasting methods and device based on MQTT agreement, and the method includes receiving the payment information that Third-party payment platform sends over, the payment information includes payment amount information and casting device numbering;The casting device numbering received is matched with the casting device numbering list pre-seted in MQTT server;Using the message push function of MQTT server, payment amount information is pushed to matched casting equipment, carries out voice broadcast.The beneficial effects of the present invention are: the casting equipment that quickly payment amount is accurately pushed to and is matched can be stablized and broadcasted.

Description

Gathering broadcasting method and device based on MQTT agreement
Technical field
The present invention relates to a kind of gathering broadcasting method and devices, refer in particular to a kind of gathering casting side based on MQTT agreement Method and device.
Background technique
With popularizing for mobile payment, present size businessman begins to use wechat, Alipay gathering.Mobile payment is certain It is convenient, fast, but there is also a troublesome problems, that is, if wanting voice broadcast, it is necessary that mobile phone is one Determine in range, which limit the uses of mobile phone, cannot discharge mobile phone and real-time broadcasting completely.There are some castings currently on the market Equipment, but broadcasting method is all based on TCP/IP network protocol and carries out push casting, is easy that information drop-out or repetition can occur; The stability for pushing casting is poor, it is easy to cause payment broadcast leakage report.Therefore, it is necessary to change to the proposition of existing gathering broadcasting method Into.
Summary of the invention
The technical problems to be solved by the present invention are: a kind of gathering broadcasting method and device based on MQTT agreement is provided, It is intended to improve the stability of gathering casting.
In order to solve the above-mentioned technical problem, the technical solution adopted by the present invention are as follows: a kind of gathering based on MQTT agreement is broadcast Reporting method, the gathering broadcasting method based on MQTT agreement include the following steps,
S10, the payment information that Third-party payment platform sends over is received, the payment information includes payment amount letter Breath and casting device numbering;
S30, by the casting device numbering received and the casting device numbering list that pre-sets in MQTT server into Row matching;
S40, the message push function using MQTT server push payment amount information to matched casting equipment, into Row voice broadcast.
Further, the step S40 is specifically included,
Using the message push function of MQTT server, payment amount is pushed to matched casting equipment by GPRS network Information carries out voice broadcast.
Further, the gathering broadcasting method based on MQTT agreement further includes step,
S20, the payment information that Third-party payment platform sends over is parsed in MQTT server, gets branch Pay amount information and casting device numbering.
Further, it between the MQTT server and casting equipment, is maintained at by the long connection of MQTT server Line connection.
In order to solve the above-mentioned technical problem, another technical solution used in the present invention are as follows: a kind of based on MQTT agreement It collects money broadcast device, the gathering broadcast device based on MQTT agreement includes,
Payment information receiving module, the payment information sended over for receiving Third-party payment platform, the disbursement letter Breath includes payment amount information and casting device numbering;
Device numbering matching module, the casting device numbering for that will receive are broadcast with what is pre-seted in MQTT server Report device numbering list is matched;
Payment push broadcasting module is pushed away for the message push function using MQTT server to matched casting equipment Payment amount information is sent, voice broadcast is carried out.
Further, the payment push broadcasting module is specifically used for,
Using the message push function of MQTT server, payment amount is pushed to matched casting equipment by GPRS network Information carries out voice broadcast.
Further, the gathering broadcast device based on MQTT agreement further includes,
Payment information parsing module, the payment information for sending over Third-party payment platform is in MQTT server It is parsed, gets payment amount information and casting device numbering.
Further, the gathering broadcast device based on MQTT agreement further includes online holding module, for described Between MQTT server and casting equipment, on-line joining process is kept by the long connection of MQTT server.
The beneficial effects of the present invention are: by the way that the payment amount information of Third-party payment platform and casting equipment are compiled Number it is sent to MQTT server, device numbering will be broadcasted and the casting device numbering list match that pre-sets in MQTT server Afterwards, by pushing payment amount information to matched casting equipment, carrying out for the message push function using MQTT server Voice broadcast can be stablized quickly accurately to be pushed to payment amount and match using the message push function of MQTT server Casting equipment broadcasted.
Detailed description of the invention
Specific structure of the invention is described in detail with reference to the accompanying drawing.
Fig. 1 is the gathering broadcasting method flow chart based on MQTT agreement of a specific embodiment of the invention;
Fig. 2 is the gathering broadcast device module frame chart based on MQTT agreement of a specific embodiment of the invention.
Specific embodiment
In order to describe the technical content, the structural feature, the achieved object and the effect of this invention in detail, below in conjunction with embodiment And attached drawing is cooperated to be explained in detail.
As shown in Figure 1, a specific implementation of the invention are as follows: a kind of gathering broadcasting method based on MQTT agreement, the base Include the following steps in the gathering broadcasting method of MQTT agreement,
S10, the payment information that Third-party payment platform sends over is received, the payment information includes payment amount letter Breath and casting device numbering;
S20, the payment information that Third-party payment platform sends over is parsed in MQTT server, gets branch Pay amount information and casting device numbering;
S30, by the casting device numbering received and the casting device numbering list that pre-sets in MQTT server into Row matching;
S40, the message push function using MQTT server push payment amount information to matched casting equipment, into Row voice broadcast.
Preferably, the step S40 is specifically included,
Using the message push function of MQTT server, payment amount is pushed to matched casting equipment by GPRS network Information carries out voice broadcast.
Preferably, between the MQTT server and casting equipment, keep online by the long connection of MQTT server Connection.
In the present embodiment, for the push server used for MQTT server, consumer can pass through wechat, Alipay etc. APP barcode scanning, it is assumed here that be with Alipay barcode scanning, after consumer's barcode scanning, Alipay will receive a payment request, confirmation at , can be to the consumer feedback one successful message of payment after function, and asynchronous notifications third-party platform pays successful message, the The confirmation of tripartite's platform will push a message after paying successfully and give MQTT server;MQTT server can will be in payment information The casting list of devices pre-seted in casting device numbering and MQTT server is matched, and pushes branch to matched casting equipment Amount information is paid, voice broadcast is carried out, casting equipment is cloud loudspeaker.Wherein, polymerization has casting device numbering in payment code, broadcasts Device numbering is corresponding with casting equipment, can polymerize multiple casting device numberings in a payment code, while paying the bill code simultaneously It polymerize the means of payment such as wechat payment, Alipay payment, Unionpay, MQTT server can be simultaneously to multiple cloud loudspeaker according to subscription Payment message is pushed simultaneously, and businessman can be on demand in different place installation cloud loudspeaker, and the cloud loudspeaker for being connected to message can be same Shi Jinhang casting, this is and its easily to businessman;It is communicated between MQTT server and cloud loudspeaker by GPRS network, energy The enough stability for improving casting, MQTT server is based on MQTT agreement, based on the push of MQTT agreement, every transaction MQTT service Device all can active push, until pushing successfully, if cloud loudspeaker are disconnected with MQTT server, MQTT server can save number According to, within a certain period of time connect after will continue to push, guarantee every time transaction all broadcast;In addition do not have if there are special circumstances really There is casting, businessman can also directly inquire transaction record on payment backstage, ensure that the stability of casting in this way;And existing skill The TCP/IP network protocol push that art uses, no matter not pushing success, all only push is primary, and stability is poor;In order to guarantee The stability of casting, we have been used herein the long connection of MQTT, and every 200s casting equipment can send one to MQTT server The message of a 2 byte tells that MQTT server oneself is online, MQTT server is avoided to disconnect port, causes to broadcast equipment Receiving information cannot be received in time and broadcasted.
In the present embodiment, payment code and cloud loudspeaker are located at together, can be convenient with angle-adjustable and shift position User's barcode scanning, and trade company can be put into cloud loudspeaker any safe position, without worrying that payment code is stealthily substituted or damaged The case where.
The broadcasting method of the present embodiment enables gathering no longer mobile phone be needed to broadcast to account, as long as cloud loudspeaker and MQTT server are led to GPRS network connection, energy real-time broadcasting, leakproof list are crossed, moreover, the maximum broadcast sound volume of cloud loudspeaker is more much bigger than mobile phone casting, Volume can be arbitrarily adjusted according to current environment.
As shown in Fig. 2, another technical solution used in the present invention are as follows: a kind of gathering casting dress based on MQTT agreement It sets, the gathering broadcast device based on MQTT agreement includes,
Payment information receiving module 10, the payment information sended over for receiving Third-party payment platform, the payment Information includes payment amount information and casting device numbering;
Payment information parsing module 20, the payment information for sending over Third-party payment platform is in MQTT server In parsed, get payment amount information and casting device numbering;
Device numbering matching module 30, casting device numbering for that will receive with pre-seted in MQTT server Casting device numbering list is matched;
Payment push broadcasting module 40, for the message push function using MQTT server, to matched casting equipment Payment amount information is pushed, voice broadcast is carried out.
Preferably, the payment push broadcasting module is specifically used for,
Using the message push function of MQTT server, payment amount is pushed to matched casting equipment by GPRS network Information carries out voice broadcast.
Preferably, the gathering broadcast device based on MQTT agreement further includes online holding module, is used for the MQTT Between server and casting equipment, on-line joining process is kept by the long connection of MQTT server.
The device of the invention embodiment is corresponding with embodiment of the method, and the content of device reality embodiment also contains method reality The content of example is applied, therefore no longer this is repeated;The module in Installation practice being understood that is software program module, is used In the execution above method.
In conclusion the beneficial effect of the embodiment of the present invention is: by believing the payment amount of Third-party payment platform Breath and casting device numbering are sent to MQTT server, the casting that will be broadcasted device numbering with pre-set in MQTT server After device numbering list match, by being pushed to matched casting equipment for the message push function using MQTT server Payment amount information, carrying out voice broadcast can be stablized quickly using the message push function of MQTT server by payment amount It is accurately pushed to the casting equipment to match to be broadcasted, casting equipment is cloud loudspeaker, and multiple, cloud loudspeaker and MQTT can be set Server is attached by GPRS network, while by the long connection of MQTT, ensure that the stability of casting.
Herein first, second ... only represents the differentiation of its title, not representing their significance level and position has what It is different.
Herein, up, down, left, right, before and after only represents its relative position without indicating its absolute position.
The above description is only an embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (8)

1. a kind of gathering broadcasting method based on MQTT agreement, it is characterised in that: the gathering casting side based on MQTT agreement Method includes the following steps,
S10, receive the payment information that sends over of Third-party payment platform, the payment information include payment amount information with And casting device numbering;
S30, the casting device numbering received is carried out with the casting device numbering list pre-seted in MQTT server Match;
S40, the message push function using MQTT server push payment amount information to matched casting equipment, carry out language Sound casting.
2. as described in claim 1 based on the gathering broadcasting method of MQTT agreement, it is characterised in that: the step S40 is specific Including,
Using the message push function of MQTT server, payment amount letter is pushed to matched casting equipment by GPRS network Breath carries out voice broadcast.
3. as claimed in claim 2 based on the gathering broadcasting method of MQTT agreement, it is characterised in that: described to be based on MQTT agreement Gathering broadcasting method further include step,
S20, the payment information that Third-party payment platform sends over is parsed in MQTT server, gets payment gold Volume information and casting device numbering.
4. the gathering broadcasting method as described in any one of claims 1-3 based on MQTT agreement, it is characterised in that: the MQTT Between server and casting equipment, on-line joining process is kept by the long connection of MQTT server.
5. a kind of gathering broadcast device based on MQTT agreement, it is characterised in that: dress is broadcasted in the gathering based on MQTT agreement Set including,
Payment information receiving module, the payment information sended over for receiving Third-party payment platform, the payment information packet Payment amount information and casting device numbering are included;
Device numbering matching module, for setting the casting device numbering received with the casting pre-seted in MQTT server Standby numbered list is matched;
Payment push broadcasting module pushes branch to matched casting equipment for the message push function using MQTT server Amount information is paid, voice broadcast is carried out.
6. as claimed in claim 5 based on the gathering broadcast device of MQTT agreement, it is characterised in that: the payment push casting Module is specifically used for,
Using the message push function of MQTT server, payment amount letter is pushed to matched casting equipment by GPRS network Breath carries out voice broadcast.
7. as claimed in claim 6 based on the gathering broadcast device of MQTT agreement, it is characterised in that: described to be based on MQTT agreement Gathering broadcast device further include,
Payment information parsing module, the payment information for sending over Third-party payment platform carry out in MQTT server Parsing gets payment amount information and casting device numbering.
8. such as the described in any item gathering broadcast devices based on MQTT agreement of claim 5-7, it is characterised in that: described to be based on The gathering broadcast device of MQTT agreement further includes online holding module, for leading between the MQTT server and casting equipment The long connection of MQTT server is crossed to keep on-line joining process.
CN201910745778.8A 2019-08-13 2019-08-13 Gathering broadcasting method and device based on MQTT agreement Pending CN110473364A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910745778.8A CN110473364A (en) 2019-08-13 2019-08-13 Gathering broadcasting method and device based on MQTT agreement

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910745778.8A CN110473364A (en) 2019-08-13 2019-08-13 Gathering broadcasting method and device based on MQTT agreement

Publications (1)

Publication Number Publication Date
CN110473364A true CN110473364A (en) 2019-11-19

Family

ID=68511717

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910745778.8A Pending CN110473364A (en) 2019-08-13 2019-08-13 Gathering broadcasting method and device based on MQTT agreement

Country Status (1)

Country Link
CN (1) CN110473364A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111144861A (en) * 2019-12-31 2020-05-12 秒针信息技术有限公司 Virtual resource transfer method, device, electronic equipment and storage medium
CN112150127A (en) * 2020-08-21 2020-12-29 广州睿新计算机科技有限公司 Online payment voice playing method and device for train ticket sales-substituting point
CN113256449A (en) * 2020-05-12 2021-08-13 广东省氢源节能科技有限公司 Platform service system of hydrogen decarbonization equipment of automobile engine
CN113313872A (en) * 2021-06-21 2021-08-27 广东华讯网络有限公司 Queuing system based on cloud call number and queuing and calling management method
CN114169881A (en) * 2021-12-07 2022-03-11 钻技(上海)信息科技有限公司 Two-dimensional code collection broadcasting system and method

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003123149A (en) * 2001-10-16 2003-04-25 East Japan Railway Co Simple card settlement system, program therefor, and recording medium
CN107480965A (en) * 2017-09-07 2017-12-15 阿里巴巴集团控股有限公司 Information-pushing method and device under line
CN108039001A (en) * 2017-12-16 2018-05-15 上海维浦信息技术有限公司 A kind of payment information supplying system and method for pushing
CN108647944A (en) * 2018-05-22 2018-10-12 阿里巴巴集团控股有限公司 Data processing method during on-line payment and device
CN109040326A (en) * 2018-11-02 2018-12-18 北京京东金融科技控股有限公司 The method and apparatus of PUSH message
CN109191108A (en) * 2018-08-07 2019-01-11 广东蓝蜜蜂信息技术有限公司 Two dimensional code polymerization payment system and its working method based on block chain
CN109377202A (en) * 2018-08-01 2019-02-22 阿里巴巴集团控股有限公司 A kind of payment processing method and device
CN109379430A (en) * 2018-11-30 2019-02-22 四川芯波智创物联技术有限公司 A kind of shared platform that is full of altogether of " Internet of Things+" industry ecosphere
CN109982451A (en) * 2019-03-29 2019-07-05 深圳市艾尚美科技有限公司 Remote speech broadcasts cashing method
CN110070354A (en) * 2019-03-05 2019-07-30 武汉摩小超科技有限公司 A kind of automatic selling shelf and its good selling method based on electronic lock

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003123149A (en) * 2001-10-16 2003-04-25 East Japan Railway Co Simple card settlement system, program therefor, and recording medium
CN107480965A (en) * 2017-09-07 2017-12-15 阿里巴巴集团控股有限公司 Information-pushing method and device under line
CN108039001A (en) * 2017-12-16 2018-05-15 上海维浦信息技术有限公司 A kind of payment information supplying system and method for pushing
CN108647944A (en) * 2018-05-22 2018-10-12 阿里巴巴集团控股有限公司 Data processing method during on-line payment and device
CN109377202A (en) * 2018-08-01 2019-02-22 阿里巴巴集团控股有限公司 A kind of payment processing method and device
CN109191108A (en) * 2018-08-07 2019-01-11 广东蓝蜜蜂信息技术有限公司 Two dimensional code polymerization payment system and its working method based on block chain
CN109040326A (en) * 2018-11-02 2018-12-18 北京京东金融科技控股有限公司 The method and apparatus of PUSH message
CN109379430A (en) * 2018-11-30 2019-02-22 四川芯波智创物联技术有限公司 A kind of shared platform that is full of altogether of " Internet of Things+" industry ecosphere
CN110070354A (en) * 2019-03-05 2019-07-30 武汉摩小超科技有限公司 A kind of automatic selling shelf and its good selling method based on electronic lock
CN109982451A (en) * 2019-03-29 2019-07-05 深圳市艾尚美科技有限公司 Remote speech broadcasts cashing method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111144861A (en) * 2019-12-31 2020-05-12 秒针信息技术有限公司 Virtual resource transfer method, device, electronic equipment and storage medium
CN111144861B (en) * 2019-12-31 2023-06-09 秒针信息技术有限公司 Virtual resource transfer method and device, electronic equipment and storage medium
CN113256449A (en) * 2020-05-12 2021-08-13 广东省氢源节能科技有限公司 Platform service system of hydrogen decarbonization equipment of automobile engine
CN112150127A (en) * 2020-08-21 2020-12-29 广州睿新计算机科技有限公司 Online payment voice playing method and device for train ticket sales-substituting point
CN113313872A (en) * 2021-06-21 2021-08-27 广东华讯网络有限公司 Queuing system based on cloud call number and queuing and calling management method
CN114169881A (en) * 2021-12-07 2022-03-11 钻技(上海)信息科技有限公司 Two-dimensional code collection broadcasting system and method
CN114169881B (en) * 2021-12-07 2023-04-07 钻技(上海)信息科技有限公司 Two-dimensional code collection and broadcast system and method

Similar Documents

Publication Publication Date Title
CN110473364A (en) Gathering broadcasting method and device based on MQTT agreement
CN109756504A (en) A kind of communication means and relevant apparatus based on live streaming platform
CN101060414B (en) MBMS charging method according to the traffic volume and system
CN105657019A (en) Mobile terminal advertisement delivery method based on geographical position
WO2008119266A1 (en) Prompt method and apparatus of short message splitting
CN101461182A (en) Alerting for long duration sessions in communications networks
CN102982455A (en) Dynamic group purchase trade matching system
CN106960348B (en) Payment docking method and payment docking system
CN107516198A (en) A kind of method and system of the charge based on Intelligent logistics terminal
CN105634849A (en) Dial measuring method and apparatus for data traffic unified payment services
US8744051B2 (en) Translation of fees for value added services in a communication network
CN103166936B (en) A kind of for providing the system of third party's ability, open system and method
CN103903126B (en) Fund quickly arrives method, system and telecommunication system, the third-party payment system of account
CN110033253A (en) A kind of Internet of Things card intelligence adding management method
CN101167306A (en) Method and apparatus for supplying billing information to a communication device
CN111835929B (en) Telephone charge transaction method and system based on block chain
CN102695154A (en) Base station straight-through architecture-based method, device and system for charging process
CN104580778A (en) Method for conference member to issue picture information in fragmentation asynchronous conference system
CN105873004A (en) User credit-based mobile communication service billing method and billing system
CN111541819A (en) Harvesting accelerating method and system
CN101662746B (en) Service request processing method, calling center server and communication system
CN107094082A (en) Bandwidth adjusting method and device
CN101860445B (en) Value-added service charging method and system
CN104104662B (en) Method and device for processing session service connection
CN102137360A (en) Network charge adjusting method and device

Legal Events

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

Application publication date: 20191119

RJ01 Rejection of invention patent application after publication