Elektroda.com
Elektroda.com
X

Bluetooth interface for STAG 4 or QBOX gas installation

weryfany 18921 37
This content has been translated flag-pl » flag-en View the original version here.
  • 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:

    Bluetooth interface for STAG 4 or QBOX gas installation

    Bluetooth interface for STAG 4 or QBOX gas installation

    And the final one after all modifications:

    Bluetooth interface for STAG 4 or QBOX gas installation Bluetooth interface for STAG 4 or QBOX gas installation Bluetooth interface for STAG 4 or QBOX gas installation

    And the end result:

    Bluetooth interface for STAG 4 or QBOX gas installation Bluetooth interface for STAG 4 or QBOX gas installation Bluetooth interface for STAG 4 or QBOX gas installation

    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)

    HC-05 settings:

    Bluetooth interface for STAG 4 or QBOX gas installation Bluetooth interface for STAG 4 or QBOX gas installation Bluetooth interface for STAG 4 or QBOX gas installation

    AT commands:

    Code: text
    Log in, to see the code

    Cool? Ranking DIY
    About Author
    weryfany
    Level 26  
    Offline 
    weryfany wrote 992 posts with rating 128, helped 55 times. Live in city Zamość. Been with us since 2007 year.
  • #2
    Sebek6543210
    Level 9  
    weryfany wrote:
    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?
  • #3
    byrrt
    Level 21  
    weryfany wrote:
    It can be reprogrammed to STAG 4 or QBOX by bringing the magnet closer.

    How is communication with these two drivers different? What is this reed switch for?
  • #4
    weryfany
    Level 26  
    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
  • #5
    jawa1993
    Level 10  
    Sebek6543210 wrote:
    weryfany wrote:
    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.
  • #6
    weryfany
    Level 26  
    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.
  • #7
    Sebek6543210
    Level 9  
    Were there attempts to connect with other drivers, e.g. Lovato?
  • #8
    weryfany
    Level 26  
    Not only STAG 4 and after reprogramming STAG QBOX
    I tried with Zenit, despite supplying external power after the first attempt, I gave up due to lack of time.
  • #9
    noel200
    Level 26  
    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.
  • #10
    zbyz
    Level 11  
    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.
  • #11
    weryfany
    Level 26  
    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.
  • #12
    MACIEK_M
    Level 29  
    Hello, great idea, I have the elements in a drawer, I will try to replace the wired interface with this one, we will see how it works. I didn't think it was that simple. :D
  • #13
    MACIEK_M
    Level 29  
    Werfany wrote:

    Quote:
    I programmed the HC-05 as above 3 print screens - 9600 for stag 4 (I had the eco version)


    And you could enter the parameters for connecting to QBOX, I have GO-FAST, and the interface for STAG 4 ECO does not connect to it.
  • #14
    weryfany
    Level 26  
    At 100%, the speed of communication is higher, but I do not remember how much than in stag 4
  • #15
    MACIEK_M
    Level 29  
    Can the communication speed be "previewed" on the wired internet connection to GO-FAST, because I have one, and I wanted BT? Are they unrelated?
  • #16
    weryfany
    Level 26  
    I have no idea what it's like with a wired one, I've never had one
  • #18
    MACIEK_M
    Level 29  
    -> Arek1984

    Very helpful link, everything is thanks. :D
  • #19
    MACIEK_M
    Level 29  
    Hello,
    it took a while, but it worked. My HC-05 module failed to reprogram with Arduino, I don't know why. :D
    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

    I attach a photo of my interface.

    Regards Maciek_M
  • #20
    weryfany
    Level 26  
    I would stick to the casing because it looks delicate, but it is important that it works and there is POWER; D
  • #21
    neo_84
    Level 15  
    MACIEK_M wrote:
    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
  • #22
    KStanek
    Level 22  
    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.
  • #23
    MACIEK_M
    Level 29  
    > KStanek

    What are the data transmission parameters of 4GAS (Baud, Stop Bits, Parity)?
  • #24
    KStanek
    Level 22  
    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.
  • #25
    MACIEK_M
    Level 29  
    KStanek wrote:

    Quote:
    Connects shows parameters and then disconnects.


    Try to give a more powerful 5V stabilizer, I gave a STEP DOWN converter.
  • #26
    KStanek
    Level 22  
    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.
  • #27
    MACIEK_M
    Level 29  
    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.
  • #28
    KStanek
    Level 22  
    I have XP from 7 to 10 wines.
    It is about optoisolation in the case of an unreliable socket on the side of the car. After work, he will draw a diagram of the original.

    Do you need a level converter for your HC? It's enough??

    How to perform data transmission signaling on this interface?
  • #29
    MACIEK_M
    Level 29  
    Quote:
    Do you need a level converter for your HC? It's enough??


    I used two 10k? resistors for GROUND, RX HC-05 takes the signal from between them. TX HC-05 directly to RX socket.

    Quote:
    How to perform data transmission signaling on this interface?


    I have a transparent casing and I can see HC-05 diodes and a 5V converter.
  • #30
    KStanek
    Level 22  
    The system used from Mirek. Bluetooth interface for STAG 4 or QBOX gas installation 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.