Menu

#15 Kenwood TS-2000 memory and csv memory load

closed-accepted
None
5
2011-09-11
2011-09-09
Anonymous
No

Hi,
Needed that, so I had to create the code. My patch allows for memory reading and writing for Kenwood TS-2000.
It also allows for loading csv (comma-separated values) files with rigmem.
This is my first experience with hamlib programming, so I expect there are some errors in my procedures
(though they work fine for me), but I'll be happy to correct them if I can.
Cheers,
Dariusz, SQ9KEJ

Discussion

  • Stéphane Fillod

    Thanks Dariusz for the patch, very good.

    The TS-2000 part has already been applied with some minor edits, like the RIG_CHFLAG_REVERSE which is better defined by RIG_FUNC_REV and some backend improvements while I was at it.
    I'm going to review and apply the memcsv next.

    BTW, if you're into rig memory programming, have you checked out pyrime?
    https://sourceforge.net/apps/mediawiki/hamlib/index.php?title=Pyrime
    Feedback welcome.

     
  • Stéphane Fillod

    • status: open --> open-accepted
     
  • Nobody/Anonymous

    Stephane,
    Thanks for appreciation, I will be glad to see my code in next revision of hamlib.

    Yes, I've tried pyrime, actually that was what directed my attention towards improving
    hamlib. Unfortunately, even with hamlib supporting TS-2000 memory operations,
    with rigmem working fine, pyrime still doesn't work. It starts fine, but it ends with
    timeouts while reading memory:
    kenwood_transaction called
    kenwood_transaction: cmdstr = MR0000;
    TX 7 bytes
    0000 4d 52 30 30 30 30 3b MR0000;
    read_string: timedout without reading a character
    TX 7 bytes
    0000 4d 52 30 30 30 30 3b MR0000;
    read_string: timedout without reading a character
    TX 7 bytes
    0000 4d 52 30 30 30 30 3b MR0000;
    read_string: timedout without reading a character
    TX 7 bytes
    0000 4d 52 30 30 30 30 3b MR0000;
    read_string: timedout without reading a character
    rig:rig_cleanup called
    rig:rig_close called
    kenwood_cleanup called

    Here I'm helpless, I don't know python at all.
    Dariusz, SQ9KEJ

     
  • Stéphane Fillod

    • assigned_to: nobody --> fillods
    • status: open-accepted --> closed-accepted
     
  • Stéphane Fillod

    Dariusz, the second part of your patch (csv loading) has been applied.

    Regarding pyrime and your TS-2000, when you say
    "It starts fine, but it ends with timeouts while reading memory",
    are some commands (like 'ID') successful before issuing the "MR0000" ?
    Can you send me at fillods@users.sf.net the full traces from the startup of pyrime.py ?

    What serial interface are you using?
    What is the command line you are using with rigmem?

    Rem: regarding Python, you may find it very familiar with the C language ;-)

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.