TCode v0.4 — Why you, and your device, need it

Hi Guys, Tempest here.

You’ll all probably know me for my devices, but for my sins the other thing I am responsible for is the TCode protocol, which is what drives all of my devices and some others too. I want you to know about the latest version of TCode: v0.4.

I especially want you to know about it if you’re an app developer!

The idea behind TCode is simplicity and device interoperability. Anybody can build an adult toy, and anybody can write an app to drive it. Nobody has to do both in order to get something working, and nobody gets locked into a closed ecosystem.

TCode can also do something that the other protocols can’t, which is smooth movements.

My devices (OSR2/SR6/SSR1/SSR2), and other TCode devices like FunOSR, are capable of smooth acceleration, which makes the device movements feel much more natural.

Until recently however smooth movement has required the script player to generate the smooth motion profiles and control the device with high frequency position updates. Functional, but sub-optimal. TCode v0.4 is very important because it introduces on-device interpolation: the smooth movement is generated by the device itself, with just a little extra information from the player (G commands). This means the motion can be a lot smoother, and the data budget is a lot smaller!

TCode v0.4 therefore works very well over Bluetooth as well Serial or WiFi.

So the purpose of this post is to raise awareness. TCode v0.4 is here and it represents a big quality of life improvement for TCode users. I’ve been starting to push it out with my firmware updates, but I’ve also made the source code for the interpreter available on GitHub.

If you have a TCode device you should get a firmware update to take advantage.

If you have a TCode player get the latest version. I believe XTP and MFP have already been updated. Erosync has a very new and sweet implementation of it. If you use a player that hasn’t been updated get in touch with whoever owns it and ask them (nicely!) for an upgrade.

Lastly, driving this tech forward is essentially what I do for a living, full time. If you like my work and you’d like to help keep me in business you can support me through Patreon or SubscribeStar.


For developers:

The v0.4 TCode interpreter is open source software under an MIT license. That means anybody who builds stroker devices is absolutely welcome to use it.

The specification for TCode v0.4 (including Bluetooth) is available here:

I’ve specifically included a guide explaining how to create G commands from a funscript.

Let me know if you think there’s anything you would like to know, or you think is missing from the specification.

15 Likes

Oh nice! This is pretty hype!

I’ve been developing an app that supports TCode for awhile now and while I think it’s in a good state, I’d be curious to see how much better it is with the new spec!

I’ll try upgrading and see if I can tell the difference. Thanks for sharing!

2 Likes

Well, not much to say except for expressing appreciation for the work you do.

2 Likes

6 Likes

Update:

  • Bluetooth code added to the TempestTCode library (v0.4.5), which makes adding TCode compatible Bluetooth capability to a device very easy.

  • The SR6 Beta1 official firmware is now an example in the TempestTCode library (v0.4.5), which showcases how to use the bluetooth capability with TCode. This is also the code that drives the OSR2 ESP32.

I figured that after 5 years the basic SR6 & ESP32 code should be open source. I have some cool new patron-only stuff planned for SR6 in any case…

5 Likes

Amazing, thank you for work Tempest!

1 Like

how do I connect the bluetooth after installing the new firmware? I installed on my ESP32 devkit1 and don’t see the bluetooth option showing up after rebooting it