You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Emergency Alert System (EAS) Specific Area Message Encoding (SAME) Encoder
2
2
3
-
During this Era of Our Perpetual 2020 COVID-Themed Lockdown, I assumed there'd be a bunch of emergency broadcasts sent over the FM airwaves giving us further
4
-
directions, so I did what any responsible emergency-obsessed turbonerd would do and purchased a SAGE Alerting Systems EAS ENDEC (Encoder/Decoder).
5
-
6
-
[Here's a quick background on how EAS SAME headers work.](https://www.youtube.com/watch?v=Z5o1sfXXf9E)
7
-
8
-
During the late 90's / early 2000's, this is a device that would sit in the headend room of TV / FM / AM stations, listen for EAS SAME signals on neighboring
9
-
stations, and, if the specified information matched the predefined filters, rebroadcast the emergency message on its local station.
10
-
11
-
Anyway, since I'm trying to flex my coding skills right now, I wrote a Python script that generates these tones! Tested and is correctly interpreted by my SAGE
Please please please please PLEASE use this responsibly. Did you just buy an old ENDEC on eBay and want to put it through its paces? This is the script for you!
19
6
20
7
Don't use this to hack / exploit anything. Please use it accordingly.
21
8
22
-
# Installation
9
+
##Installation
23
10
To Run: `python3 <location of same.py> <args>`
24
11
25
12
OR: `cd <directory of git folder>` THEN `python3 same.py <args>`
| --playaudiolive | -pal | -1 | 1 | Plays audio with command. Warning: Loud. |
47
-
---|
48
34
| --attention | -as | 0 | 1 | 1 = single tone (1050hz), 2 = duel tone (853hz and 960hz) |
49
-
---|
50
35
| --attentionlength | -al | 8 | 1 | How many seconds to play the attention signal |
51
36
| --code | -c ||| If you wanted to copy and paste a code string, you can do that here. |
52
37
| --org | -o | WXR | PEP | The organization in the SAME code |
@@ -58,6 +43,10 @@ For a more condenced version, check out [the readme of the dsame repo](https://g
58
43
| --issued | -i | now | 1100420 | Current date/time. DDDHHMM UTC format. (day is day of year out of 365 or 366). If left blank, it will be the current time. |
59
44
| --callsign | -cs | KEAX/NWS || Callsign of station broadcasting |
60
45
61
-
# Self-activating
46
+
##Self-activating
62
47
On may weather radios you can do something called self-activate, where you essentially feed your own audio instead of the radio audio into it. DO NOT transmit on the weather radio frequencies! A few notes: Make sure your radio is on channel 2. If it isn't working, adjust your volume until it sounds clear through the radio. If it still isn't working, change your SAME settings to any. The best way to do this is to have a mono 3.5mm jack to a single RCA connector. Plug the 3.5mm into your headphone jack and the RCA into the external antenna jack. There are a lot of other ways to do this with the PC port and the Ext. Alert port, but this seems to be the least work. Note: I have yet to test this.
63
-
At some point I need to add the attention tone
48
+
49
+
## A note to creators:
50
+
This is a good way to do cool things. I can see it being used in EAS scenerios and other cool projects.
51
+
IF you use this for use in projects (eg; videos), I would appreciate credit via a link in description.
52
+
I have seen a lot of similar things that only work on some platforms, so when I finally found something close to what I wanted in python, I forked it so I could improve on it. I just don't want others to have to have to search for hours to find how to do this kind of thing after seeing it in a video. I'm not going to do anything if you don't include a credit. I didn't write the code this is based on, and the specifcations are government documents. I just think that many people would appreciate knowing how to do what you did.
0 commit comments