WOW, first time encountering other people who want to do a PROPER fogs as DRL mod. Kudos to you fellas.
I had this problem in the summer of 08 and here is my solution:
http://www.mazdas247.com/forum/showthread.php?p=3773175
My post was promptly ignored by everyone. I guess because the mostly American population on this forum don't have to deal with the Canadian DRL system.
Anyway, my approach was a little less elegant than what y'all are trying to do since it involved cutting and splicing into the lighting system wiring.
It's been a while so let's see if I can explain my solution.
The basics are:
1. trick the DRL module into thinking the parking brake is always up thus disabling the daytime running lights.
2. splice the fog light relay line into the ignition wire so that the fog lights have power anytime the key is in the "ON" position.
3. add a SPDT relay to kill power to the fogs when the parking brake is up.
4. add another SPDT relay to kill power to the fogs when the main headlights turn on. But set up the circuit in such a way that the fogs can still be turned on/off with the stock fog light switch.
Optional: I also put in two DPDT switches to switch between my custom circuit and the original connections. That way I can sort of return my car to stock if necessary to pass safety check or whatever. Just in case.
I hope my diagrams are much clearer than my explanation above. The end result was that my fog lights work exactly like DRLs. The only down side is that the parking brake light on the dash no longer light up when the parking brake is up. But really, who needs a light to tell them the parking brake is up?
I've run this setup for over a year now without any issues.
SPDT relays can be bought from any performance shop. I paid $10 for those two relays. The DPDT switches I bought from the Source for a few bucks each. So cost is not an issue. The most difficult part was identifying the correct wires to cut/splice but all the information is in the Protege shop manual. Also there was very little room to work in and you have to lay in a awkward and uncomfortable position to get at the wiring.
Davebert, good luck with building a module. That's a much cooler solution than my hack job. But I hope my working solution can help somebody out.