You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 16, 2025. It is now read-only.
Describe the bug
It appears that longer executing commands do not collect all the information from the output, e.g. commands such as AT+CGDCONT? and AT+COPS=?. Most of the time, the parser only catches the echo of the command and not the full response.
To Reproduce
atrunenv=ATRuntimeEnvironment(abort_on_failure=True)
atrunenv.configure_communicator(port_name, baud_rate)
atrunenv.open_serial()
# returns ['AT+CGDCONT?'] or ['AT+CGDCONT?', '', '+CGDCONT: 1,"IPV4V6","","0.0.0.0.0.0.0.0.0.0.0'], not all resultscgdcont_result=self.atrunenv.exec('AT+CGDCONT?')
# fails as it parses only the shortened resultscgdcont_result=self.atrunenv.exec('AT+CGDCONT?;;OK;;;;5')
# sometimes times out, sometimes gets the response if a recent scan - inconsistentcops_result=self.atrunenv.exec('AT+COPS=?;;OK;;;;900')
Expected behavior
CGDCONT should capture all data, there were 3 other PDP contexts displayed normally. COPS should wait for the operator scan to complete and return the data.
Desktop (please complete the following information):
OS: Debian 32-bit
Architecture ARMHF
Python version 3.7
ATtila version 1.2.2
Additional context
There may be an additional consistency bug. Some of the normal commands failed with no output, but repeating the command succeeds. The CGDCONT always fails however.
The text was updated successfully, but these errors were encountered:
I've struggled with a similar problem and I've solved it by setting ATE0 . The setting ATE1 is nice for debugging but causes the modem to output two "batches" of data.
I've spent a couple of hours digging through the source code of ATtila and it seems it only expects one "batch" of data, so the two batches caused by a long running command is something that breaks important assumptions.
Describe the bug
It appears that longer executing commands do not collect all the information from the output, e.g. commands such as
AT+CGDCONT?
andAT+COPS=?
. Most of the time, the parser only catches the echo of the command and not the full response.To Reproduce
Expected behavior
CGDCONT should capture all data, there were 3 other PDP contexts displayed normally. COPS should wait for the operator scan to complete and return the data.
Desktop (please complete the following information):
Additional context
There may be an additional consistency bug. Some of the normal commands failed with no output, but repeating the command succeeds. The CGDCONT always fails however.
The text was updated successfully, but these errors were encountered: