Forum >Replies by alanmcdonley
userhead alanmcdonley
Replies (6)
  • You Reply: First I tried using the Windows 10 GUI updater in the latest Windows 10 running over the latest VMWare Fusion on Mac OS X Big Sur 11.0.1 and the silabs CP210x USB to serial drivers. I could not get the device manager to "see" the HuskyLens.

    Next I downloaded the HuskyLensUpdater to my Raspberry Pi 3B running the latest PiOS, and successfully updated the firmware to 0.5.1norm. Object Detection runs fast, everything seems to be working well.
    Code: Select all
    === Firmware Update to 0.5.1 ===
    $ mkdir HuskyLens
    $ cd HuskyLens
    $ wget https://github.com/HuskyLens/HUSKYLENSUploader/archive/master.zip
    $ unzip master.zip
    $ cd HuskyLensUploader-master
    
    $ sudo python3 kflash.py -b 2000000 HUSKYLENSWithModelV0.5.1Norm.kfpkg 
    [INFO] COM Port Auto Detected, Selected  /dev/ttyUSB0 
    [INFO] Default baudrate is 115200 , later it may be changed to the value you set. 
    [INFO] Trying to Enter the ISP Mode... 
    
    [INFO] Greeting Message Detected, Start Downloading ISP 
    Downloading ISP: |██████████████████████████████████████████████████| 100.0% Complete
    [INFO] Booting From 0x80000000 
    [INFO] Wait For 0.3 second for ISP to Boot 
    [INFO] Boot to Flashmode Successfully 
    [INFO] Selected Baudrate:  2000000 
    [INFO] Selected Flash:  On-Board 
    [INFO] Extracting KFPKG ...  
    [INFO] Writing HuskyLens.bin into 0x00000000 
    Downloading: |██████████████████████████████████████████████████| 100.0% Complete
    [INFO] Writing HuskyLensBootUp.bin into 0x005da000 
    Downloading: |██████████████████████████████████████████████████| 100.0% Complete
    [INFO] Writing clearFlash.bin into 0x00c60000 
    ownloading: |██████████████████████████████████████████████████| 100.0% Complete
    [INFO] Writing clearFlash.bin into 0x00c62000 
    ownloading: |██████████████████████████████████████████████████| 100.0% Complete
    [INFO] Writing clearFlash.bin into 0x00c64000 
    ownloading: |██████████████████████████████████████████████████| 100.0% Complete
    [INFO] Writing clearFlash.bin into 0x00c66000 
    ownloading: |██████████████████████████████████████████████████| 100.0% Complete
    [INFO] Writing clearFlash.bin into 0x00c68000 
    ownloading: |██████████████████████████████████████████████████| 100.0% Complete
    [INFO] Writing clearFlash.bin into 0x00c6a000 
    ownloading: |██████████████████████████████████████████████████| 100.0% Complete
    [INFO] Writing clearFlash.bin into 0x00c6c000 
    ownloading: |██████████████████████████████████████████████████| 100.0% Complete
    [INFO] Writing clearFlash.bin into 0x00c6e000 
    ownloading: |██████████████████████████████████████████████████| 100.0% Complete
    [INFO] Writing detect.kmodel into 0x00600000 
    Downloading: |██████████████████████████████████████████████████| 100.0% Complete
    [INFO] Writing key_point.kmodel into 0x0065f000 
    Downloading: |██████████████████████████████████████████████████| 100.0% Complete
    [INFO] Writing feature.kmodel into 0x00680000 
    Downloading: |██████████████████████████████████████████████████| 100.0% Complete
    [INFO] Writing mobilenetv1_1.0.kmodel into 0x001bb000 
    Downloading: |██████████████████████████████████████████████████| 100.0% Complete
    [INFO] Writing object_detect.bin into 0x009d4000 
    Downloading: |██████████████████████████████████████████████████| 100.0% Complete
    [INFO] Rebooting... 
    [email protected]:~/DeskPi/Projects/HuskyLens/HUSKYLENSUploader-master $ 
    
  • You Reply:
    james.stanley wrote:
    Mon Jun 29, 2020 4:26 am
    Huskylens tag recognition, polling to see whether there are new tags or changes to tag parameters. ...
    Have you tested (polling rate = xx ms):
    - time from last no tag visible, to first tag_id_0 (single tag, none learned yet) returned?
    - time from last no tag visible, to first tag_id_1 (single learned tag) returned?
    - time from one tag_id_1 at position x0,y0 to first tag_id_1 at position x1,y1 returned?
    - time from last no tag visible, to first tag_id_2 (single learned tag from multiple learned tags) returned?
    - time from last no tag visible, to first multiple_learned_tags returned for two tags in view?

    And to determine if polling rate affects the recognition timing, did you repeat one or more tests with polling rate set at twice, half and one-third the rate of the corresponding test above. If the time goes up for twice and down for half rate, it will be evidence that polling too often affects the recognition rate. If the time does not change more than the variance for a set of tests, then polling rate does not affect recognition rate.

    Additionally, did you test if there any affect on the recognition rate between the "basic firmware" and the "object classification firmware"?

    All this is to suggest that your question of the optimum polling rate may not have a single answer, and may vary from release to release.

    The community would benefit greatly if you or someone would post their findings.
  • You Reply: Like you, I want to be able to update my HuskyLens with my Raspberry Pi.

    If I read the updater README.md right, It should be possible by connecting the HuskyLens UART connector to the Raspberry Pi power (should use a 5v power pin), ground, serial transmit, serial receive, (tx to rx, rx to tx), and run
    Code: Select all
    sudo python3 kflash.py -b 2000000 HUSKYLENSWithModelV0.4.7Stable.kfpkg
    or which ever desired firmware.
  • You Reply: missing commands that exist in Arduino code:
    - learn(ID_Val) (0x2F),
    - forget() (0x30),
    - sensor() (0x31)

    enum protocolCommand{
    COMMAND_REQUEST = 0x20,
    COMMAND_REQUEST_BLOCKS,
    COMMAND_REQUEST_ARROWS,
    COMMAND_REQUEST_LEARNED,
    COMMAND_REQUEST_BLOCKS_LEARNED,
    COMMAND_REQUEST_ARROWS_LEARNED,
    COMMAND_REQUEST_BY_ID,
    COMMAND_REQUEST_BLOCKS_BY_ID,
    COMMAND_REQUEST_ARROWS_BY_ID,

    COMMAND_RETURN_INFO,
    COMMAND_RETURN_BLOCK,
    COMMAND_RETURN_ARROW,

    COMMAND_REQUEST_KNOCK,
    COMMAND_REQUEST_ALGORITHM,

    COMMAND_RETURN_OK,

    COMMAND_REQUEST_LEARN,
    COMMAND_REQUEST_FORGET,

    COMMAND_REQUEST_SENSOR,
    };
  • You Reply: Any chance of getting the HuskyLens Protocol document on github updated?

    https://github.com/HuskyLens/HUSKYLENSA ... rotocol.md
  • You Reply: The tags appear to follow AprilTag 36h11 specification
    https://april.eecs.umich.edu/software/apriltag.html