this post was submitted on 16 Apr 2025
36 points (95.0% liked)

The IT Department

85 readers
1 users here now

IT: information technology. Discussion, links, and questions about software, hardware, and the IT industry.

founded 2 years ago
MODERATORS
 

cross-posted from: https://lemmy.dbzer0.com/post/42322761

My broken 15 y/o w/m has a serial port tracing to an atmega32L chip. I have a USB to TTL adapter which is set for 5v (as opposed to 3.3v) using a jumper. The TX, RX pins are connected to the RX, TX pins of the w/m, respectively. The power supply pins (0v & 5v) are left disconnected.

I ran minicom -D /dev/ttyUSB0 -b 9600 on the PC with the w/m powered off. Minicom seems to default to an “8,N,1” configuration. When I power on the w/m, minicom flashes a popup saying something like “no connection to /dev/ttyUSB0”. This is a bit bizarre because if powering the w/m triggers that popup, obviously there is a connection of some kind.

I do not have the service manual for the Beko WMD 26125 T and the mfr “lost” their copy. I have only scraps of service docs for a similar model that were leaked to a shitty manual jailing service. The circuit diagram of these docs label the serial port as “EEPROM” (as pictured). I suspect the ISP port is strictly for flashing (programming) the machine while the serial port is apparently for accessing the storage (to see the error state that is stored and perhaps clear it if I am lucky).

The goal is to confirm that the error code is “5” (my guesswork based on LEDs lit in binary [101]). The ultimate goal is to clear this fucking error off so I can use the machine. All components work when hotwired (motor, pump, inlet valves). I believe the error state is the machine caught in a lie. Normally the error states are cleared by pressing a secret button sequence, which the mfr witholds from the owners so they can charge us hundreds to do simple repairs.

What can I do without help from the manufacturer? Am I left with trying different baud rates and configs? What should I try? The w/m software is obviously a closed source, thus the serial config is kept secret from w/m “owners”.

Anti-repair rumor: manufacturers disable serial ports before shipping to block repair. But that practice may have started after my w/m was made ~15 yrs ago.

top 26 comments
sorted by: hot top controversial new old
[–] Reddfugee42@lemmy.world 14 points 1 week ago

Respect. 😳

[–] BagOfHeavyStones@lemm.ee 10 points 1 week ago (1 children)

If no luck, you can get universal washing machine boards now - just hook up your bits and it's right to go.

[–] diyrebel@lemmy.dbzer0.com 5 points 1 week ago* (last edited 1 week ago) (1 children)

Thanks for the suggestion. I’ve seen them in Indian YT videos. I’m half tempted but online shopping is mostly a non-starter for me and I don’t suppose I would find that locally. I bought an Arduino clone and some relays, which might be my nuclear option.

[–] BagOfHeavyStones@lemm.ee 4 points 1 week ago (1 children)

https://www.ebay.com.au/itm/405441142984 as a possible example. Dirt cheap.

Best of luck with resetting your current one.

[–] diyrebel@lemmy.dbzer0.com 2 points 6 days ago

That’s cheaper than what I already spent on an Arduino and serial adapter to use in fiddling with this problem. I’m surprised there is only one relay on that board.

[–] residentoflaniakea@discuss.tchncs.de 5 points 1 week ago (1 children)

That's some dedication. You checked all the actuators, but did you check the sensors as well? A speculation might be that, if one of them is busted, the controller stalls in error. I'm not sure what the story is with minicom reporting the serial being unavailable but if you have another microcontroller on which you could enable serial, you might be able to see more details. From my own experience, I would wire up a Raspberry Pi Pico, let it run Micropython REPL via USB to see if it catches anything at all. This way you are monitoring the serial before it goes through USB and the OS.

[–] diyrebel@lemmy.dbzer0.com 1 points 6 days ago

Since the error code possibly implies a drain pump issue, the pressure fill switch would be related. There is continuity across the two pins that are not taking voltage input. When I blow into the hose, the resistence make no change. But I guess it's not a proper test. I think I need to buy a multimeter that has a frequency (Hz) function to see if the frequency changes as the water level fills.

I tested the USB to TTL adapter itself by jumping the TX and RX pins. When I type something into Minicom the character echoes back. I could perhaps try to talk to an Arduino clone (which I have on hand).

[–] SanguineBrah@lemmy.sdf.org 5 points 1 week ago (1 children)

You will absolutely need gnd to be hooked up to get anything out of it. If the baud rate was incorrect, you would probably receive garbage characters rather than nothing at all.

[–] diyrebel@lemmy.dbzer0.com 2 points 6 days ago (1 children)

When I connect the ground pin of the adapter to the ground pin of the w/m, the TX and RX LEDs light up (either solid or rapid fire). That must be wrong, no? The tx and rx LEDs should flash when data traverses the circuit. If we could imagine that the w/m is transmitting data nonstop, certainly Minicom is not, so at least the TX LED should have stayed unlit. I could have something dodgy going on with my ground line.

