Hi,

Ok,

Firstly, apologies if this is a duplication, or if I had sent a previously
unfinished mail.
I started my reply a while ago, but work got in the way, and I saved it as a
draft.
My mail program has it in my sent box, and not in my drafts, but I checked
the archive site,
and it is not listed, so I am a bit confused myself now if it had sent or
not.

Anyway, below is the full message, and results.

mela...@jessy /usr/local/src/concordance $ sudo patch -p0
<./concordance_fw_debug.patch
patching file concordance/concordance.c
patching file libconcord/libconcord.cpp
patching file libconcord/remote.cpp
patching file libconcord/libusb/libusbhid.cpp

Became root, just to make sure no permission issues occur.
Rebuilt source, and installed libs

jessy concordance # ./concordance -w -v /tmp/LatestFirmware.EZUp

LOTS of output, especially in the firmware write loop.
Ran into some difficulty getting it all to a log, any output redirection
just got up to

Calling usb_interrupt_write
Done calling usb_interrupt_write
HHHHHHHHHHHHHH100%

and then stops.
Tried quite a few things, so in the end I adjusted the source code, and
removed that bit of debugging from HID_WriteReport.

The output:

Concordance 0.21+CVS
Copyright 2007 Kevin Timmerman and Phil Dibowitz
This software is distributed under the GPLv3.

Calling InitUSB()Calling usb_init()
Calling FindRemote()Requesting Identity: 100%                 done
NOTE: A firmware upgrade, will erase your remote's config and you will need
to update it. You may want to make a backup with -c or otherwise just use
the website.
Press <enter> to continue.

Invalidating Flash:                       done
Erasing Flash:       100%                 done
Writing firmware:    100%                 done
Calling finish_firmware()
Done calling finish_firmware()
Resetting Remote:
LCDEBUG: in reset_remote, calling Reset()
In Reset(), calling WriteReport()
Deinitializing libconcord
In deinit_concord(), calling ShutdownUSB()
Calling usb_release_interface
In deinit_concord(), deleting the rmt object
Attempting initializing libconcord
Calling InitUSB()Calling usb_init()
Calling FindRemote()Attempting initializing libconcord
Calling InitUSB()Calling usb_init()
Calling FindRemote()Attempting initializing libconcord
Calling InitUSB()Calling usb_init()
Calling FindRemote()Attempting initializing libconcord
Calling InitUSB()Calling usb_init()
Calling FindRemote()Attempting initializing libconcord
Calling InitUSB()Calling usb_init()
Calling FindRemote()Attempting get_identity
Deinitializing libconcord
In deinit_concord(), calling ShutdownUSB()
Calling usb_release_interface
In deinit_concord(), deleting the rmt object
concordance: failure
Failed to upload firmware: Unknown error
In deinit_concord(), calling ShutdownUSB()
Calling usb_release_interface
In deinit_concord(), deleting the rmt object
Segmentation fault

>From gbd:
(gdb) bt
#0  0x00007f9f554ec360 in deinit_concord () at libconcord.cpp:672
#1  0x0000000000404659 in main (argc=4, argv=<value optimized out>)
    at concordance.c:1364

lsusb -vvv

I cut out all the others, as the list was long. The remote is there:

Bus 002 Device 027: ID 0400:c359 National Semiconductor Corp.
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x0400 National Semiconductor Corp.
  idProduct          0xc359
  bcdDevice            7.0b
  iManufacturer           4 Harmony Bootloader
  iProduct                4 Harmony Bootloader
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           34
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          4 Harmony Bootloader
    bmAttributes         0xc0
      Self Powered
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      0 None
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.00
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      33
          Report Descriptor: (length is 33)
            Item(Global): Usage Page, data= [ 0x00 0xff ] 65280
                            (null)
            Item(Local ): Usage, data= [ 0x01 ] 1
                            (null)
            Item(Main  ): Collection, data= [ 0x01 ] 1
                            Application
            Item(Global): Logical Minimum, data= [ 0x00 ] 0
            Item(Global): Logical Maximum, data= [ 0xff 0x00 ] 255
            Item(Global): Report Size, data= [ 0x08 ] 8
            Item(Main  ): Collection, data= [ 0x02 ] 2
                            Logical
            Item(Local ): Usage, data= [ 0x02 ] 2
                            (null)
            Item(Global): Report Count, data= [ 0x10 ] 16
            Item(Main  ): Input, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile
Bitfield
            Item(Main  ): End Collection, data=none
            Item(Main  ): Collection, data= [ 0x02 ] 2
                            Logical
            Item(Local ): Usage, data= [ 0x05 ] 5
                            (null)
            Item(Global): Report Count, data= [ 0x08 ] 8
            Item(Main  ): Output, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile
Bitfield
            Item(Main  ): End Collection, data=none
            Item(Main  ): End Collection, data=none
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0010  1x 16 bytes
        bInterval               1
Device Status:     0x0001
  Self Powered

trying the upgrade now the remote is in safemode with the debug info:

jessy concordance # ./concordance -w -v /tmp/LatestFirmware.EZUp
Concordance 0.21+CVS
Copyright 2007 Kevin Timmerman and Phil Dibowitz
This software is distributed under the GPLv3.

Calling InitUSB()Calling usb_init()
ERROR: Couldn't initializing libconcord: Error connecting or finding the
remote
Calling FindRemote()


Hope this all helps.

-Lucas


On Sat, Aug 22, 2009 at 12:05 AM, Simon Budig <si...@budig.de> wrote:

> Stephen Warren (s-t-concorda...@wwwdotorg.org) wrote:
> > Oops. I guess I meant gdb --args concordance <<args>>
>
> Oh, cool. I did not know that one  :)
>
> Thanks,
>         Simon
>
> --
>              si...@budig.de              http://simon.budig.de/
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> concordance-devel mailing list
> concordance-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/concordance-devel
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
concordance-devel mailing list
concordance-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/concordance-devel

Reply via email to