[chirp_devel] New user here - TS-2000 support
Hi, all.
I recently discovered Chirp, and I am hoping to be able to customize it to work with my Kenwood TS-2000.
After writing a programmer for the TS-2000 in C#, I am starting to love Kenwood's communication protocol. There's no "memory dump" programming method here; the radio actually validates input and uses an actual command/response system for programming the machine.
The nice part is that you can program just what you need: setting one menu change or one memory slot is a cinch. On my Yaesus, it was all or nothing... on this rig, changing the PL tone of one channel without affecting anything else is simple.
So here's my situation: I am an experienced programmer. You talk to me about technical stuff and I follow right along. I've already written a programmer for the TS2K, even though it doesn't have much of a UI.
However, I don't know Python - at all. I do know c and its descendants (C++, C#, Java, etc), VB (both VBA/VBScript and .Net), and enough php to get by... but I've never set up a Python dev environment.
So is there a site where I can get the whirlwind tour on setting up a Windows box to use Python? Also, which source control tool will I need for downloading from the repository?
Thanks for your help -Tom
On Mon, May 14, 2012 at 10:44 AM, Tom Wilson wilsontp@gmail.com wrote: ...
So here's my situation: I am an experienced programmer. You talk to me about technical stuff and I follow right along. I've already written a programmer for the TS2K, even though it doesn't have much of a UI.
See this file for Chirp's implementation of the Kenwood live programming protocol: http://chirp.danplanet.com/projects/chirp/repository/entry/chirp/kenwood_liv...
Sorry the code syntax highlighting isn't working.
However, I don't know Python - at all. I do know c and its descendants (C++, C#, Java, etc), VB (both VBA/VBScript and .Net), and enough php to get by... but I've never set up a Python dev environment.
So is there a site where I can get the whirlwind tour on setting up a Windows box to use Python? Also, which source control tool will I need for downloading from the repository?
Thanks for your help -Tom
You're probably on your own for Windows. I don't think any of the other devs use Windows :-)
The scm tool is mercurial (hg).
Tom KD7LXL
After writing a programmer for the TS-2000 in C#, I am starting to love Kenwood's communication protocol. There's no "memory dump" programming method here; the radio actually validates input and uses an actual command/response system for programming the machine.
This is just how those radios are, and it's how chirp works on them as well.
So is there a site where I can get the whirlwind tour on setting up a Windows box to use Python? Also, which source control tool will I need for downloading from the repository?
Well, it's a lot more work on Windows than Linux, of course, but it's doable. If you would be willing to document the process on the wiki as you go through it, you'll earn major points with me that you can cash in later :P
On my build machine I have the following:
- Python 2.7 - pywin32-216 - pygtk-all-in-one-2.24.2 - libxml2 2.7.7 - py2exe 0.6.9 (not really required for you)
Links:
http://python.org http://sourceforge.net/projects/pywin32/ http://ftp.gnome.org/pub/GNOME/binaries/win32/pygtk/2.24/ http://users.skynet.be/sbi/libxml-python/
The source is here, using mercurial:
Also check out some of the links here:
http://chirp.danplanet.com/projects/chirp/wiki/Developers
Thanks!
While searching for "Getting Started with Python" on Google, I stumbled across ActivePython: http://www.activestate.com/activepython/downloads
This looks like a "starter edition" for ActiveState's enterprise products, but this may be a place to get started. I'm going to play with this for a little bit today. If this works, it's a 1-click install to get from nothing to having a working dev environment.
On Mon, May 14, 2012 at 10:00 AM, Dan Smith dsmith@danplanet.com wrote:
Well, it's a lot more work on Windows than Linux, of course, but it's doable. If you would be willing to document the process on the wiki as you go through it, you'll earn major points with me that you can cash in later :P
--
Tom Wilson wilsontp@gmail.com (619)940-6311 KI6ABZ
This looks like a "starter edition" for ActiveState's enterprise products, but this may be a place to get started. I'm going to play with this for a little bit today. If this works, it's a 1-click install to get from nothing to having a working dev environment.
I would highly recommend against this approach. First, it won't be a "one click" because you still have to install the other packages I mentioned. Second, it's not clear/guaranteed that those will work with AS's python installation as it's expected that you're using the python.org version.
Also, I forgot, you need python-serial as well.
Thanks, Dan.
I installed python (32 bit. 64 bit doesn't work with the XML library), pywin32, pygtk, the XML library, and the serial library all on my system.
I'm guessing I need to run mainapp.py in the chirpui directory, but I'm getting an error when I do so: Traceback (most recent call last): File "mainapp.py", line 42, in <module> from chirpui import editorset, clone, miscwidgets, config, reporting, fips File "..\chirpui\editorset.py", line 21, in <module> from chirpui import memedit, dstaredit, bankedit, common, importdialog File "..\chirpui\memedit.py", line 61, in <module> class MemoryEditor(common.Editor): File "..\chirpui\memedit.py", line 63, in MemoryEditor (_("Loc") , TYPE_INT, gtk.CellRendererText, ), NameError: name '_' is not defined
am I missing something?
On Mon, May 14, 2012 at 10:34 AM, Dan Smith dsmith@danplanet.com wrote:
This looks like a "starter edition" for ActiveState's enterprise products, but this may be a place to get started. I'm going to play with this for a little bit today. If this works, it's a 1-click install to get from nothing to having a working dev environment.
I would highly recommend against this approach. First, it won't be a "one click" because you still have to install the other packages I mentioned. Second, it's not clear/guaranteed that those will work with AS's python installation as it's expected that you're using the python.org version.
Also, I forgot, you need python-serial as well.
-- Dan Smith www.danplanet.com KK7DS
chirp_devel mailing list chirp_devel@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_devel
On Mon, May 14, 2012 at 3:34 PM, Tom Wilson wilsontp@gmail.com wrote:
Thanks, Dan.
I installed python (32 bit. 64 bit doesn't work with the XML library), pywin32, pygtk, the XML library, and the serial library all on my system.
I'm guessing I need to run mainapp.py in the chirpui directory, but I'm getting an error when I do so:
Run chirpw (one directory higher).
Tom KD7LXL
Hmm.... getting warmer.
I'm on Windows 7 64-bit. I've installed all 32-bit tools, though, since the XML Library would not install when I started with the 64-bit version of Python. So I went back and started over with 32-bit Python.
Traceback (most recent call last): File "chirpw", line 42, in <module> platform.get_platform().os_version_string(), File "D:\projects\Chirp\chirp\platform.py", line 384, in os_version_string import win32api ImportError: DLL load failed: %1 is not a valid Win32 application.
On Mon, May 14, 2012 at 2:36 PM, Tom Hayward esarfl@gmail.com wrote:
On Mon, May 14, 2012 at 3:34 PM, Tom Wilson wilsontp@gmail.com wrote:
Thanks, Dan.
I installed python (32 bit. 64 bit doesn't work with the XML library), pywin32, pygtk, the XML library, and the serial library all on my system.
I'm guessing I need to run mainapp.py in the chirpui directory, but I'm getting an error when I do so:
Run chirpw (one directory higher).
Tom KD7LXL _______________________________________________ chirp_devel mailing list chirp_devel@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_devel
oh. I see what I did.
I grabbed the x86 tools for everything except Pywin. I had managed to grab the am64 version instead. I installed the 32-bit version, and I can now get the UI running.
So I'll play with it tonight and see how things go.
Thanks, Dan! -Tom
On Mon, May 14, 2012 at 2:39 PM, Tom Wilson wilsontp@gmail.com wrote:
Hmm.... getting warmer.
I'm on Windows 7 64-bit. I've installed all 32-bit tools, though, since the XML Library would not install when I started with the 64-bit version of Python. So I went back and started over with 32-bit Python.
Traceback (most recent call last): File "chirpw", line 42, in <module> platform.get_platform().os_version_string(), File "D:\projects\Chirp\chirp\platform.py", line 384, in os_version_string import win32api ImportError: DLL load failed: %1 is not a valid Win32 application.
On Mon, May 14, 2012 at 2:36 PM, Tom Hayward esarfl@gmail.com wrote:
On Mon, May 14, 2012 at 3:34 PM, Tom Wilson wilsontp@gmail.com wrote:
Thanks, Dan.
I installed python (32 bit. 64 bit doesn't work with the XML library), pywin32, pygtk, the XML library, and the serial library all on my
system.
I'm guessing I need to run mainapp.py in the chirpui directory, but I'm getting an error when I do so:
Run chirpw (one directory higher).
Tom KD7LXL _______________________________________________ chirp_devel mailing list chirp_devel@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_devel
-- Tom Wilson wilsontp@gmail.com (619)940-6311 KI6ABZ
participants (3)
-
Dan Smith
-
Tom Hayward
-
Tom Wilson