Bearcatter / bearcatter

a system for controlling, recording and managing the Uniden SDS100 and SDS200
MIT License
26 stars 5 forks source link

Audio support #6

Closed robbiet480 closed 4 years ago

robbiet480 commented 4 years ago

Made a massive breakthrough tonight on the SDS100. There's a previously undocumented command to stream audio files over USB as they come in. It's a left over from the HomePatrol. This means with a single cable, we can grab audio as well as data. It's not as real time as using the line in, but I'd prefer grabbing clean cut and properly tagged audio anyway, so its worth a few second delay while the file transfers over. The only downside I've found thus far is if you navigate away from the scanner status screen, the transfer fails. This may be a problem with HPe-rc though, it just may not be expecting the command structure of known SDS100 commands. The WAV files are output with the normal Uniden headers too.

To get this added to sds200: - Implement the HP command structure, which is tab based and requires a checksum on every message - Implement the WAV header reader (could be good for other things anyway)

I'm pretty much just writing this as a note to myself for tomorrow.

rabarar commented 4 years ago

What’s the command? I’ll see if it exists on the SDS200 as well.

On Jun 20, 2020, at 2:02 AM, Robbie Trencheny notifications@github.com wrote:

Made a massive breakthrough tonight on the SDS100. There's a previously undocumented command to stream audio files over USB as they come in. It's a left over from the HomePatrol. This means with a single cable, we can grab audio as well as data.

I'm pretty much just writing this as a note to myself for the future.

HPe-rc https://hp.xoynq.com/#audio-feed was invaluable Spec is here http://info.uniden.com/twiki/pub/HomePatrol/TechnicalDocs/HomePatrol-1_Remote_Control_Specification_V2.05.pdf Tip off here https://forums.radioreference.com/threads/sds100-protocol-docs.373083/page-2#post-2961047 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rabarar/sds200/issues/6, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABB2J6GGTL72YHOMEEAHAR3RXRGIDANCNFSM4ODHU6PQ.

robbiet480 commented 4 years ago

I haven't replicated the exact commands HPe-rc is sending yet, hoping to do that today to determine if this path is viable (bit worried that the audio feed and PSI won't play nice together).

rabarar commented 4 years ago

PSI, and RTSP work without any issue. If you use the URI rtsp://IP:554/au:scanner.au you can stream to VLC for example while the client streams PSI at 50ms - no isssues.

robbiet480 commented 4 years ago

Good to know, but I'm worried about PSI and audio feed on the SDS100 since it all goes through the same serial link. If PSI comes in the middle of an audio feed, can we and the scanner handle that?

rabarar commented 4 years ago

yeah - not sure how that’s going to work…

The commands that you show aren’t going to be supported by the SDS200 I imagine - Unless it’s attached via USB and in Serial Mode - would be an interesting experiment to see how compatible SDS100/200 are in USB mode.

On Jun 20, 2020, at 6:00 PM, Robbie Trencheny notifications@github.com wrote:

Good to know, but I'm worried about PSI and audio feed on the SDS100 since it all goes through the same serial link. If PSI comes in the middle of an audio feed, can we and the scanner handle that?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Bearcatter/bearcatter/issues/6#issuecomment-647050012, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABB2J6DSYJJZ4WWB3G4P4TLRXUWP3ANCNFSM4ODHU6PQ.

robbiet480 commented 4 years ago

Good news/bad news for SDS200 owners:

Good news: Audio Feed does work, exactly as on SDS100 Bad news: It only appears to work via the miniUSB port. All attempts to use any Home Patrol commands via UDP have failed thus far. cdb,M,0 and cdb,M,1 both work (that command controls whether the CRC check is confirmed on each message) so some part of Home Patrol spec is available via UDP.

robbiet480 commented 4 years ago

Once #13 is merged, I am calling 1.0 of audio complete. There’s still a few improvements to be made, like ensuring we correctly do the file transfer dance and properly configuring logging, but it’s fine for now.