I have a bad habit of losing HTs. I've lost three since I got my ticket, with a combined value approaching $1000. Not good. Thankfully China has finally figured out how to make ham radios, which sell for the usual cut-rate price.
Of course I'm not interested in being an early adopter. But now QST has reviewed these and found them to be OK if not great. Also several members of my club (RANV) have purchased these or similar Chinese radios and have acceptable reports. So I decided to take the plunge.
I purchased mine at the RANV Winter Hamfest on Feb 28, 2012, for the show special price of $109. I also purchased a mini speaker-mic and USB programming cable for $19.99 each.
In the box was the radio, a drop in charger, both an AC adapter and a cigarette lighter adapter for the charger, a belt clip with lanyard, and the "manual". The belt clip attaches to the radio with screws, which is a bit unusual.
The radio user interface is pretty bad, although many Japanese HTs have terrible interfaces as well. It's obvious that this radio was intended primarily for commercial service where it would be programmed in the shop. Self programming is a bit of an afterthought. It's not that the interface is complex, actually it's rather spartan. Just not well thought out or implemented. But once you get the hang of navigating the menus it's usable. At the hamfest it only took me a few minutes to program in our local repeater and key it up.
They must have thrown darts at a wall to decide which features to assign hotkeys to. Two thirds of them could have been better assigned to other functions.
The manual is pretty bad too. It does an acceptable job of explaining the basic features albeit in very broken English. For $100 they could have hired somebody on Elance to proofread it. Whatever. Some of the feature descriptions are just indecipherable.
All that said the radio has some nice features. It operates on 2m and 70cm with dual watch. Note this is NOT dual-receive; it can only receive ONE signal at a time. Dual-watch works in essence by scanning between the two channels. It receives FM broadcast and has over 100 memories. The LCD is brightly lit and easily readable. The build quality seems good; it does not feel like a cheap radio, probably owing to it's commercial target market. It has alphanumeric memory names.
The two features most sorely missing from this rig are auto-repeater-offset, and memory to VFO copy. Automatic repeater offset, or ARO, automatically picks the direction and magnitude of the uplink frequency for a repeater based on the standard ARRL bandplan, which most repeaters follow. With ARO all you really need to know about a repeater is the downlink frequency and maybe the CTCSS code if it uses one. Without ARO you also need to know the direction and size of the offset. Size is fortunately standard, 600KHz on 2m and 1MHz on 70cm. Direction unfortunately varies randomly depending on band segment, so the only way to know is to look it up (or memorize the bandplan).
The lack of MR->VFO means that you must program a memory channel correctly on the first try. If you screw up, you have to start over from scratch. You can't copy the memory to the VFO, fix the one mistake you made, and save it back to memory as on other radios. You must re-set every setting you wish to store including frequency, offset, tone squelch, name, etc before saving to memory. This is pretty annoying. Most folks seem to work around this issue by buying the programming cable.
On air the radio works fine. I live out in the country so interference isn't a big issue; the ARRL lab gave the receiver pretty crappy marks so you might have a different experience if you live in a city. Rage seems good and my audio reports are a bit tinny but perfectly readable. Apparently there is a mic mod to cure the tinny-ness.
Despite it's shortcomings, this is a lot of radio for the price, and I think an excellent value. Hopefully the next generation of Chinese radios will be even better, or Japan radio prices will come down, or both. Either way it's a win for ham radio operators.
Update: 2012-07-23
I have not been able to get the programming software to work on Linux. The Wine list suggests there is a bug in the kernel module for the particular USB serial chip. I tried applying the patch and rebuilding the module, to no avail.
I have been using the FM broadcast receive feature, and I discovered quite by accident that the radio keeps monitoring your ham channel, and automatically cuts over to it on activity. So you can listen to music and monitor the repeater at the same time! That's pretty cool.
Update: 2014-01-11
I have been able to program the rig with my Linux box using the latest snapshot of CHIRP. As of this writing, the version of CHIRP bundled with Linux Mint is too old to support the TYT, so you need to build from sources. http://chirp.danplanet.com/projects/chirp/wiki/Home
Tuesday, March 6, 2012
Saturday, February 5, 2011
Running Windows on EC2
There seems to be some sort of bug with running Amazon's Windows AMIs on EC2. They "start" pretty quickly, but then you can't log in. Ever. Or at least not after 30 minutes, 4 hours, or days even. The image is configured to generate an admin password on boot and print it in the console log so you can remote desktop into the instances. Except the password NEVER appears in the console log. Which basically means it's useless. It's crazy Amazon actually charges for the time too. Their forum has over 230 posts regarding this issue going back over two years. Amazon's response, if any, is usually "wait longer" or "terminate it and start another one." I started four instances yesterday and waited between 15 minutes and an hour and wasn't able to use a single one. Absurd.
Thursday, April 15, 2010
How to use SQLAlchemy & MySQL with py2exe
py2exe doesn't automatically detect the dependencies, so you have to explicitly tell it to include the modules in the setup function.
E.g.
E.g.
from distutils.core import setup import py2exe setup( console=['myprog.py'], options=dict( py2exe=dict( includes=['sqlalchemy.databases.mysql', 'MySQLdb'] ) ) )
Sunday, March 28, 2010
How to compile the Apache QPID C++ broker from SVN without checking out the Java broker.
I was trying to check out and build the Apache Qpid C++ broker from source. The instructions say to check out http://svn.apache.org/repos/asf/qpid/branches/0.6-release/qpid/. But that Java broker dir is HUGE and I don't event WANT the Java broker!
So at first I just checked out the cpp dir. Why not? Well the build breaks in a strange way, something about cannot execute rubygen.mk.
It turns out that there is a dependency on the specs dir. But autoconf doesn't tell you about it. So you must check out BOTH dirs to a common dir, then build the cpp broker.
eg:
That should do it.
So at first I just checked out the cpp dir. Why not? Well the build breaks in a strange way, something about cannot execute rubygen.mk.
make[1]: execvp: ./rubygen.mk: Permission denied
It turns out that there is a dependency on the specs dir. But autoconf doesn't tell you about it. So you must check out BOTH dirs to a common dir, then build the cpp broker.
eg:
mkdir qpid
cd qpid
svn co http://svn.apache.org/repos/asf/qpid/branches/0.6-release/qpid/cpp cpp
svn co http://svn.apache.org/repos/asf/qpid/branches/0.6-release/qpid/specs specs
cd cpp
./bootstrap
./configure
make
make check
make install
That should do it.
Tuesday, March 9, 2010
SWIG, Python, and stopping C++ objects from being destroyed when they fall out of scope.
I recently had an issue with SWIG and Python. I had wrapped two C++ classes, lets call them class A and class B. Class B takes as an argument to it's constructor a pointer to an instance of class A and saves it in a member variable for later use.
EG C++ code:
Now in Python I do this:
The problem is that Python doesn't know that b is holding a reference to a, and it destroys a when it falls out of scope.
I spent hours digging through the SWIG documentation trying to find an elegant way to inform SWIG that it should increment the reference count on a when I call the b constructor, to no avail. Finally I came up with a hack that works pretty well. I used the %feature("pythonappend") mechanism to extend the B proxy class constructor so that it saves a reference to the a it's passed. The code in the .i file looks like this
which modifies the proxy class constructor thus:
Now when a B is created it's proxy object keeps a reference to the A it's passed, causing python to increment the A's reference count, preventing it from being destroyed when it falls out of scope. When the B proxy object is destroyed, the refcount on A will be decremented, making it available for garbage collection as well.
You can make this a bit more convenient by defining a SWIG macro
The only potential issue I can see with this approach is that it clutters the namespace; it's up to the programmer not to clobber anything.
It's also not particularly elegant; it would be nice if SWIG offered a simple typemap or decorator or something to indicate that a particular object saves a reference to another object for the duration of it's life.
Note: I've confirmed this technique works, but I haven't tested the specific code in this post, cut and pasters beware.
EG C++ code:
class A {
void;
};
class B {
public:
B(A* a) { this->a = a; }
A* a;
};Now in Python I do this:
def make_B():
a = A()
b = B(a)
return b
b = make_B()
print b.a # garbage, or segfaultThe problem is that Python doesn't know that b is holding a reference to a, and it destroys a when it falls out of scope.
I spent hours digging through the SWIG documentation trying to find an elegant way to inform SWIG that it should increment the reference count on a when I call the b constructor, to no avail. Finally I came up with a hack that works pretty well. I used the %feature("pythonappend") mechanism to extend the B proxy class constructor so that it saves a reference to the a it's passed. The code in the .i file looks like this
%feature("pythonappend") B(A*) %{
self._ref_to_a = args[0] # a refcount +=1
%}which modifies the proxy class constructor thus:
def __init__(self, *args):
this = _mymodule.new_B(*args)
try: self.this.append(this)
except: self.this = this
+ ref_to_a = args[0] # a refcount +=1Now when a B is created it's proxy object keeps a reference to the A it's passed, causing python to increment the A's reference count, preventing it from being destroyed when it falls out of scope. When the B proxy object is destroyed, the refcount on A will be decremented, making it available for garbage collection as well.
You can make this a bit more convenient by defining a SWIG macro
%define %SAVE_ARGS_REF(function, argnum)
%feature("pythonappend") function %{
self.__saved_ref_ ## argnum = args[ argnum ]
%}
%enddef
%SAVE_ARGS_REF( B(A*), 0)The only potential issue I can see with this approach is that it clutters the namespace; it's up to the programmer not to clobber anything.
It's also not particularly elegant; it would be nice if SWIG offered a simple typemap or decorator or something to indicate that a particular object saves a reference to another object for the duration of it's life.
Note: I've confirmed this technique works, but I haven't tested the specific code in this post, cut and pasters beware.
Monday, August 4, 2008
Trackulator: APRS Web Service on Google App Engine
I've been experimenting with APRS for quite a while. I even wrote a pure-Perl APRS parser, Ham::APRS::Parser, which is on Sourceforge (although not CPAN, I'm too lazy to polish it up for submission.) For quite some time I've wanted to write an APRS web client/service. I really wanted to write it in Python, make it open source, and to allow public programmatic access to the database. But I could never find a web application framework and hosting solution that I was happy with, and so it sat on the back burner for years.
Then I read about Google App Engine. Free Python web application hosting on an automagically scaling cluster?? Sign me up! I banged out a very simple APRS web application in about a day.
Google App Engine has several limitations. There is no cron, and no long running processes. The only way to interact is via HTTP, and any request that doesn't return within a few seconds is terminated with great prejudice. Furthermore it doesn't allow access to low level sockets. So it was impossible for the web application to receive the APRS-IS stream directly.
I solved this problem by writing a small daemon to run on my computer at work. It connects to the APRS-IS server, collects the packets, and every couple of seconds it uploads a chunk of them to the site via an HTTP POST request. It's a bit kludgy, the Python daemon opens the APRS-IS connection, then pipes the raw data to my Ham::APRS::Parser, which pipes the decoded packets back to Python in a different pack()'ed encoding. This is a very efficient way to transfer as many packets as possible while incurring the lowest possible processing and transit overhead. Once the web app receives the request, it unpack()'s each report, and inserts them into the GAE datastore.
Right now it's only receiving the USA stream. Processor time and disk storage are the major constraints. Google set some fairly low resources quotas for the GAE testing period. Eventually I would like to feed it the global stream; when GAE goes production, it will be possible to purchase additional resources.
Reports are stored using the GAE Datastore, which is based on Google's Bigtable DBMS. This is supposed to scale up into the petabyte zone with good performance, although currently Google limits GAE apps to 500MB. Again, when GAE goes production, it will be possible to buy more storage. The datastore performance has not actually been very good so far. I can only insert 30 or so position reports in a single request, any more and my request times out before the datastore finishes inserting them. This usually takes a few seconds to process and works OK. Still, sometimes the requests take over 10 seconds and time out, and currently that causes the data to be lost. This is probably due to varying load on whatever server is handling that particular request. I could send fewer reports per HTTP request, but that really seems like a waste of overhead resources.
Deleting old data from the datastore is also an issue. Here I can only seem to safely handle about 10 reports at a time, and even that times out even more frequently than the inserts do. Currently I'm deleting all reports over 24 hours old. This results in a database that is approximately 200MB in size, for just the USA feed.
I wrote a horribly simple query function that returns an ugly static Google map with the station's 25 most recent reports, and a track-line (if any).
I have also written a simple JSON API to allow remote programmatic database queries. Anybody anywhere can efficiently query the database using HTTP and JSON from any programming language they like. Google App Engine will automatically scale the application across as many servers as necessary to handle this load. This is what really sets this system apart from the other web APRS offerings. Except for OpenAPRS, which also offers a programmatic interface via XML. Oh well. None of the other APRS web clients that I am aware of (FindU, aprs.fi) offer programmatic access.
Future plans include storing APRS data beyond just positions, additional search API functions, and expanding to the global feed. I suppose a prettier web GUI would be nice but I'm not really much of a JavaScript programmer. Maybe if I provide the database API, somebody else will work on the GUI.
Please try it out. You can get a list of moving callsigns to search from from http://aprs.fi/moving/. Please report any issues you find. Remember, not only is my application in testing, but Google App Engine is in testing, so anything might happen. Don't rely on this for production use.
Trackulator is Copyright 2008 Jeffrey M. Laughlin, and is released under the GNU AGPL.
Related links:
Then I read about Google App Engine. Free Python web application hosting on an automagically scaling cluster?? Sign me up! I banged out a very simple APRS web application in about a day.
Google App Engine has several limitations. There is no cron, and no long running processes. The only way to interact is via HTTP, and any request that doesn't return within a few seconds is terminated with great prejudice. Furthermore it doesn't allow access to low level sockets. So it was impossible for the web application to receive the APRS-IS stream directly.
I solved this problem by writing a small daemon to run on my computer at work. It connects to the APRS-IS server, collects the packets, and every couple of seconds it uploads a chunk of them to the site via an HTTP POST request. It's a bit kludgy, the Python daemon opens the APRS-IS connection, then pipes the raw data to my Ham::APRS::Parser, which pipes the decoded packets back to Python in a different pack()'ed encoding. This is a very efficient way to transfer as many packets as possible while incurring the lowest possible processing and transit overhead. Once the web app receives the request, it unpack()'s each report, and inserts them into the GAE datastore.
Right now it's only receiving the USA stream. Processor time and disk storage are the major constraints. Google set some fairly low resources quotas for the GAE testing period. Eventually I would like to feed it the global stream; when GAE goes production, it will be possible to purchase additional resources.
Reports are stored using the GAE Datastore, which is based on Google's Bigtable DBMS. This is supposed to scale up into the petabyte zone with good performance, although currently Google limits GAE apps to 500MB. Again, when GAE goes production, it will be possible to buy more storage. The datastore performance has not actually been very good so far. I can only insert 30 or so position reports in a single request, any more and my request times out before the datastore finishes inserting them. This usually takes a few seconds to process and works OK. Still, sometimes the requests take over 10 seconds and time out, and currently that causes the data to be lost. This is probably due to varying load on whatever server is handling that particular request. I could send fewer reports per HTTP request, but that really seems like a waste of overhead resources.
Deleting old data from the datastore is also an issue. Here I can only seem to safely handle about 10 reports at a time, and even that times out even more frequently than the inserts do. Currently I'm deleting all reports over 24 hours old. This results in a database that is approximately 200MB in size, for just the USA feed.
I wrote a horribly simple query function that returns an ugly static Google map with the station's 25 most recent reports, and a track-line (if any).
I have also written a simple JSON API to allow remote programmatic database queries. Anybody anywhere can efficiently query the database using HTTP and JSON from any programming language they like. Google App Engine will automatically scale the application across as many servers as necessary to handle this load. This is what really sets this system apart from the other web APRS offerings. Except for OpenAPRS, which also offers a programmatic interface via XML. Oh well. None of the other APRS web clients that I am aware of (FindU, aprs.fi) offer programmatic access.
Future plans include storing APRS data beyond just positions, additional search API functions, and expanding to the global feed. I suppose a prettier web GUI would be nice but I'm not really much of a JavaScript programmer. Maybe if I provide the database API, somebody else will work on the GUI.
Please try it out. You can get a list of moving callsigns to search from from http://aprs.fi/moving/. Please report any issues you find. Remember, not only is my application in testing, but Google App Engine is in testing, so anything might happen. Don't rely on this for production use.
Trackulator is Copyright 2008 Jeffrey M. Laughlin, and is released under the GNU AGPL.
Related links:
Saturday, March 1, 2008
Greenlee CableCaster
Update 2012-09-01:
It only shoots UP about 20', which I guess makes sense when you think about it's 50' "range". It's a neat toy, but not that useful for hanging antennas.
Subscribe to:
Posts (Atom)