当前位置:网站首页>National standard gb28181 protocol easygbs video platform TCP active mode streaming exception repair

National standard gb28181 protocol easygbs video platform TCP active mode streaming exception repair

2022-06-26 12:58:00 EasyGBS

EasyGBS It is based on the national standard GB28181 Protocol video platform , Support live video 、 videotape 、 Cloud storage 、 Retrieval and playback 、 Pan tilt control 、 Alarm report 、 Voice intercom and other functions .EasyGBS The platform has comprehensive functions 、 Comprehensive 、 Flexible video capabilities , It can cover the needs of all video surveillance fields , It has been applied in a large number of projects , Such as bright kitchen and bright stove 、 Safe country 、 Snow project, etc .

EasyGBS Three pull flow modes can be set on the platform ,UDP、TCP Take the initiative 、TCP passive .

1)UDP:
Server monitoring UDP port , adopt INVITE Signaling informs the device port , The device actively initiates streaming to the server .

2)TCP passive :
Server monitoring TCP port , adopt INVITE Signaling informs the device port , The device initiates streaming to the server .

3)TCP Take the initiative :
The device side informs the server that it is listening TCP Port conditions , The server actively pulls the stream to the device , But there are few such scenes .

In a user's project ,EasyGBS As a superior platform , The lower level equipment pull flow is set to TCP passive , Then corresponding to the superior EasyGBS To set up TCP Active mode pull flow , But at the user site , It's always wrong to pull the flow , So we checked the situation . Check whether there is a problem with the active mode streaming code .

TCP In active mode ,EasyGBS You need to send to the device INVITE news , Wait for sending before receiving SYN The message establishes a connection with the subordinate , And the site is sending SYN When , Keep reporting that the port is occupied ( Here's the picture ) error , So our analysis is sending SYN Before , The program has listened to the streaming port .

Check code discovery , When pulling the flow , Judge that the active mode is not successful , Into the TCP In passive mode , So it has been unable to use TCP Active pull flow , See the figure below after modification :

After modification , The above problems have been successfully solved .

EasyGBS Powerful video capabilities can be used as a business platform , It can also be called as a video capability platform . adopt GB28181 Standard protocols enable cascading between platforms , It can share data with other platform systems , Achieve video resource convergence in application scenarios 、 Collaborative supervision 、 Platform linkage and other purposes , Interested users can go to the demonstration platform for experience or deployment testing .

原网站

版权声明
本文为[EasyGBS]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/177/202206261157407648.html