[–] SanguineBrah@lemmy.sdf.org 2 points 6 days ago (1 children)

Just a thought but if you have access to an inverter or isolation transformer, you could test the machine without your house wiring being a complicating factor.

[–] diyrebel@lemmy.dbzer0.com 1 points 6 days ago

great tip! That’s something I would need to buy but I often see battery backups for PCs at my local street market which I could probably get cheaply.

[–] truthfultemporarily@feddit.org 4 points 1 week ago (1 children)

Have you searched YouTube? They sometimes have tutorials on how to do hard resets.

https://youtu.be/Ay6R-ZpT6aM

For example claims you can try opening and closing the door six times for a hard reset.

[–] diyrebel@lemmy.dbzer0.com 2 points 1 week ago (1 children)

I spent a lot of time on YT even to the point of watching Arabic videos of my model just to see what actions were taken. I tried the door latch-unlatch trick and unplugging for a long time.. holding the cancel button. Holding the 1st auxillary button. Not sure what else there is to try apart from serial comms.

[–] truthfultemporarily@feddit.org 2 points 1 week ago (1 children)

Sucks, you have any hacker spaces nearby?

[–] diyrebel@lemmy.dbzer0.com 1 points 1 week ago (1 children)

There are repair cafés in my area but they reject large appliances. I might be able to remove all the components from the cabinet and wiring harness and effectively stuff all the innards in a backpack which I could then layout on a repair table. Seems like a long shot because whoever helps work on it will be equally blind about Bekos secret diagnostic steps.

You don't have to bring it there but they might have people who can give you tips.

[–] Hugin@lemmy.world 4 points 1 week ago (1 children)

Do you have a scope? Can you look at it's TX pin when you try to talk to it? If you can see any response on the pin you should be able to figure out the baud rate from looking at that.

[–] diyrebel@lemmy.dbzer0.com 3 points 6 days ago

i don’t have one. I’ll keep my eye out for a 2nd-hand handheld one in the local street markets.

[–] vxx@lemmy.world 4 points 1 week ago* (last edited 1 week ago) (1 children)

AVCC is the supply voltage pin for the A/D Converter, PC3:0, and ADC7:6. It should be externally connected to VCC, even if the ADC is not used. If the ADC is used, it should be connected to VCC through a low-pass filter. Note that PC6..4 use digital supply voltage,

https://www.alldatasheet.com/datasheet-pdf/pdf/77391/ATMEL/ATMEGA32L.html

Check for VCC and AVCC voltage when the washing machine is on. I expect it to use it's internal clock, so it will be wired through a low pass filter on the board.

[–] diyrebel@lemmy.dbzer0.com 1 points 6 days ago (3 children)

I’m trying to get a handle on what VCC and AVCC is. This thread gives some chatter on it but I’m still not correlating this to the TTL port.

https://overflow.manganiello.tech/exchange/electronics/questions/86207/atmega8-why-do-vcc-and-avcc-have-to-be-connected

They are talking about digital analog conversions with port C (and I think the eeprom serial port i am trying to talk to is port D).

[–] vxx@lemmy.world 3 points 6 days ago

Linux and UART is my weekness, but I wondered why you added a Baud Rate and did some digging.

This thread might be helpful.

https://stackoverflow.com/questions/5347962/how-do-i-connect-to-a-terminal-to-a-serial-to-usb-device-on-ubuntu-10-10-maveri

Scrap the Baud rate and make sure you got the right permissions on /dev/ttyUSB0

[–] vxx@lemmy.world 1 points 6 days ago* (last edited 6 days ago)

I think they mean C for the clock (SCL) and D for the data (SDA) pin of the eeprom.

[–] vxx@lemmy.world 1 points 6 days ago* (last edited 6 days ago)

VCC is the power input of the microcontroller. Without Power, it wont work. AVCC is the power input of the ADC of the microcontroller. You still want to power it, even when unsused. You're connecting it directly to the VCC because it is desired to be exactly the same voltage. If not, the microcontroller likely wont work or act up.

In your case it's very likely the ADC is used as an internal clock, so you definitely need AVCC, but it's 99% likely that it's already connected as you need.

[–] jjagaimo@sh.itjust.works 3 points 1 week ago (1 children)

RX and TX are serial/uart interface. Without knowing what protocol / settings / encoding the embedded firmware actually uses it might be pretty difficult to get any data in or out. With a debugger/isp (e.g. bus pirate) you might be able to extract the firmware from the embedded micro and then disassemble it

[–] diyrebel@lemmy.dbzer0.com 1 points 6 days ago

A Bus Pirate would probably be ideal. But I don’t do cloud shopping. Guess I need to see if I can find that sold in a physical shop.

[–] SpikesOtherDog@ani.social 2 points 1 week ago

Absolutely try brute forcing with bad rates.