The disconnected message goes off of the electric brake circuit and is likely an issue with the ground wire although it could be brake wiring more times than not its a ground issue, the breakaway battery should not effect it. Its hard to diagnose over the computer but I would check the plug on the truck both front and back as well as ground connections on truck and trailer.