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

SDS200 Audio via FTP #17

Open
robbiet480 opened this issue Aug 27, 2021 · 9 comments
Open

SDS200 Audio via FTP #17

robbiet480 opened this issue Aug 27, 2021 · 9 comments

Comments

@robbiet480
Copy link
Member

Turns out SDS200 acts as a FTP read-only server when in scan mode (and a FTP write server when you send the right commands). It’s possible that we can use that FTP server to pull down clean cut audio files in close to real time just like we do over USB already for SDS100 (and 200) in #6.

@rabarar thought you might be excited by this possibility! My SDS200 arrives Saturday morning and I’ll play with it all weekend.

@rabarar
Copy link
Collaborator

rabarar commented Aug 27, 2021 via email

@tacomilkshake
Copy link

Awesome. Happy to test/troubleshoot!

@robbiet480
Copy link
Member Author

@rabarar 1.10.8

@rabarar
Copy link
Collaborator

rabarar commented Aug 29, 2021 via email

@tacomilkshake
Copy link

Also at 1.10.08 here.

@rabarar
Copy link
Collaborator

rabarar commented Aug 29, 2021 via email

@robbiet480
Copy link
Member Author

I have an initial version working. It's not as clean as the built in HomePatrol stuff, data has to be grabbed via FTP still, but it works pretty well for the SDS200. AUF STS ON does work on SDS200 btw, it just doesn't send anything back to the console to confirm audio feed is on. But files do get created in the /audio/inner_rec folder as a circular buffer. You can read the folder contents either via FTP (slower, huge output) or via GLT,IREC_FILE which returns XML like this:

<?xml version="1.0" encoding="utf-8"?>
<GLT>
  <IREC_FILE Index="15" Name="2021-09-21_00-41-10.wav" Time="1260" />
  <IREC_FILE Index="16" Name="2021-09-21_00-41-20.wav" Time="1440" />
  <IREC_FILE Index="17" Name="2021-09-21_00-41-22.wav" Time="720" />
  <IREC_FILE Index="18" Name="2021-09-21_00-41-24.wav" Time="4020" />
  <IREC_FILE Index="19" Name="2021-09-21_00-41-30.wav" Time="820" />
  <IREC_FILE Index="20" Name="2021-09-21_00-41-44.wav" Time="3460" />
  <IREC_FILE Index="21" Name="2021-09-21_00-41-55.wav" Time="5020" />
  <IREC_FILE Index="22" Name="2021-09-21_00-42-01.wav" Time="1040" />
  <IREC_FILE Index="23" Name="2021-09-21_00-42-05.wav" Time="7580" />
  <Footer No="2" EOT="1"/>
</GLT>

Just mark what index you last grabbed and grab everything after it, making sure to run the command every few seconds so you don't miss anything (since the inner_rec folder is a circular buffer).

@tacomilkshake
Copy link

tacomilkshake commented Sep 21, 2021

@robbiet480 Awesome. I look forward to this network-based file transfer.

I also just wanted to say thanks again for this library. It has already helped us in a critical fire response. There are several areas in our mountainous district where VHF signal doesn't reach, but cell signal does. We can now review the radio broadcast files from dispatch as they come in... Just thought you'd appreciate knowing that this library is helping us stay in critical communication.

@rabarar
Copy link
Collaborator

rabarar commented Sep 21, 2021 via email

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

3 participants