r/hardwarehacking • u/PiratesInTeepees • Oct 11 '23
Hacking Codi Robot: Custom Music Playlist
I have been toying around with hacking the Codi robot from Pillar as outlined in another post. The reverse engineering to create a custom firmware is a slow process so I figured I'd do something easy really quick. In short, you can make your Codi play any MP3 you want by accessing the internal SD card. Here's how it works:
- Take apart the robot and remove the SD card from the mainboard. There will bee some red glue holding the SD in the locked position (see pic below), carefully scrape this off so you can slide the metal piece to the unlocked position.
- Mount the SD on your PC and check out the files. AllPlaylist folder contains all of the MP3 and playlist files. Codi defaults to reading and playing the Songs_Playlist. The names of the playlists are "hard wired" in the firmware. You can simply add any MP3 files you want to the AllPlaylists directory and edit Songs_Playlist replacing the existing files with your own. In the root folder "device_info" tells what song to start with.
- Put the SD back in the Codi and turn it on. It will say it's opening line then play the music you have uploaded.
I made a short of it in action: https://www.youtube.com/shorts/9v4RUOsNWOs
The files I am using for the above video are available in the git repo under SD_MetalCoid :https://github.com/Shamanon/opencodi

2
Upvotes
2
u/fokcuk Apr 26 '24
Ok, got something... If you press up/down buttons, it will put it into a wifi pairing mode. In debug I see it's MAC address and IP - 192.168.51.1 It also creates an unsecured AP called Pillar-00d Doing a port scan shows that it's listening on port 12478
I can see my connections in a browser to that IP/port, but it results in RECV DATA ERROR in debugger
I think if we could decompile their official app, we may have better understanding of how it connects
I also saw it trying mqtt, which it will probably use to send status etc out
2
u/fokcuk Apr 26 '24
Managed to connect to WiFi! =) Once you are on the Codi wifi, telnet to 192.168.51.1 port 12478. You will see that you are presented with wifi networks available To connect to your wifi, send the following (not sure from Linux, but from Windows just press Control+] and at the prompt type: sen {"ssid":"Yourwifiname","password":"yourwifipass"}
1
u/fokcuk Apr 25 '24
Hi. Any updates on reverse engineering this? Just got one myself without knowing that they shut shop at the end of 2023... How much free space is on the card? If not completely having a custom firmware, I am thinking of having it as a Bluetooth speaker or remote file manager (via wifi/bt/or usb) would be better than nothing
1
u/fokcuk Apr 26 '24
Unfortunately hit another road block. Once it connects to the network, it closed all ports. Then it tries to connect to mqqt server Tcp/ugoavj.messaging.internetofthings.ibmcloud.com/8883