0x9900 / sa818 Goto Github PK
View Code? Open in Web Editor NEWProgramming software for the SA818 radio module.
License: BSD 2-Clause "Simplified" License
Programming software for the SA818 radio module.
License: BSD 2-Clause "Simplified" License
pi@pirim:~/src/SA818.ch $ ./sa818.py
Traceback (most recent call last):
File "./sa818.py", line 342, in <module>
main()
File "./sa818.py", line 332, in main
if opts.func == 'version':
AttributeError: 'Namespace' object has no attribute 'func'
pi@pirim:~/src/SA818.ch $
I don't see this on x86_64 ubuntu. So .... ??
Pi: Package: python3 Version: 3.7.3-1
Ubuntu: python3 Version: 3.8.2-0ubuntu2
Is it possible to add a command line argument for setting the radio bandwidth along with the frequency?
It looks like the script currently sets the wide bandwidth in all cases.
My testing shows a ~2 dB improvement in sensitivity when the narrow filters are used for narrow band transmissions (12 dB SINAD, 1 kHz/2.2 kHz dev, CCITT filters).
This is on the SA818-S (VHF) FW 1.1
And thanks for making this, it's saved me a ton of time!
using PRIM board ran code given but when you try to program the sa818 there is a --port argument that it cant find the port confused any help would be great
Is it possible to add a command line argument for setting the radio CTCSS_RX and CTCSS_TX frequency ?
Thank you.
Is it possible to set the tone only for transmission and not for reception?
Thank's
Hi,
I have a question about the FILTERS setup in SA818 using this program
In the code, the "yesno" procedure corresponds to YES 1 and NO 0
https://github.com/0x9900/SA818/blob/main/sa818.py#L249
by setting filters options
sa818 filtes --empahasis yes --highpass yes --lowpass yes
the parameters are described
--emphasis EMPHASIS Enable [Pr/De]-emphasis (yes/no) [default: no]
--highpass HIGHPASS Enable high pass filter (yes/no) [default: no]
--lowpass LOWPASS Enable low pass filters (yes/no) [default: no]
sent commands to SA818 with used "yes" will be
AT_SETFILTER = 1,1,1
so value 1 corresponds to "bypass" so isn't it enabled???
Perhaps I misunderstand the term "bypass"
Ever consider using an I2S audio solution so you can feed audio direct to the gpio on the pi instead of the USB method? See https://github.com/mytechguyri/i2s_audio_phat.git
Then one other improvement... While i love the SA818 modules... they're a bit under powered... they typically don't put out enough power to drive an amp at all, so using them for APRS, while it works (works with the I2S audio above quite well) its just too low powered... BUT, NiceRF also makes the SA868 module... pin and code compatible with the SA818, but its a 2 watt module (actually 1.5W in real world) but that's enough to drive an amp... so it could make a great little digital modes hat... and i think if you look at the i2s_audio_hat, that's on the pi zero form factor, and there are big chunks of board real estate taken up by audio connectors and a microphone, which wouldn't be necessary in a a PIRIF type application... Use an IPX antenna connector, and I'd bet you could fit the i2s audio and the SA868 on a pi zero form factor board... solar powered remote APRS digipeater? piece of cake zero, hat, battery, solar panel in a weather proof enclosure.
I was actually going to design this myself, but pcb design is not my area of expertise... and you've got everything nearly done already with your pirim design... it makes more sense to collaborate to make a better wheel than to re-invent it.
73
WA1OKB
I have an SA818 and exec'ing sa818 version
fails with the following :
SA818: ERROR: Unable to decode the firmeare version
Traceback (most recent call last):
File "/usr/bin/sa818", line 425, in <module>
main()
File "/usr/bin/sa818", line 409, in main
radio.version()
File "/usr/bin/sa818", line 121, in version
return version
^^^^^^^
UnboundLocalError: cannot access local variable 'version' where it is not associated with a value
With a bit of debugging I found the reply string include 2 "_" characters (+VERSION:SA818_V5.5_MM).
The following diff appears to resolve the issue (for me).
diff --git a/sa818.py b/sa818.py
index 71f1a7f..0bdb96d 100755
--- a/sa818.py
+++ b/sa818.py
@@ -113,7 +113,7 @@ class SA818:
time.sleep(0.5)
reply = self.readline()
try:
- _, version = reply.split('_')
+ _, version = reply.split('_', 1)
except ValueError:
logger.error('Unable to decode the firmeare version')
else:
Bonus points if you can also correct two typos (firweare --> firmware, tome --> tone)
Hi,
After upgrade to latest version 0.2.3 has problems, when we try for example set volume level produce error
sa818 --port /dev/ttyUSB0 volume --level 8
SA818 set volume error
similar problem with filters
SA818 set filter error
Version 0.2.2 works OK
Hello,
thanks for your work on this project. Do you think this is compatible also with the sa828 or that it could be possibly made compatible?
thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.