aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorEhsan Takalloo <ehsan.takalloo@gmail.com>2020-08-10 17:18:39 +0430
committerScott Murray <scott.murray@konsulko.com>2020-09-01 13:13:55 -0400
commit4cdb281367813ffc12face0bbcba300fe6e7e2d3 (patch)
treee69cfe4402212d1db80f963c54c7c7d86205e898 /README.md
parent377a25d3f0831b5fd4a0ac01358ec86341d2531e (diff)
Add rds event
Update types in radio_impl_tef665x.c and radio_impl_tef665x.h Add rds verb to tef665x and send latest rds as response Implement rds parser based on rds standard structure and tef-665x user-manual for rds group types 0A, 0B, 1A, 2A, 2B and 4A Implement scan_start verb for tef-665x Implement scan_stop verb for tef-665x Implement get stereo_mode verb for tef-665x Fix an issue in tef665x_set_frequency_callback Update README.md file Signed-off-by: Ehsan Takalloo <ehsan.takalloo@gmail.com> Change-Id: Ife057e46c52fc420541dbad3b4f51c7d01707a3d
Diffstat (limited to 'README.md')
-rw-r--r--README.md20
1 files changed, 19 insertions, 1 deletions
diff --git a/README.md b/README.md
index 310f16b..2155649 100644
--- a/README.md
+++ b/README.md
@@ -12,7 +12,7 @@ respective audio stream.
| subscribe | subscribe to radio events | *Request:* {"value": "frequency"} |
| unsubscribe | unsubscribe to radio events | *Request:* {"value": "frequency"} |
| frequency | get/set tuned radio frequency | *Request:* {"value": 101100000} |
-| band | get/set current band type (e.g. AM, FM) | *Request:* {"band": "FM"} *Response:* {"band": "FM"} |
+| band | get/set current band type (e.g. AM, FM) | *Request:* {"value": "FM"} *Response:* {"band": "FM"} |
| band_supported | check if a certain band is supported | *Request:* {"band": "FM"} *Response:* {"supported": 1} |
| frequency_range | get frequency range for band type | *Request:* {"band": "FM"} *Response:* {"min": ..., "max": ...} |
| frequency_step | get frequency step/spacing for band type | *Request:* {"band": "FM"} *Response:* {"step": 200000} |
@@ -36,6 +36,24 @@ JSON response has a single field **value** of the frequency of the discovered ra
JSON response has a single field **value** with one of the values "playing" or "stopped".
+### rds Event JSON Response
+
+JSON response has 13 fields:
+
+1. **name** which is the Programme Service (PS) name;
+2. **radiotext** which is the Radio Text (RT) message;
+3. **alternatives** which is an array of Alternative Frequencies (AF);
+4. **minute** which is the current local time minute;
+5. **hour** which is the current local time hour;
+6. **day** which is the current day;
+7. **month** which is the current month;
+8. **year** which is the current year;
+9. **pi** which is the current Programme Identification (PI) code;
+10. **pty** which is the current Programme Type (PTY) code;
+11. **ta** which is the Traffic Announcement (TA) code;
+12. **tp** which is the Traffic Programme (TP) Identification code;
+13. **ms** which is the Music Speech (MS) code.
+
# AGL Radio Tuner Binding
## FM Band Plan Selection