On Tuesday, January 24, 2023 at 2:58:48 PM UTC-5, minf...@arcor.de
schrieb am Donnerstag, 19. Januar 2023 um 08:31:27 UTC+1:
> > I'm looking for an MCU that can be programmed for a simple translation task, that is already mounted in a small box and ready for field use.
> > This has been prototyped using an Arduino, with a MAX3232CPE chip on a perf board and a custom, 3D printed enclosure. But, about half the units exhibit a problem, where at some point, they will go haywire and garble the transmitted data.
> Looks more like an electrical signal conditioning problem than defective units.
Don't know, don't care. I don't have time to mess with it. I'm happy tossing out the existing gadget. One issue I found off the bat was the lack of a range check on the character counter on the incoming data, that is used to index into the buffer array. He's also triggering the line count (and so the added header every 20 lines) by finding a \r. The input appears to contain \r\n, although I can't verify this as yet. Still, I've seen \n only, but not \r only.
> Did you hook up an oscilloscope or transient recorder? It this is too much I'd start with
> RC filtering and capping peaks with (zener) diodes.
Removing the translator and connecting the upstream and downstream units works with the older sensors which include the header. The sensor is a very expensive device, so not suspect. The cable is not long.
When the box stops working, it stays not working until it is reset by unplugging it.
I'm not in a position to debug the thing. The designer is too busy to debug it. If I could find a damn unit in a case with the right ports, I might take the time to write some code. As you say, it ain't much. In fact, I'm told the date and time formatting I thought was needed, is not. But we are waiting for conformation in the form of a file of data output from the new sensor.
If you'd like to do this job, let me know. Or if you know of an off the shelf MCU with at least one serial port all in a box, let me know and I'll program the thing. I'd love to use Forth, but that's not good for the customer because there are so few people who know how to use it.
-+ Get 1,000 miles of free Supercharging
-+ Tesla referral code - https://ts.la/richard11209