Replies: 16 comments 33 replies
-
You could remove any power from the balancer and measure the resistance between the pin header pins and the microcontroller. Try to get an idea how to BLE module is connected to the microcontroller and what's exposed at the pin header. |
Beta Was this translation helpful? Give feedback.
-
I would also be interested in this, to connect to my Neey via serial comms rather than Bluetooth. I would be sure that there will be a method possible to connect directly to this device, likely via async serial TTL levels. |
Beta Was this translation helpful? Give feedback.
-
I went looking online for a BLE module that uses the RTL8762AG version and found this one, very similar board layout. From that site they have a data sheet, a PDF, and from this I can see that the Neey is using the UART interface, the two pins on the top left of your photo. There are some other pins connected between the Neey and the BLE module, such as the serial RTS line and power of course. The datasheet says the default baud rate for the RTL8762AG is 115200, and it would be at 1.8 to 3.3 Volt level. I am thinking that it might be possible to then use a simple USB to TTL serial converter that allows setting for a 3.3V interface will get things working. The thing to do first would be to connect the line that transmits from the Neey to the receive line of the BLE module and use a simple terminal program, such as tio to listen in while you have the Neey connected to the Neey app on an Android device. I suspect once connected, the Neey would constantly stream data from the BMS side to to the BLE module, which will be also picked up by the serial interface connected on the receive line. Then it would be a matter to decode the stream, but I understand it is will be using a standard BMS type protocol like JK. |
Beta Was this translation helpful? Give feedback.
-
So then I did a bit more looking and found the exact BLE module and from there found the datasheet to match this module on the Neey. JDY-18 BLE Datasheet PDF The unused through hole pins on the module do connect to the Rx/Tx and power lines which might make it convenient to connect to the USB to serial TTL interface. From the manual above, it appears the module is a simple device and uses AT commands to set parameters. It now all starts to look totally doable. |
Beta Was this translation helpful? Give feedback.
-
So then I connected a USB/TTL interface to the Neey, only the 0 Volt and Neey transmit data into the interface. Below is a grab from tio data.
You can see in the first frame the data GW-24S4E and versions H-1.2.4V1.0.0. 20221201 So, next is decoding the data, just a little puzzle I guess. More tinkering is neeyed :) |
Beta Was this translation helpful? Give feedback.
-
Okay, so after a full day of playing magic decoding wizard, I have been able to determine the following so far just by sniffing the data and correlating this across to the data I see on my mobile device when connected. There are three different frame type I see so far. One on initial connection, followed by an additional frame followed by regular update data frames, as described below. I use this site to convert the hex to floating point values:
|
Beta Was this translation helpful? Give feedback.
-
great job guys! |
Beta Was this translation helpful? Give feedback.
-
A small update. So, I connected the BLE module to another USB/TTL converter interface and sent various AT commands to find out what comes back. Sure enough, when I send an AT command the module responds back with an OK response. For my communications I am using GTKTerm, a small GUI based terminal program. So, then back to the Neey. So, with the Neey connected to the computer via the USB/TTL interface I see the AT commands coming in. Sending the OK response from my terminal program shuts up the beep and the Neey enters bliss mode, no noise. Now, with all this, I am thinking the way forward is to replace the BLE module with a tiny little SAM21 based Arduino type board, one that I can configure at least two communication ports, one to the Neey and the other for connection to the outside world. Using a small SAM21 module also allows for some clever functionality, such as providing for different protocols, like Modbus RTU or using json style data frames, and doing all sorts of other calculations that the Neeey is not doing. Like I mentioned, I do not use esphome and even though it can do a lot, it is not the set up I wish to use, I have my own Linux based SCADA software I develop and will want to use this together with other Victron equipment I have. If anyone has some ideas to contribute to progressing forward, I would like to hear. |
Beta Was this translation helpful? Give feedback.
-
I have one of these Seeeduino XIAO boards which are tiny and I believe would have the capability to do things I mentioned above. |
Beta Was this translation helpful? Give feedback.
-
I have the little Seeeduino board connected with a very basic program in it that transfers data between the two communications ports, that is, between the USB which is connected to the computer and the TTL on pins 6 and 7 to the Neey. After careful checking that all wiring is correct I power up the Neey on the lab power supply at 25Vdc and connect the Seeeduino to the computer via USB C cable. No smoke :) The Neey starts sending data, just AT commands and are received on my computer. Below is the data exchange
I can now start to make up a program for the Seeeduino that will do what I wish to be able to handle all aspects of communications between the Neey and a computer system over wired connection. The Seeeduino has some other I/O lines and I have soldered one of these to the Neey where the BLE STAT line would have been. This means I can get the Seeeduino to replicate what the BLE does in terms of a bluetooth connection. Another idea is that the ALED line from the BLE module goes to the Neey blue LED and can operate this now under program control of the Seeeduino, so it could be flashing for some function and solid for another function. The little Seeeduino would fit snugly on the main Neeey PCB where the BLE module once lived, but for now I will have living on the outside while I develop the code. While I have the Neey on the lab power supply, I see that at a supply of 25Vdc the Neey is drawing around 15mA, which is good. All in all, I think this will be a very neat solution. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
There seems to be a pin on the Bluetooth module connected to the MCU. When BLE is connected to the mobile phone, this pin is pulled high, and the MCU will continuously send data to the mobile phone through BLE without waiting for the mobile phone to send a read command. Similar to the data of the display interface. |
Beta Was this translation helpful? Give feedback.
-
@paulalting Have you made any progress with the project? I find the topic very interesting. |
Beta Was this translation helpful? Give feedback.
-
Hi everyone, this is the card.
Is it possible to connect the RS485 / UART?
Maybe the blue connector at the top?
Beta Was this translation helpful? Give feedback.
All reactions