Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #565180 > unrolled thread

poking rs232 port BMS

Started bylegg <legg@nospam.magma.ca>
First post2019-11-05 08:36 -0500
Last post2019-11-06 12:13 -0500
Articles 14 — 8 participants

Back to article view | Back to sci.electronics.design


Contents

  poking rs232 port BMS legg <legg@nospam.magma.ca> - 2019-11-05 08:36 -0500
    Re: poking rs232 port BMS TTman <kraken.sankey@gmail.com> - 2019-11-05 14:41 +0000
      Re: poking rs232 port BMS upsidedown@downunder.com - 2019-11-05 17:54 +0200
      Re: poking rs232 port BMS legg <legg@nospam.magma.ca> - 2019-11-05 11:21 -0500
      Re: poking rs232 port BMS DecadentLinuxUserNumeroUno@decadence.org - 2019-11-05 16:20 +0000
        Re: poking rs232 port BMS legg <legg@nospam.magma.ca> - 2019-11-05 12:40 -0500
          Re: poking rs232 port BMS Jasen Betts <jasen@xnet.co.nz> - 2019-11-06 05:54 +0000
    Re: poking rs232 port BMS Winfield Hill <winfieldhill@yahoo.com> - 2019-11-05 06:41 -0800
      Re: poking rs232 port BMS legg <legg@nospam.magma.ca> - 2019-11-05 12:33 -0500
        Re: poking rs232 port BMS Jasen Betts <jasen@xnet.co.nz> - 2019-11-06 05:58 +0000
    Re: poking rs232 port BMS Jasen Betts <jasen@xnet.co.nz> - 2019-11-06 05:51 +0000
      Re: poking rs232 port BMS boB <boB@K7IQ.com> - 2019-11-05 23:55 -0800
    Re: poking rs232 port BMS mpm <mpmillard@aol.com> - 2019-11-06 08:32 -0800
    Re: poking rs232 port BMS legg <legg@nospam.magma.ca> - 2019-11-06 12:13 -0500

#565180 — poking rs232 port BMS

Fromlegg <legg@nospam.magma.ca>
Date2019-11-05 08:36 -0500
Subjectpoking rs232 port BMS
Message-ID<elu2sel5sjrmaonrgt4q4tfa5lvtk64g1j@4ax.com>
I've got a battery management unit that is reluctant to 
demonstrate functionality. The vendor's terminal com 
software seems non-functional (will not install).

So far the only evidence of life is a control line (one 
of three) hard on, and rare /XFFE /FFF signalled outputs 
on the rs232 port. Internal DC-DC fails to power LEM 
sensor. Balancing terminals seem inactive.

Can anyone recommend a tutorial on poking a serial port 
for status / data register contents ?

It should be reporting on the voltage of four LiFePO4 batteries, 
powering a LEM sensor and reporting current. Many other 
undocumented features for I/O via remote terminal. Has  
CAN port, which seems to be used only for control power and 
crude 'run' (input) /'stop charging' (output) LF/DC signals.

I'm in touch with the overseas vendor, but they seem reluctant 
to comment on their SW functionality or test criteria for the 
unit. Outgoing photographs and diagrams from here, mostly, so far.
The manual and it's diagrams don't make much sense, refering 
to non-existent hardware or unavailable interface modules. 

Someone has gone to a great deal of trouble to chart the 
identity, labelling and function of I/O terminals, but these 
are largely ignored in subsequent diagrams or instructions.

Mostly used in SE Asia or the Indian subcontinent. English 
version is only recently available.

RL

[toc] | [next] | [standalone]


#565190

FromTTman <kraken.sankey@gmail.com>
Date2019-11-05 14:41 +0000
Message-ID<qps1nb$8rt$1@dont-email.me>
In reply to#565180
On 05/11/2019 13:36, legg wrote:
> I've got a battery management unit that is reluctant to
> demonstrate functionality. The vendor's terminal com
> software seems non-functional (will not install).
> 
> So far the only evidence of life is a control line (one
> of three) hard on, and rare /XFFE /FFF signalled outputs
> on the rs232 port. Internal DC-DC fails to power LEM
> sensor. Balancing terminals seem inactive.
> 
> Can anyone recommend a tutorial on poking a serial port
> for status / data register contents ?
> 
> It should be reporting on the voltage of four LiFePO4 batteries,
> powering a LEM sensor and reporting current. Many other
> undocumented features for I/O via remote terminal. Has
> CAN port, which seems to be used only for control power and
> crude 'run' (input) /'stop charging' (output) LF/DC signals.
> 
> I'm in touch with the overseas vendor, but they seem reluctant
> to comment on their SW functionality or test criteria for the
> unit. Outgoing photographs and diagrams from here, mostly, so far.
> The manual and it's diagrams don't make much sense, refering
> to non-existent hardware or unavailable interface modules.
> 
> Someone has gone to a great deal of trouble to chart the
> identity, labelling and function of I/O terminals, but these
> are largely ignored in subsequent diagrams or instructions.
> 
> Mostly used in SE Asia or the Indian subcontinent. English
> version is only recently available.
> 
> RL
> 
X FFE/FFF smells of baud rate error... Is that a possibility ???


