Hello everyone, I was inspired by another thread on the electrode related to the 232 interface for the gas installation. I made the interface presented here over 2 years ago, in the meantime, about a week, new versions were created. The final version was quite universal. It can be reprogrammed to STAG 4 or QBOX by bringing the magnet closer.
I used the STAG plug, the HC-05 bluetooth module, the 7805 stabilizer (or the step-down converter set to 4.9V), the reed switch which has contacts for reprogramming the settings, universal remote control housing, hot glue, heat shrink tubing. Thanks to this interface, I corrected settings and updated drivers in my and other vehicles.
I wanted it to be small, handy, durable and that's what it is.
Photo of the first version:
And the final one after all modifications:
And the end result:
The original one at the moment is about PLN 80 but over 2 years ago it was not so colorful.
Any laptop with bluetooth was enough to work, and the 232 port and cable tethering were a thing of the past.
Each intervention in the controller is recorded / saved in it (in the controller). The installer, if he hooks up and programmed on the same computer, will pop up a message that he was programmed with a different computer. It was not like that in my case.
In the STAG QBOX controller it communicates with the Android phone application (parameter preview)
Just connecting to the driver, if I remember correctly (over 2 years ago it was) A banal configuration, a USB programming cable that saves disks from TX, RX and GND. I will add 3 more photos because I did print screens when I was programming, I just found them.
Added after 4 [minutes]:
Why the reed switch, because to reprogram the HC-05 again, I did not like to open / disassemble it again, and just apply the magnet. QBOX has different settings, hence this gate is left.
If you program the HC-05 at least once, it will all become clear You can come up with a name instead of HC-05, for example, AC STAG, set the pin to 1234, do not move the rest because it will not establish communication with the gas controller
Each intervention in the controller is recorded / saved in it (in the controller).
"interference" - that is, the readings are recorded, doesn't it count? Was there a lot of combining with the HC-05 configuration?
Each connection to the controller is saved. I don't remember which and which company the new drivers have a connection counter, after which they are "full", they are blocked and need to be replaced with a new one. Such a protection against those who can do something themselves so as not to go to the gazers.
If there are such drivers, a colleague could mention their names, what companies / models they are, because STAG does not protect its devices in this way, and that's why I always choose STAG, because I know it. The question is to set it up well and in my case, I had to pamper it myself by trial and error. The big advantage is that there is no cable and it was quite easy after one ride. The wife is the driver and I am on the laptop.
So the hc-05 module fits right out of the box? I do not need to change anything? You only entered the password and name, but it is not essential for the connection between the module and the stag, and the module and the phone. Once I tried to do it fast, but it wouldn't connect for me. And there the module with the plug lies, because I did not know what parameters to set in it. The old stags must have 9600 8N1.
Hello. I will present you my battles with a similar topic. A year ago, I glued something similar to the STAG-300 ISA2, but due to my inattention, I released my HC and probably the communication inputs in the STAG. And it was like this: I did not have such a plug and I connected everything with pins. I connected so without any problems a dozen times for tests and to correct the settings, until one day the bar was detached from the ground and 12V flew through the RxTx inputs to the STAG and then to the ground. So I took out the old interface that I used previously (probably on MAX232) and hooked it up after this failure and unfortunately the egg. Zero communication - it's good that the gas controller itself works. To sum up: my STAG has 12V power in the plug, the RxTx levels are 5V and the HC levels are 3.3V. I do not know what logical levels these new STAGs have, so to prevent it from bothering too much, it might be better to connect the HC through some level converter (there are several solutions to this problem). Unfortunately, I didn't have any converter. Practically - the 3.3V and 5V logic can in most applications work without failure, without any level adjustments, for years - communication inputs / outputs have their own protection against exceeding the permissible voltage levels, but then they can, for example, load more systems with a higher output voltage level. At least I think so, because I don't know enough to be authoritative.
I programmed the HC-05 as above 3 print screens - 9600 for stag 4 (I had the eco version)
Well, it makes no sense to pour the whole glue. I will tell you that the versions with the 7805 stabilizer, despite the tiny energy consumption, were slightly warmed, but in the car we have 14.4V in peak, it is not strange but using a micro step down converter, energy losses are probably the smallest possible and all this thanks to its high efficiency, even noticeably warm it is not.
I have heard and read more precisely the fairy tales that the HC-05 will crash and it is a matter of time. To check its durability, I plugged it in the car and left it for a week ... this week was supposed to be .... I forgot about it completely. 5 months passed and I wanted to lower the temperature in the winter, I only realized that he was still hooked up.
Hello, it took a while, but it worked. My HC-05 module failed to reprogram with Arduino, I don't know why. I had to order from Ali .. TTL UART converter, by the way I ordered a small 5V pulse converter for power supply. Using the REAL Terminal and the converter, I reprogrammed the HC-05 to a speed of 57 600 baud (AT + UART = 57600,0,0). After folding, it easily connected to the STAG program for Go FAST (this is the gas controller I have, but the interface is the same as Q-BOX - according to STAG) and now I do not have to pull the cable through the window to tune the controller.
verifiers - thank you again for suggesting an idea, I never thought it was so simple. :D
Arek1984 - thank you for your link, it was soooo helpful. :D
And you could give parameters for connection to QBOX
I have STAG 4 Qbox basic speed 57600 I will only add that it is worth making even the simplest voltage dividers for 3.3V ports. 1k 2k RX divider and about 150 ohm resistor for TX. Please update your software in the stag! I did not do it when I tried to connect the computer for the first time, my computer crashed. I had to unplug the battery, After uploading the new firmware, everything works fine
Hello. I also want to build this interface. I have HC05 and HC06 everything is almost fine. Almost because it disconnects from the gas controller. The driver is 4GAS. Connects shows parameters and then disconnects. I have a divider on the RX line. Maybe it could build an optoisolation or possibly a different security system. Additionally, I would like to add data transmission signaling both 'to' and 'from' the controller. I have a wired Stag interface, it connects with this control unit with exactly the same parameters. There is optoisolation applied. Unfortunately, I have already sealed the box from the cable interface and it will be difficult to copy this structure or any part of it now. I am asking for any suggestions regarding the improvement of the design with the bluetooth module, or how to solve the optical signaling of data transfer.
4GAS, 9600, 8N1. It communicates only disconnects on the computer, on Android I did not find any software that would like to communicate properly.
Progoealem your interface to secure 6n137 but after. The other side receives bushes. Do I send information with the terminal from the phone or from the computer? Is a logic level converter alone enough? How else can. Secure otherwise.
Currently, I have a 78l05 stabilizer, a Shotky diode in front of it, a resistor divider on the RX 1k line to 2.2 ground, pulled up to 5V.
At one point I thought to connect to the signals from the original interface. Before the very. FT232RL. I was able to open the original interface. There are two FT232RL. 6N137 and 78L05 stabilizer and some passive elements. But finally where would this mobility be? I will try to redraw the entire system so that I can optoisolate my system. However, this is probably the best protection against errors or other modifications to the gas installer. Because I saw them change the signal in places. Although I once saw a car radio with changed power cables and after the theft, someone did not enjoy it for a long time.
Optoisolation makes sense with a diagnostic cable, then you electrically separate the diagnostic computer from the vehicle's installation. In the case of the Bluetooth interface, it does not matter, because you are "separated" electrically anyway. Unless I misunderstand something? You do not need the original interface, the HC-05 and the software will take care of everything. What system is your computer WIN 7, WIN 10 running on.
The system used from Mirek. For better security, I made a logic level converter to ordinary 2n7000. The system is powered by the LM7805CV stabilizer. Diodes through 4.7k co are attached to the mosfet drain. It signals data transfer nicely. Additionally, a small switch is led to the housing for input to AT in HC. As my friend has now gone to play, I have no way to check it. His driver. I will come and check my reports. Everything seems to be working fine on the telephony terminal and the computer.