Socket-transport cmd space (off_14 ids) from live capture: 1101/1307/1705/1707 + host_probe3
This commit is contained in:
1 parent
2cdc274fe3
commit
213a0518d6
7 files changed
+401
-60
No files matched your search
@@ -25,7 +25,7 @@ import json
|
||||
import time
|
||||
from typing import Any, Dict, Optional
|
||||
|
||||
from .commands import CommunicationCmd, CommunicationOperate
|
||||
from .commands import CommunicationCmd, CommunicationOperate, socket_cmd_type
|
||||
from .crc import crc32
|
||||
|
||||
#: Exact key order used by the app's ``toJson`` (``dataArea`` conditional).
|
||||
@@ -180,12 +180,14 @@ def direct_connect_request(
|
||||
|
||||
Mirrors the Dart ``CommunicationObject.communicate`` factory +
|
||||
``CommunicationService._query*ByDirectConnect`` family
|
||||
(``docs/RE_DART_FINDINGS.md`` §3). Note ``snno`` is assigned by
|
||||
``sendObject`` (see :class:`SequenceNumber`); pass the issued value when
|
||||
re-serialising.
|
||||
(``docs/RE_DART_FINDINGS.md`` §3). The wire ``cmdType`` is the
|
||||
*socket-transport* id (``CommunicationCmd::cmd`` for socket mode —
|
||||
e.g. ``DEVICE_APOWER_INFO`` → ``1307``, verified live). Note ``snno``
|
||||
is assigned by ``sendObject`` (see :class:`SequenceNumber`); pass the
|
||||
issued value when re-serialising.
|
||||
"""
|
||||
return CommunicationObject(
|
||||
cmd_type=int(cmd),
|
||||
cmd_type=socket_cmd_type(cmd),
|
||||
equip_no=equip_no,
|
||||
op_type=CommunicationOperate.QUERY,
|
||||
snno=snno,
|
||||
|
||||
Reference in new issue
Block a user