New Model #9958

Retevis RT40B

Added by tyler two 4 months ago. Updated about 1 month ago.

Status:Closed Start date:07/27/2022
Priority:Normal Due date:
Assignee:Jim Unroe % Done:

100%

Category:-
Target version:chirp-daily
Equipment Loan Offered:Yes

Description

I have a 10 pack of RT40B FRS radios. I'm waiting for a programming cable - it uses a TRRS jack into the phone. I will step through some of the existing Retevis radio, including the RT22 FRS.

I don't know if it is a clone of some other radio.

Happy to ship one domestically in the U.S. to support the effort!

native-app.txt - Retevis programming app USB serial output (4.7 kB) tyler two, 08/02/2022 04:48 am

chirp.txt - Chirp app USB serial output (1.1 kB) tyler two, 08/02/2022 04:48 am

Retevis - RT40B.pcapng - Retevis programming app wireshark dump of usbmon (100.1 kB) tyler two, 08/02/2022 04:48 am

Retevis_RT40B.img - CHIRP Radio Images (*.ing) file from RT40B (517 Bytes) Jim Unroe, 10/08/2022 07:33 pm

Associated revisions

Revision 3775:af7528fc29c4
Added by Jim Unroe about 1 month ago

[RT40B] Add Retevis RT40B

This patch adds support for the Retevis RT40B FRS Radio

Fixes #9958

History

Updated by tyler two 4 months ago

BTW I would just gift the radio, not loan it. Why send back a cheap radio? Ha

Updated by tyler two 4 months ago

I was unable to get it to work with the existing Retevis presets for similar-seeming radios. I'm willing to ship a radio out to someone or to step through some more basic attempts at things - Would running the official software and somehow sniffing the USB TTY traffic help anyone?

Updated by Jim Unroe 4 months ago

  • Status changed from New to Feedback

It appears to be a model that may have some similarities with a pair of models that are supported by the retevis_rt21.py driver. I could take a look at it but I make no promise as to when a working driver can be made available or if a working driver can be provided at all.

Jim KC9HI

Updated by tyler two 4 months ago

I am not a programmer and I certainly don't know much about serial I/O, but I used the info you provided and took a stab at adding a device config section....

The "magic" that the Retevis programmer outputs seems to be:
_magic = "PHOGRH" + "\x5c"

but when Chirp does the subsequent serial.read(1) it is getting back "P", and if it reads more characters (because of course I did read(100))it receives PHOGRH. It looks like this radio has remote echo? I noticed if I open a serial terminal to the radio and type, I see my characters on the screen, but it stops when I turn the radio off.

Looking at the structure of this driver, I'd say that puts this into a totally different class - it doesn't look like this echo behavior is handled by the simple per-device configs.

See attached dump of /sys/kernel/debug/usb/usbmon/3u output and a wireshark capture.

I totally understand the limitations of free software and I don't have any expectation of entitlement to your time. But let me know if I can do anything to assist.

Updated by Jim Unroe 4 months ago

I agree with your assessment regarding the "magic". Obviously, without a radio I cannot tell that the radio echos back any characters. There are at least 2 other Retevis models that I have done that have an echo behavior so this shouldn't be a problem. But this is as far as I can get without physical access to a RT40B. Sorry.

Jim KC9HI

Updated by tyler two 4 months ago

I understand, I'm totally happy to send you a radio, just let me know how.

Updated by Jim Unroe 4 months ago

I got in touch with my contact at Retevis and we are ironing out the details of them providing me with an RT40B for development purposes.

Jim KC9HI

Updated by Jim Unroe about 1 month ago

  • Status changed from Feedback to In Progress
  • Assignee set to Jim Unroe
  • Target version set to chirp-daily

An RT40B for development purposes was supplied by Retevis.

Jim KC9HI

Updated by Jim Unroe about 1 month ago

Add CHIRP Radio Images (*.img) file.

Jim KC9HI

Updated by Jim Unroe about 1 month ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100

Patch submitted. Support will be in the next CHIRP daily build following acceptance.

Jim KC9HI

Updated by Anonymous about 1 month ago

  • Status changed from Resolved to Closed

Applied in changeset af7528fc29c4.

Also available in: Atom PDF