Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DLE code needs to be doubled in the audio stream. #4

Open
CABrouwers opened this issue Feb 21, 2021 · 0 comments
Open

DLE code needs to be doubled in the audio stream. #4

CABrouwers opened this issue Feb 21, 2021 · 0 comments

Comments

@CABrouwers
Copy link

I believe the DLE (0x10) character in the voice data stream is treated as an escape character before an in-band command. That means that if it appears in the data it might trigger a spurious action by the modem. The solution is to double every occurrence by adding the following line before the write statement:
data = data.replace(b'\x10', b'\x10\x10')
That means that the data chunk might become bigger than 1024 bytes. So I recommend also decreasing the chunk size to 960

reference: https://en.wikipedia.org/wiki/Voice_modem_command_set

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant