SRI202407-服务器端通讯测试文档(共6个).txt 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. # --- test 2008 存活请求 ---
  2. 服务器地址/端口:58.34.94.178/20917
  3. # --- 请求 ---
  4. # --- 返回 ---
  5. # --- test 2000 舱端登录认证 ---
  6. 服务器地址/端口:58.34.94.178/20917
  7. # --- 请求 ---
  8. 消息头:CS_Sign 2000
  9. 消息体:
  10. message CSSign
  11. {
  12. string account=1;
  13. string password=2;
  14. };
  15. # --- 返回 ---
  16. 消息头:SC_Sign 4000
  17. 消息体:
  18. message SCSign
  19. {
  20. bool ret=1;
  21. int32 uid=2;
  22. int32 cid=3;
  23. string name=4;
  24. };
  25. # --- test 2009 车端上线 ---
  26. 服务器地址/端口:58.34.94.178/20917
  27. # --- 请求 ---
  28. 消息头:CS_Add 2009
  29. 消息体:
  30. message CSAdd
  31. {
  32. string serial=1;
  33. int32 type=2;
  34. string name=3;
  35. };
  36. # --- 返回1 ---
  37. 消息头:SC_NotifyAdd 4016
  38. 消息体:
  39. message Robot
  40. {
  41. enum RobotState
  42. {
  43. Offline=0;
  44. Online=1;
  45. Busy=2;
  46. };
  47. int32 rid=1;
  48. string name=2;
  49. int32 type=3;
  50. RobotState state=4;
  51. };
  52. message SCAddRobot
  53. {
  54. Robot robot=1;
  55. };
  56. # --- 返回2 ---
  57. 消息头:SC_Add 4007
  58. 消息体:
  59. message SCAdd
  60. {
  61. bool ret=1;
  62. int32 uid=2;
  63. int32 cid=3;
  64. string name=4;
  65. };
  66. # --- test 2004 offer ---
  67. 服务器地址/端口:58.34.94.178/20917
  68. # --- 请求 ---
  69. 消息头:CS_Offer 2004
  70. 消息体:
  71. message Offer
  72. {
  73. int32 index=1;
  74. int32 peer=2;
  75. string type=3;
  76. string sdp=4;
  77. };
  78. # --- 返回 ---
  79. 消息头:SC_NotifyOffer 4012
  80. 消息体:
  81. message Offer
  82. {
  83. int32 index=1;
  84. int32 peer=2;
  85. string type=3;
  86. string sdp=4;
  87. };
  88. # --- test 2005 answer ---
  89. 服务器地址/端口:58.34.94.178/20917
  90. # --- 请求 ---
  91. 消息头:CS_Answer 2005
  92. 消息体:
  93. message Answer
  94. {
  95. int32 index=1;
  96. int32 peer=2;
  97. string type=3;
  98. string sdp=4;
  99. };
  100. # --- 返回 ---
  101. 消息头:SC_NotifyAnswer 4011
  102. 消息体:
  103. message Answer
  104. {
  105. int32 index=1;
  106. int32 peer=2;
  107. string type=3;
  108. string sdp=4;
  109. };
  110. # --- test 2006 candidate ---
  111. 服务器地址/端口:58.34.94.178/20917
  112. # --- 请求 ---
  113. 消息头:CS_Candidate 2006
  114. 消息体:
  115. message Candidate
  116. {
  117. int32 index=1;
  118. int32 peer=2;
  119. string type=3;
  120. string candidate=4;
  121. int32 sdpMLineIndex =5;
  122. string sdpMid =6;
  123. int32 egotype=7;
  124. };
  125. # --- 返回 ---
  126. 消息头:SC_NotifyCandidate 4013
  127. 消息体:
  128. message Candidate
  129. {
  130. int32 index=1;
  131. int32 peer=2;
  132. string type=3;
  133. string candidate=4;
  134. int32 sdpMLineIndex =5;
  135. string sdpMid =6;
  136. int32 egotype=7;
  137. };