The TI-82 and TI-85 calculators use non-RS232 communications and can talk between MAME instances over sockets. It’s implemented using device_slot_interface. Cooked and raw communication over the socket is supported. Try following that example?