[chirp_users] can't upload to 2820
Hello,
I'm having problems uploading to my 2820 (downloading works). The upload progresses until the CHIRP progress bar has hit 100%, and the 2820 progress bar has *almost* hit 100%, then the window with the CHIRP progress bar closes, and the radio just sits there saying "CLONE IN", and showing the progress bar a pixel or two away from completion. I'm forced to power cycle the radio, at which point it resets to factory settings.
I'm running Fedora 16, and was using chirp-0.1.12-5.fc16 from the repository. I've tried upgrading to chirp-0.2.0-1.fc16, also from the repository, and am seeing the same problem.
I'm using the data port, not the speaker port. I dug out an old Windows laptop and tried the Icom CS-2820 software - it works, so the radio and cable both work.
This used to work for me. I haven't used CHIRP in quite some time as I haven't needed to make any changes to the radio's programming, so unfortunately I can't say when it stopped working.
Here's the relevant portion of the output when run from a terminal:
---------------------------------------------------------------- Clone thread started Starting HiSpeed: 000: fe fe fe fe fe fe fe fe ........ 008: fe fe fe fe fe fe fe fe ........ 016: fe fe fe fe ee ef e8 29 .......) 024: 70 00 01 00 00 02 01 fd p.......
Response:
Switching to 38400 baud Starting HiSpeed Clone: 000: fe fe fe fe fe fe fe fe ........ 008: fe fe fe fe fe fe ee ef ........ 016: e3 29 70 00 00 fd 00 00 .)p.....
-- Exception: -- Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/chirpui/clone.py", line 219, in run self.__radio.sync_out() File "/usr/lib/python2.7/site-packages/chirp/icf.py", line 529, in sync_out clone_to_radio(self) File "/usr/lib/python2.7/site-packages/chirp/icf.py", line 349, in clone_to_radio raise errors.RadioError("Did not get clone result from radio") RadioError: Did not get clone result from radio ------ Clone failed: Did not get clone result from radio Clone thread ended ----------------------------------------------------------------
73, Brian VE7NGR
Hi Brian,
Try today's daily build and see if it does the same thing: yum update chirp-daily_daily_031520121.fc16-1 or yum update chirp-daily_daily_031520121
It just got pushed it to the repository on d-rats.com, and I don't know how long it will take to show up in the repo list, so if it tells you it's not there you can download the file here: http://ham.n0so.net/fileadmin/ham/apps/rpm/fedora/16/noarch/chirp-daily_0315...
Then do a yum local install chirp-daily_03152012-1.fc16.noarch.rpm
I haven't done much testing with my 2820 recently. Please report back and let us know what happens.
73, Mike, N0SO
On Mar 15, 2012, at 1:38 AM, Brian Mury ve7ngr@rac.ca wrote:
Hello,
I'm having problems uploading to my 2820 (downloading works). The upload progresses until the CHIRP progress bar has hit 100%, and the 2820 progress bar has *almost* hit 100%, then the window with the CHIRP progress bar closes, and the radio just sits there saying "CLONE IN", and showing the progress bar a pixel or two away from completion. I'm forced to power cycle the radio, at which point it resets to factory settings.
I'm running Fedora 16, and was using chirp-0.1.12-5.fc16 from the repository. I've tried upgrading to chirp-0.2.0-1.fc16, also from the repository, and am seeing the same problem.
I'm using the data port, not the speaker port. I dug out an old Windows laptop and tried the Icom CS-2820 software - it works, so the radio and cable both work.
This used to work for me. I haven't used CHIRP in quite some time as I haven't needed to make any changes to the radio's programming, so unfortunately I can't say when it stopped working.
Here's the relevant portion of the output when run from a terminal:
Clone thread started Starting HiSpeed: 000: fe fe fe fe fe fe fe fe ........ 008: fe fe fe fe fe fe fe fe ........ 016: fe fe fe fe ee ef e8 29 .......) 024: 70 00 01 00 00 02 01 fd p.......
Response:
Switching to 38400 baud Starting HiSpeed Clone: 000: fe fe fe fe fe fe fe fe ........ 008: fe fe fe fe fe fe ee ef ........ 016: e3 29 70 00 00 fd 00 00 .)p.....
-- Exception: -- Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/chirpui/clone.py", line 219, in run self.__radio.sync_out() File "/usr/lib/python2.7/site-packages/chirp/icf.py", line 529, in sync_out clone_to_radio(self) File "/usr/lib/python2.7/site-packages/chirp/icf.py", line 349, in clone_to_radio raise errors.RadioError("Did not get clone result from radio") RadioError: Did not get clone result from radio
Clone failed: Did not get clone result from radio Clone thread ended
73, Brian VE7NGR
chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users
Starting HiSpeed:
When you used the laptop, was CS-2820 configured for high-speed cloning? Even still, I wonder if maybe it's older and slower enough that your regular (presumably fast) machine is going *too* fast in hi-speed mode...
You could try this to see if it helps:
diff -r 8229eb1649d8 chirp/ic2820.py --- a/chirp/ic2820.py Wed Mar 14 13:29:29 2012 -0700 +++ b/chirp/ic2820.py Thu Mar 15 06:49:09 2012 -0700 @@ -110,7 +110,7 @@
_num_banks = 26 _bank_class = IC2820Bank - _can_hispeed = True + _can_hispeed = False
On 3/15/2012 6:49 AM, Dan Smith wrote:
When you used the laptop, was CS-2820 configured for high-speed cloning?
I didn't know there was a configuration option for that! It seemed slow compared to the CHIRP high speed cloning (more like the slow speed cloning before I updated from CHIRP 1.2). I didn't pay that much attention to the speed, so I could be wrong - I'll check tonight when I get home from work.
Even still, I wonder if maybe it's older and slower enough that your regular (presumably fast) machine is going *too* fast in hi-speed mode...
The Windows laptop is old and slow, the Linux desktop is very fast, so that's quite possible. I was seeing the same thing with 1.2, which seemed to be not be using high speed cloning. Not sure if that's a useful data point for you.
Oh - I do have a Ubuntu partition on the laptop that I could test with if that would be helpful.
You could try this to see if it helps:
diff -r 8229eb1649d8 chirp/ic2820.py
Thanks, I'll try that also when I get home (as well as Mike's daily build suggestion - thanks Mike).
Brian
Oh - I do have a Ubuntu partition on the laptop that I could test with if that would be helpful.
Or just the windows chirp build would be helpful, yeah.
Thanks, I'll try that also when I get home (as well as Mike's daily build suggestion - thanks Mike).
Hmm, well, looking back at your mail, I'm not sure it's going to matter. You said that it was failing with 0.1.12 too, right? Since hispeed cloning wasn't enabled there, then it appears the problem is elsewhere. When did it last work for you? I've blasted about twenty images into my 2820 today trying to find any sort of issue, but I got nothing. The chirp error indicating that the radio didn't ack the last block is harmless, by the way.
On 3/15/2012 12:50 PM, Dan Smith wrote:
Or just the windows chirp build would be helpful, yeah.
Ok, I'll give that a try (I might try the Linux build on the laptop too just for fun).
Hmm, well, looking back at your mail, I'm not sure it's going to matter. You said that it was failing with 0.1.12 too, right?
Correct. I went looking for a newer version specifically because it wasn't working.
When did it last work for you?
No idea. Like I said, I haven't had a need to do any reprogramming for a while. I can check the timestamp on the image I was using, that should give me an idea, but I can't guarantee I haven't done something to touch it at some point (there's a good chance it may have been touched when installing a new Fedora release).
I've blasted about twenty images into my 2820 today trying to find any sort of issue, but I got nothing.
Ah... bugs that you can't reproduce are no fun to chase. I write code for a living, I know what that's like. I'm happy to do as much debugging as I can if you're willing to do a bit of hand-holding along the way (I don't know Python, and am not terribly experienced with Linux development tools).
The chirp error indicating that the radio didn't ack the last block is harmless, by the way.
The error might be harmless, but the radio hanging sure isn't! ;-) I end up with factory settings (including no programmed memories) when I power cycle it (the only way to recover).
Thanks for the help, I'll pass on my findings this evening.
Brian
On Thu, 2012-03-15 at 13:53 -0700, Dan Smith wrote:
Thanks for the help, I'll pass on my findings this evening.
Okay, thanks!
Here's what I've tried, and my results.
On the desktop:
Installed the daily build (chirp-daily_03072012-1.fc16.noarch). Tried low and high speed. Neither worked.
On the laptop:
Windows, CS-2820, low and high speed, both work. Windows, Chirp 0.2.0, low and high speed, both work. Ubuntu, Chirp 0.1.2 (from .deb), works. Ubuntu, Chirp 0.2.0 (from tarball), low and high speed, both work.
Brian
Here's what I've tried, and my results.
On the desktop:
Installed the daily build (chirp-daily_03072012-1.fc16.noarch). Tried low and high speed. Neither worked.
On the laptop:
Windows, CS-2820, low and high speed, both work. Windows, Chirp 0.2.0, low and high speed, both work. Ubuntu, Chirp 0.1.2 (from .deb), works. Ubuntu, Chirp 0.2.0 (from tarball), low and high speed, both work.
Brian
Sorry, yesterday was my XYLs birthday, so I ignored radios and spent the day with her. I'll do some testing with my 2820 and IC92 this afternoon.
Did anyone try running yesterdays daily with a 2820 from source on Fedora? (yum erase chirp, followed by downloading the latest daily tarball, uncompressing an running chirpw)
Just wondering if we can narrow this down to something with only the RPM packaged builds.
Mike, N0SO
Just wondering if we can narrow this down to something with only the RPM packaged builds.
I really can't imagine why that would be. Brian could test the tarball on the desktop and figure it out pretty quick.
Brian, what kind of serial port are you using on each?
The icom clone (not live) code is identical for all icom radios, and has been rock solid since the very beginning of time. There is so much evidence that it's right that I _have_ to look elsewhere first. I'd believe that any of the yaesu clone operations could use some tweaking, but not the icom stuff...
Just wondering if we can narrow this down to something with only the RPM packaged builds.
I really can't imagine why that would be. Brian could test the tarball on the desktop and figure it out pretty quick.
Just trying eliminate that as a problem. My money is on the bank programming code ;-)
I'll try the tarball this afternoon.
Just trying eliminate that as a problem.
Sure, I'd love for it to be a problem with the daily build, I just don't have much hope :)
My money is on the bank programming code ;-)
Hmm, I don't think so. Just downloading an image and then uploading it again shouldn't involve any of that stuff (it's different for alive radio like the IC-9x). By the time it's uploading, chirp is locked into a control loop with the radio and it does nothing else. And, he said he was happening with 0.1.12.
Although, it's possible that he has something in his image that the radio doesn't like, which might be what you meant. Entirely possible in that case.
Brian, can you send me your image to see if my 2820 chokes on it?
I'm replying to a few different emails in one reply.
Did anyone try running yesterdays daily with a 2820 from source on Fedora?
I just tried that with 0.2.0 and with daily-03172012. High and low speed with both. No luck. It's not the RPM.
Brian, what kind of serial port are you using on each?
The laptop has a built-in RS-232 port.
The desktop has an older 4 port RS-232 PCI card that's probably in it's third computer by now, I think. It has worked with CHIRP before, though I'm not sure if I've used it with CHIRP in this PC, which is fairly new - I suspect I have not.
lspci -v output:
04:00.0 Serial controller: Lava Computer mfg Inc Quattro-PCI A (prog-if 02 [16550]) Flags: slow devsel, IRQ 18 I/O ports at eff8 [size=8] I/O ports at eff0 [size=8] Kernel driver in use: serial
04:00.1 Serial controller: Lava Computer mfg Inc Quattro-PCI B (prog-if 02 [16550]) Flags: slow devsel, IRQ 18 I/O ports at efe8 [size=8] I/O ports at efe0 [size=8] Kernel driver in use: serial
This is actually one PCI card, in spite of what lspci says; it's normal for it to show up as 2 devices with 2 ports each. It is working fine with other applications/devices (radio control, TNCs, etc).
My motherboard has support for one RS-232 port, but has no connector. It has a header on the motherboard, I would need a cable to provide a connector so I could actually use it (annoyingly, the motherboard didn't come with one). I just ordered one so I can try with the motherboard's serial port, but don't expect to have it for a couple weeks or so.
Although, it's possible that he has something in his image that the radio doesn't like, which might be what you meant. Entirely possible in that case.
Brian, can you send me your image to see if my 2820 chokes on it?
I doubt that's the problem. I've used a couple different images, and also tried downloading, then immediately re-uploading. And the big one: the image that I successfully used on the laptop, with both Windows and Linux, is the same image that isn't working on the desktop.
I'm happy to send it to you if you still want it.
Brian
Ok, one more thing I just tried...
On the desktop, I made the serial port available to a Windows XP virtual machine (using VirtualBox), uploaded my image with Windows CHIRP - and it worked!
Brian
From: Brian Mury ve7ngr@rac.ca Subject: Re: [chirp_users] can't upload to 2820 To: chirp_users@intrepid.danplanet.com Date: Saturday, March 17, 2012, 8:42 PM Ok, one more thing I just tried...
On the desktop, I made the serial port available to a Windows XP virtual machine (using VirtualBox), uploaded my image with Windows CHIRP - and it worked!
I tested with my IC-2820 late yesterday (it's mounted under the seat in my old Dodge Dakota pickup. I'm glad I left a data cable connected so I didn't need to dig out the radio!):
Computer: Dell XPS-1530 laptop (Duo core 2.4 GHz CPU, 4Gb RAM, Prolific USB/RS-232 adapter)
OS: Fedora 16 Linux (kernel V 3.2.9-2.fc16.x86_64)
Chirp-daily_03172012
I had no problems downloading from the radio or uploading to the radio, chirp worked as I would expect.
Then I rebooted the laptop and switched to Windows. Same computer: Computer: Dell XPS-1530 laptop (Duo core 2.4 GHz CPU, 4Gb RAM, Prolific USB/RS-232 adapter)
OS: Windows 7 (32 bit)
Chirp-daily_03172012 (win32 version)
The Windows version of chirp worked as expected too.
... I do admit, I made a backup using the ICOM CS-2820 software before I started all of this, just to be safe. I guess it's good to "blow the cobwebs" off that part of this laptop's hard drive once in a while!
Brian, your test results with Windows in a VM are interesting... it makes me wonder if this is not a timing issue of some sort, or an issue with the Linux driver for your serial card. A test with Fedora 16/i686 running in a VM on that same machine and serial port might prove interesting.
I've got one of our club ID-800H radios here too, after church today I'll it too.
Mike, N0SO
Computer: Dell XPS-1530 laptop (Duo core 2.4 GHz CPU, 4Gb RAM, Prolific USB/RS-232 adapter)
OS: Fedora 16 Linux (kernel V 3.2.9-2.fc16.x86_64)
Same distro and same kernel as me, and a reasonably fast machine as well - thanks for trying that.
Brian, your test results with Windows in a VM are interesting... it makes me wonder if this is not a timing issue of some sort,
I thought the same thing. It does feel like that.
or an issue with the Linux driver for your serial card.
Maybe, but the VM is still using the host machine's driver. That's the part that surprised me the most about it working in the VM.
A test with Fedora 16/i686 running in a VM on that same machine and serial port might prove interesting.
I was already thinking about trying that. I'm downloading a Fedora ISO now right (I don't seem to have one on disk - I think I did a liveupgrade from F15). I'll post back later with the results.
Brian
A test with Fedora 16/i686 running in a VM on that same machine and serial port might prove interesting.
I was already thinking about trying that. I'm downloading a Fedora ISO now right (I don't seem to have one on disk - I think I did a liveupgrade from F15). I'll post back later with the results.
CHIRP 0.1.2 and 0.2.0 both work correctly in an F16 guest running on the F16 host (the desktop). Hmmmmmmm.....
Brian
On Sun, 2012-03-18 at 15:28 -0700, Brian Mury wrote:
CHIRP 0.1.2 and 0.2.0 both work correctly in an F16 guest running on the F16 host (the desktop). Hmmmmmmm.....
One more data point: I used a Fedora 16 live CD both natively and in the VM, in order to get as similar an environment as possible. I followed exactly the same sequence of steps in both cases. It did not work natively but did work with the VM. This should eliminate something having gone wrong with my Fedora installation or configuration.
About the only thing different in the VM is the address and IRQ (it shows up as /dev/ttyS0 in the VM, and it's /dev/ttyS5 when running natively - the serial card is /dev/ttyS4 through /dev/ttyS7).
Since the VM just redirects the virtual serial port to the real serial port on the host OS (/dev/ttyS5) I would expect it to not work in the VM if it was a host OS driver problem or similar. However, I'm no expert and I could be wrong.
Unless someone else has suggestions on other things to try, or on how to debug this, I'm not sure what to do next (other than test with the motherboard's serial port when my cable shows up).
Brian
Unless someone else has suggestions on other things to try, or on how to debug this, I'm not sure what to do next (other than test with the motherboard's serial port when my cable shows up).
I'd be highly interested in the behavior of the onboard connector, as well as that of a USB-to-serial port if you happen to have one you could try.
We could also try artificially slowing down the Icom programming loop if you want, which might mirror the behavior of the VM. However, I think I'd prefer not to commit that and slow everyone else down, since you're the first person I've ever heard about with this problem. Still, at 9600 baud (non-hispeed mode) it surely seems like it'd be hard to push it too hard.
Out of curiosity, does dmesg indicate that they're 16550A ports, 8250, or what?
On Mon, 2012-03-19 at 07:32 -0700, Dan Smith wrote:
I'd be highly interested in the behavior of the onboard connector, as well as that of a USB-to-serial port if you happen to have one you could try.
I won't have the cable for a couple weeks, but I'm also interested in seeing how it works. I don't have a USB-to-serial device, but I can ask around and see if anyone I know has one I can borrow.
We could also try artificially slowing down the Icom programming loop if you want, which might mirror the behavior of the VM. However, I think I'd prefer not to commit that and slow everyone else down,
If you want to send me some modified files to drop in, or even just tell me what to put where, I'll give it a try. No need to commit it. We might want to take that off list.
Out of curiosity, does dmesg indicate that they're 16550A ports, 8250, or what?
It says they're 16550A's - which is correct. Here's the relevant output. I don't know what that "Redundant entry" message means; does it mean anything to you?
[ 1.067248] Serial: 8250/16550 driver, 8 ports, IRQ sharing enabled [ 1.087788] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A [ 1.145348] 00:07: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A [ 1.153547] serial 0000:04:00.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18 [ 1.153595] 0000:04:00.0: Redundant entry in serial pci_table. [ 1.153595] Please send the output of lspci -vv, this [ 1.153596] message (0x1407,0x0120,0x0000,0x0000), the [ 1.153596] manufacturer and name of serial board or [ 1.153597] modem board to rmk+serial@arm.linux.org.uk. [ 1.174489] 0000:04:00.0: ttyS4 at I/O 0xeff8 (irq = 18) is a 16550A [ 1.205374] 0000:04:00.0: ttyS5 at I/O 0xeff0 (irq = 18) is a 16550A [ 1.213472] serial 0000:04:00.1: PCI INT A -> GSI 18 (level, low) -> IRQ 18 [ 1.213519] 0000:04:00.1: Redundant entry in serial pci_table. [ 1.213520] Please send the output of lspci -vv, this [ 1.213520] message (0x1407,0x0121,0x0000,0x0000), the [ 1.213521] manufacturer and name of serial board or [ 1.213521] modem board to rmk+serial@arm.linux.org.uk. [ 1.234413] 0000:04:00.1: ttyS6 at I/O 0xefe8 (irq = 18) is a 16550A [ 1.264308] 0000:04:00.1: ttyS7 at I/O 0xefe0 (irq = 18) is a 16550A
Brian
I won't have the cable for a couple weeks, but I'm also interested in seeing how it works. I don't have a USB-to-serial device, but I can ask around and see if anyone I know has one I can borrow.
Yeah, it would be interesting just to see. Normally not owning any USB-to-serial devices is a badge of honor :)
If you want to send me some modified files to drop in, or even just tell me what to put where, I'll give it a try. No need to commit it. We might want to take that off list.
Will-do, off list.
It says they're 16550A's - which is correct. Here's the relevant output. I don't know what that "Redundant entry" message means; does it mean anything to you?
Hmm, nope. Not sure if that's of any concern or not, without digging deeper.
Maybe, but the VM is still using the host machine's driver. That's the part that surprised me the most about it working in the VM.
That's true, but it also adds a significant amount of latency and some additional buffering, so it's really hard to say. However, it doesn't surprise me.
participants (3)
-
Brian Mury
-
Dan Smith
-
Mike Heitmann