-- 
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

[toc] | [prev] | [next] | [standalone]


#565199

Fromupsidedown@downunder.com
Date2019-11-05 17:54 +0200
Message-ID<5t53selkib7gbmme8d3lie0dcvs86sc14j@4ax.com>
In reply to#565190
On Tue, 5 Nov 2019 14:41:46 +0000, TTman <kraken.sankey@gmail.com>
wrote:

>On 05/11/2019 13:36, legg wrote:
>> I've got a battery management unit that is reluctant to
>> demonstrate functionality. The vendor's terminal com
>> software seems non-functional (will not install).
>> 
>> So far the only evidence of life is a control line (one
>> of three) hard on, and rare /XFFE /FFF signalled outputs
>> on the rs232 port. Internal DC-DC fails to power LEM
>> sensor. Balancing terminals seem inactive.
>> 
>> Can anyone recommend a tutorial on poking a serial port
>> for status / data register contents ?
>> 
>> It should be reporting on the voltage of four LiFePO4 batteries,
>> powering a LEM sensor and reporting current. Many other
>> undocumented features for I/O via remote terminal. Has
>> CAN port, which seems to be used only for control power and
>> crude 'run' (input) /'stop charging' (output) LF/DC signals.
>> 
>> I'm in touch with the overseas vendor, but they seem reluctant
>> to comment on their SW functionality or test criteria for the
>> unit. Outgoing photographs and diagrams from here, mostly, so far.
>> The manual and it's diagrams don't make much sense, refering
>> to non-existent hardware or unavailable interface modules.
>> 
>> Someone has gone to a great deal of trouble to chart the
>> identity, labelling and function of I/O terminals, but these
>> are largely ignored in subsequent diagrams or instructions.
>> 
>> Mostly used in SE Asia or the Indian subcontinent. English
>> version is only recently available.
>> 
>> RL
>> 
>X FFE/FFF smells of baud rate error... Is that a possibility ???

Random 0xFF characters are often a sign of false start bit ("0"), but
the voltage returns quickly back to idle "1" state. A false start bit
has to be about 0.5 to 1.4 bit times to produce 0xFF and 1.4 to 2.3
bit times to produce 0xFE.At 9600 bit/s that would  correspond to 60
to 230 us long positive going noise pulse. 

[toc] | [prev] | [next] | [standalone]


#565202

Fromlegg <legg@nospam.magma.ca>
Date2019-11-05 11:21 -0500
Message-ID<8183selc7kvcutsv534g0ll8s32qaug190@4ax.com>
In reply to#565190
On Tue, 5 Nov 2019 14:41:46 +0000, TTman <kraken.sankey@gmail.com>
wrote:

>On 05/11/2019 13:36, legg wrote:
>> I've got a battery management unit that is reluctant to
>> demonstrate functionality. The vendor's terminal com
>> software seems non-functional (will not install).
>> 
>> So far the only evidence of life is a control line (one
>> of three) hard on, and rare /XFFE /FFF signalled outputs
>> on the rs232 port. Internal DC-DC fails to power LEM
>> sensor. Balancing terminals seem inactive.
>> 
>> Can anyone recommend a tutorial on poking a serial port
>> for status / data register contents ?
>> 
<snip>
>> 
>> RL
>> 
>X FFE/FFF smells of baud rate error... Is that a possibility ???

I'm interpreting it as the BMS kicking the RS232 tx line, looking 
for life at 'my' end - signs of a possibly working terminal in 
the BMS. They accumulate at a rate of ~once every half hour or so.

It's the simplest of 3wire connections - rx, tx and gnd, with no other
pins offered on the port.

RL

[toc] | [prev] | [next] | [standalone]


#565203

FromDecadentLinuxUserNumeroUno@decadence.org
Date2019-11-05 16:20 +0000
Message-ID<qps7gt$19ig$1@gioia.aioe.org>
In reply to#565190
TTman <kraken.sankey@gmail.com> wrote in news:qps1nb$8rt$1@dont-
email.me:

