Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: How to program "offline" codes into UIRT2?

Hybrid View

  1. #1
    Join Date
    May 2002
    Location
    Paks, Hungary
    Posts
    7

    Default How to program "offline" codes into UIRT2?

    Hi *.*
    I've made an UIRT2b, the 4 MHz version and programmed the v1,7 firmware. It works well. There is only one thing that I don't know how to do. How can I load the four "offline" remote commands into UIRT2?. I mean the commands that UIRT2 can be controlled with when Girder is not running, or computer is powered off.
    I tried to do it with UIRT driver when running Girder: Settings/PIC Config/Learn/(pressed a button on remote)/Program Flash.
    It seemed to work, but when I closed Girder UIRT2 forgot everything, and nothing happened when pressed the same button.
    Can anybody help me?
    TIA

  2. #2
    Join Date
    Mar 2002
    Location
    Belgium
    Posts
    192

    Default

    Tangerine,

    that's the correct way to do it.

    The original uirt had a "feature" that when Girder was closed with the PC still running the uirt was kept reset.

    This still applies to the UIRT2 design due to the ICSP components. When the PC is power off then the UIRT2 comes back to live wich is needed to powerup the PC using one of the 4 offline commands.

    If you want the UIRT2 to be alive always you can remove R9 or ZD1 but the only way to reset the Uirt2 will be to remove the power from the PC completely so that the 5VSB is gone.

    Luc.

  3. #3
    Join Date
    May 2002
    Location
    Paks, Hungary
    Posts
    7

    Default

    Now I see. And you were right, it works. Thanks a lot. Now I can power on my PC. :lol:
    But is raised another question: Why should UIRT2 be reset, and how often should it be?
    What if I connect a push button (or switch) between R9 and ZD1? Then I could reset UIRT manually if it needed. :wink:

  4. #4
    Join Date
    Mar 2002
    Location
    Belgium
    Posts
    192

    Default

    Quote Originally Posted by tangerine
    Now I see. And you were right, it works. Thanks a lot. Now I can power on my PC. :lol:
    But is raised another question: Why should UIRT2 be reset, and how often should it be?
    As long as it works there's no need for a reset.
    External events like ESD, disturbances etc.. could cause the PIC firmware to do strange things, but I think there's a watchdog wich will automatically reset the PIC in these cases. During testing I handled the UIRT quite "rougly" and the firmware always came back.

    I think the current behaviour will be OK for everybody, why should the UIRT work when the PC is running but Girder isn't? Only if you would like to use one of the off-line commands to control devices without Girder.

    Quote Originally Posted by tangerine
    What if I connect a push button (or switch) between R9 and ZD1? Then I could reset UIRT manually if it needed. :wink:
    This would only reset the UIRT with a PC running without Girder. If you want a "hard" reset you should connect the button between MCLR and GND.

    Luc.

  5. #5
    Join Date
    May 2002
    Location
    Paks, Hungary
    Posts
    7

    Default

    I have used a 9 pin output to the chassis and extended 12V+, GND, out1-, out2-, out3-, input1, ZD1 and R9. Made a small box, and put some parts in it. A 9 pin connector, a push button (for Input1), a swich (for reset), 3 LEDs for indication, a power connector (for a 12 V adaptor) and female RCA connectors for relays. So I can control 3 12 V relays, and see which is on, or off. Now I only use one of them to control a 230V lamp. So I need the UIRT2 to work continuosly or the lamp would go off when closing Girder. If UIRT2 freezes, I can reset it by the switch.

    "This would only reset the UIRT with a PC running without Girder. If you want a "hard" reset you should connect the button between MCLR and GND."

    I missed this sentence last time, so I've put the switch between R9 and ZD1, but seems to work so far. I may change it if necessary.

    I burned down an old 12V adaptor (it was a battery charger for an Ericsson phone). I haven't noticed that one wire of the serial cable that I used was connected to the trapezoid shield, and the chassis of the box I made (of metal sheet) is connected to 12V+. So there was a short circuit between 12+ and 12V-
    Now everything is OK.
    p.s. (sorry for my English)

  6. #6
    Join Date
    Apr 2002
    Location
    Turku, Finland
    Posts
    45

    Default Re: How to program "offline" codes into UIRT2?

    Quote Originally Posted by tangerine
    I tried to do it with UIRT driver when running Girder: Settings/PIC Config/Learn/(pressed a button on remote)/Program Flash.
    Where exactly can I find these settings? Which version of plugin and Girder?

    Antti

  7. #7
    Join Date
    Mar 2002
    Location
    Belgium
    Posts
    192

    Default Re: How to program "offline" codes into UIRT2?

    Quote Originally Posted by Antti
    Where exactly can I find these settings? Which version of plugin and Girder?
    When you create or edit a command: select UIRT driver under the plugin tab. On the pop-up window you will see "PIC config".
    This is only for JON's plugin and is independant from the Girder version.

    Luc.

  8. #8
    Join Date
    Dec 2001
    Posts
    64

    Default

    Why is there ZD1 or R9 anyways if it prevents it from working when girder is off? Sorry for my ignorance but i'm trying to understand this magnificant device so i can relayout this board to my liking =}

  9. #9
    Join Date
    Mar 2002
    Location
    Belgium
    Posts
    192

    Default

    Goldserve,

    the reason why they are there is explained in the above posts: ICSP.

  10. #10
    Join Date
    Dec 2001
    Posts
    64

    Default

    So is ZD1 used for ICSP? Once i'm done with programming, i can remove it so UIRT will always be on? And without the diode, i can still power up computer?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •