2 Achegas 1f4cfa4c53 ... ae59074717

Autor SHA1 Mensaxe Data
  Casper ae59074717 Merge branch 'ZJZGJ' of http://www.sri-robot.cn:30000/SRI-DINO/Server-py into ZJZGJ hai 3 meses
  Casper 9e4652679c | hai 3 meses

+ 13 - 9
sri-server-bg03/lib/ConnectionTest2008.py → sri-server-bg03/xprotobuf/ConnectionTest2008.py

@@ -15,21 +15,25 @@ import sys
 import importlib
 
 # --- for linux
-sys.path.append('/home/sri/repositories/repositories/sri-project.demo-py/sri-dino-pyserver01')
-sys.path.append('/home/sri/repositories/repositories/sri-project.demo-py/3rdparty')
-# host, port = '127.0.0.1', 20916
-host, port = '127.0.0.1', 20917
+# sys.path.append('/home/sri/repositories/repositories/sri-project.demo-py/sri-dino-pyserver01')
+# sys.path.append('/home/sri/repositories/repositories/sri-project.demo-py/3rdparty')
+
 
 # --- for windows
 # sys.path.append(r'E:\casper\repositories\repositories\sri-project.demo-py\sri-server-bg03')
 # sys.path.append(r'E:\casper\repositories\repositories\sri-project.demo-py\3rdparty')
-# host, port = '58.34.94.178', 20916
-# host, port = '58.34.94.178', 20916
-# host, port = '58.34.94.178', 20917
 
 # --- import
-protobuf = importlib.import_module(f"xprotobuf.protocol_pb2")
-methods = importlib.import_module(f"xlib")
+# protobuf = importlib.import_module(f"xprotobuf.protocol_pb2")
+# methods = importlib.import_module(f"xlib")
+import protocol_pb2 as protobuf
+
+
+# --- 服务地址
+# host, port = '127.0.0.1', 20916
+# host, port = '127.0.0.1', 20917
+# host, port = '172.18.74.154', 20918  # 湛江
+host, port = '10.10.60.237', 20918  # SRI内网
 
 
 def test():

+ 8 - 4
sri-server-bg03/xprotobuf/README-usage.md

@@ -1,6 +1,7 @@
 ## NOTE
 
 ## 构建 on ubuntu
+
 ~~~
 # 生成工具安装
 apt update && apt install protobuf-compiler -y
@@ -14,14 +15,17 @@ protoc --python_out=. protocol.proto
 sudo chmod -R 777 /home/sri/repositories/repositories/sri-project.demo-py/sri-dino-pyserver01/xprotobuf
 ~~~
 
-## 部署 on ubuntu
+## 在线安装 部署 on ubuntu
+
 ~~~
-# 在线安装
 apt install python3-protobuf
 ~~~
 
-## 部署 on windows
+## 在线安装 部署 on windows
+
 ~~~
-# 在线安装
 pip install protobuf==3.6.1 -i https://pypi.tuna.tsinghua.edu.cn/simple
+
+cd D:\temp001\24-09-12-pip\sri-server-bg03
+pip install protobuf-3.6.1-py2.py3-none-any.whl
 ~~~