> On 05/11/2019 13:36, legg wrote:
>> I've got a battery management unit that is reluctant to
>> demonstrate functionality. The vendor's terminal com
>> software seems non-functional (will not install).
>> 
>> So far the only evidence of life is a control line (one
>> of three) hard on, and rare /XFFE /FFF signalled outputs
>> on the rs232 port. Internal DC-DC fails to power LEM
>> sensor. Balancing terminals seem inactive.
>> 
>> Can anyone recommend a tutorial on poking a serial port
>> for status / data register contents ?
>> 
>> It should be reporting on the voltage of four LiFePO4 batteries,
>> powering a LEM sensor and reporting current. Many other
>> undocumented features for I/O via remote terminal. Has
>> CAN port, which seems to be used only for control power and
>> crude 'run' (input) /'stop charging' (output) LF/DC signals.
>> 
>> I'm in touch with the overseas vendor, but they seem reluctant
>> to comment on their SW functionality or test criteria for the
>> unit. Outgoing photographs and diagrams from here, mostly, so far.
>> The manual and it's diagrams don't make much sense, refering
>> to non-existent hardware or unavailable interface modules.
>> 
>> Someone has gone to a great deal of trouble to chart the
>> identity, labelling and function of I/O terminals, but these
>> are largely ignored in subsequent diagrams or instructions.
>> 
>> Mostly used in SE Asia or the Indian subcontinent. English
>> version is only recently available.
>> 
>> RL
>> 
> X FFE/FFF smells of baud rate error... Is that a possibility ???
> 
> 

  For stuff like this, folks should remain in the single baud mode of 
less than 9600.  Work out all the bugs before you try higher rates.
Higher handshake rates should be left out.

  That might fix the entire problem.  How much data are these ports 
trying to pass in a given datagram event?  IOW is a high data rate 
even needed at all?

[toc] | [prev] | [next] | [standalone]


#565208

Fromlegg <legg@nospam.magma.ca>
Date2019-11-05 12:40 -0500
Message-ID<7nc3se95l252g9sn5mubj76qlss3q8qelg@4ax.com>
In reply to#565203
On Tue, 5 Nov 2019 16:20:45 +0000 (UTC),
DecadentLinuxUserNumeroUno@decadence.org wrote:

>TTman <kraken.sankey@gmail.com> wrote in news:qps1nb$8rt$1@dont-
>email.me:
>
>> On 05/11/2019 13:36, legg wrote:
>>> I've got a battery management unit that is reluctant to
>>> demonstrate functionality. The vendor's terminal com
>>> software seems non-functional (will not install).
>>> 
>>> So far the only evidence of life is a control line (one
>>> of three) hard on, and rare /XFFE /FFF signalled outputs
>>> on the rs232 port. Internal DC-DC fails to power LEM
>>> sensor. Balancing terminals seem inactive.
>>> 
>>> Can anyone recommend a tutorial on poking a serial port
>>> for status / data register contents ?
>>> 
>>> It should be reporting on the voltage of four LiFePO4 batteries,
>>> powering a LEM sensor and reporting current. Many other
>>> undocumented features for I/O via remote terminal. Has
>>> CAN port, which seems to be used only for control power and
>>> crude 'run' (input) /'stop charging' (output) LF/DC signals.
<snip>
>>> 
>>> RL
>>> 
>> X FFE/FFF smells of baud rate error... Is that a possibility ???
>> 
>> 
>
>  For stuff like this, folks should remain in the single baud mode of 
>less than 9600.  Work out all the bugs before you try higher rates.
>Higher handshake rates should be left out.
>
>  That might fix the entire problem.  How much data are these ports 
>trying to pass in a given datagram event?  IOW is a high data rate 
>even needed at all?

All manual references fall back on 9600. It's not noise. /xffe or 
/xfff could just be the monitor having difficulty with half-hour 
spacing between the characters. It read /xffc, once.

Simple 3 wires are all that's available.

RL

[toc] | [prev] | [next] | [standalone]


#565276

FromJasen Betts <jasen@xnet.co.nz>
Date2019-11-06 05:54 +0000
Message-ID<qptn76$t55$2@gonzo.revmaps.no-ip.org>
In reply to#565208
On 2019-11-05, legg <legg@nospam.magma.ca> wrote:
> On Tue, 5 Nov 2019 16:20:45 +0000 (UTC),
> DecadentLinuxUserNumeroUno@decadence.org wrote:
>
>>TTman <kraken.sankey@gmail.com> wrote in news:qps1nb$8rt$1@dont-
>>email.me:
>>
>>> On 05/11/2019 13:36, legg wrote:
>>>> I've got a battery management unit that is reluctant to
>>>> demonstrate functionality. The vendor's terminal com
>>>> software seems non-functional (will not install).
>>>> 
>>>> So far the only evidence of life is a control line (one
>>>> of three) hard on, and rare /XFFE /FFF signalled outputs
>>>> on the rs232 port. Internal DC-DC fails to power LEM
>>>> sensor. Balancing terminals seem inactive.
>>>> 
>>>> Can anyone recommend a tutorial on poking a serial port
>>>> for status / data register contents ?
>>>> 
>>>> It should be reporting on the voltage of four LiFePO4 batteries,
>>>> powering a LEM sensor and reporting current. Many other
>>>> undocumented features for I/O via remote terminal. Has
>>>> CAN port, which seems to be used only for control power and
>>>> crude 'run' (input) /'stop charging' (output) LF/DC signals.
><snip>
>>>> 
>>>> RL
>>>> 
>>> X FFE/FFF smells of baud rate error... Is that a possibility ???
>>> 
>>> 
>>
>>  For stuff like this, folks should remain in the single baud mode of 
>>less than 9600.  Work out all the bugs before you try higher rates.
>>Higher handshake rates should be left out.
>>
>>  That might fix the entire problem.  How much data are these ports 
>>trying to pass in a given datagram event?  IOW is a high data rate 
>>even needed at all?
>
> All manual references fall back on 9600. It's not noise. /xffe or 
> /xfff could just be the monitor having difficulty with half-hour 
> spacing between the characters. It read /xffc, once.
>
> Simple 3 wires are all that's available.
>
> RL

What sort of serial poert are you using that handles 12 bit symbols?


-- 
  When I tried casting out nines I made a hash of it.

[toc] | [prev] | [next] | [standalone]


#565191

FromWinfield Hill <winfieldhill@yahoo.com>
Date2019-11-05 06:41 -0800
Message-ID<qps1n201v8l@drn.newsguy.com>
In reply to#565180
legg wrote...
>
> Mostly used in SE Asia or the Indian subcontinent.
> English version is only recently available.

 Maybe rely on user forum threads in Asia / India,
 using Google translation, is that a viable option?


-- 
 Thanks,
    - Win

[toc] | [prev] | [next] | [standalone]


#565207

Fromlegg <legg@nospam.magma.ca>
Date2019-11-05 12:33 -0500
Message-ID<qmb3se15ql5anjmam6nh4qm7ms6ct5cvca@4ax.com>
In reply to#565191
On 5 Nov 2019 06:41:38 -0800, Winfield Hill <winfieldhill@yahoo.com>
wrote:

>legg wrote...
>>
>> Mostly used in SE Asia or the Indian subcontinent.
>> English version is only recently available.
>
> Maybe rely on user forum threads in Asia / India,
> using Google translation, is that a viable option?

The tech support is supposedly forwarding a new version 
of the software (mewyeah.exe), but seems to forget to 
attach it, or provide a link to it, in his correspondence.

His e-mails/texts hit around 3.30 in the morning here. 
I've suggested that 8pm NA / 9AM SEA might be more productive.

Luckily, there's more than one workbench here, and more than 
one datalogger harness. Three serial ports being hogged for 
this. 

Just my luck if it turns out BMS can only communicate on lower 
port numbers.

RL

[toc] | [prev] | [next] | [standalone]


#565277

FromJasen Betts <jasen@xnet.co.nz>
Date2019-11-06 05:58 +0000
Message-ID<qptne9$t55$3@gonzo.revmaps.no-ip.org>
In reply to#565207
On 2019-11-05, legg <legg@nospam.magma.ca> wrote:
> On 5 Nov 2019 06:41:38 -0800, Winfield Hill <winfieldhill@yahoo.com>
> wrote:
>
>>legg wrote...
>>>
>>> Mostly used in SE Asia or the Indian subcontinent.
>>> English version is only recently available.
>>
>> Maybe rely on user forum threads in Asia / India,
>> using Google translation, is that a viable option?
>
> The tech support is supposedly forwarding a new version 
> of the software (mewyeah.exe), but seems to forget to 
> attach it, or provide a link to it, in his correspondence.
>
> His e-mails/texts hit around 3.30 in the morning here. 
> I've suggested that 8pm NA / 9AM SEA might be more productive.
>
> Luckily, there's more than one workbench here, and more than 
> one datalogger harness. Three serial ports being hogged for 
> this. 
>
> Just my luck if it turns out BMS can only communicate on lower 
> port numbers.

I've seen software that could only communicate on ISA-bus serial ports :(

-- 
  When I tried casting out nines I made a hash of it.

[toc] | [prev] | [next] | [standalone]


#565275

FromJasen Betts <jasen@xnet.co.nz>
Date2019-11-06 05:51 +0000
Message-ID<qptn1h$t55$1@gonzo.revmaps.no-ip.org>
In reply to#565180
On 2019-11-05, legg <legg@nospam.magma.ca> wrote:
> I've got a battery management unit that is reluctant to 
> demonstrate functionality. The vendor's terminal com 
> software seems non-functional (will not install).
>
> So far the only evidence of life is a control line (one 
> of three) hard on, and rare /XFFE /FFF signalled outputs 
> on the rs232 port. Internal DC-DC fails to power LEM 
> sensor. Balancing terminals seem inactive.


FF is a single narrow pulse on the data line FE is a slightly wider
pulse, are you sure you have the baud rate set correctly?
uising a too low rate can cause this.

> Can anyone recommend a tutorial on poking a serial port 
> for status / data register contents ?

poke at it with leds and resistors, or theres software that can do
that too. I use statserial.

-- 
  When I tried casting out nines I made a hash of it.

[toc] | [prev] | [next] | [standalone]


#565285

FromboB <boB@K7IQ.com>
Date2019-11-05 23:55 -0800
Message-ID<utu4setp0fj99jhdo4tfm94ub4fa75qpf1@4ax.com>
In reply to#565275
On Wed, 6 Nov 2019 05:51:45 -0000 (UTC), Jasen Betts
<jasen@xnet.co.nz> wrote:

>On 2019-11-05, legg <legg@nospam.magma.ca> wrote:
>> I've got a battery management unit that is reluctant to 
>> demonstrate functionality. The vendor's terminal com 
>> software seems non-functional (will not install).
>>
>> So far the only evidence of life is a control line (one 
>> of three) hard on, and rare /XFFE /FFF signalled outputs 
>> on the rs232 port. Internal DC-DC fails to power LEM 
>> sensor. Balancing terminals seem inactive.
>
>
>FF is a single narrow pulse on the data line FE is a slightly wider
>pulse, are you sure you have the baud rate set correctly?
>uising a too low rate can cause this.
>
>> Can anyone recommend a tutorial on poking a serial port 
>> for status / data register contents ?
>
>poke at it with leds and resistors, or theres software that can do
>that too. I use statserial.

Maybe it's modbus where you have to hit it with an address, a command,
data and a CRC to get it to respond correctly ?  

OR some other proprietory system but still may need prodding to
respond ?

Modbus and CANbus is common for BMS's as far as I know but other
systems exist too of course




[toc] | [prev] | [next] | [standalone]


#565352

Frommpm <mpmillard@aol.com>
Date2019-11-06 08:32 -0800
Message-ID<b85f2e4a-5da9-4bed-84ad-eb522ac9ec75@googlegroups.com>
In reply to#565180
On Tuesday, November 5, 2019 at 8:32:39 AM UTC-5, legg wrote:

One option:
Get a RIGOL oscilliscope with the free "advanced trigger" options installed.
There's one on sale right now for around $300.  (at TEquipment.net)

You can decode the bus, (inverting if need be).

We do a lot of RS-232, 485 and Modbus stuff here, and lately my Rigol DS2072A has been a life-safer for weird comm problems.

Good luck.
BTW:  I just posted a similar Chinese problem regarding a new laser etcher we got, so I feel your pain.  You would think for all the tariff dollars flowing out of bank account we would at least get a User Manual in English!?

As for Chinese software, I've always wondered which works best:  The actual software, or all the spam-hack virus bloatware it loads.

[toc] | [prev] | [next] | [standalone]


#565363

Fromlegg <legg@nospam.magma.ca>
Date2019-11-06 12:13 -0500
Message-ID<bnv5sepdckpt2ftsca8b66e5n8b6874v92@4ax.com>
In reply to#565180
On Tue, 05 Nov 2019 08:36:39 -0500, legg <legg@nospam.magma.ca> wrote:

>I've got a battery management unit that is reluctant to 
>demonstrate functionality. The vendor's terminal com 
>software seems non-functional (will not install).
>
>So far the only evidence of life is a control line (one 
>of three) hard on, and rare /XFFE /FFF signalled outputs 
>on the rs232 port. Internal DC-DC fails to power LEM 
>sensor. Balancing terminals seem inactive.
>
>Can anyone recommend a tutorial on poking a serial port 
>for status / data register contents ?
>
<snip>

Just had J1939 dumped in my lap. I'm afraid that without 
mfr's com SW, it is beyond a bit of poking.

RL

[toc] | [prev] | [standalone]


Back to top | Article view | sci.electronics.design


csiph-web