Author Topic: Anyone know how to change the device name for a board using Soarer's Tennsy Mod?  (Read 2224 times)

0 Members and 1 Guest are viewing this topic.

Offline iowaseven

  • Thread Starter
  • Posts: 8
In Windows under the Devices and Printers control panel item where your monitor, keyboard and mouse are listed, my Model M using Soarer's Tennsy Mod displays as a keyboard called 'Soarer's Keyboard Converter'. I would like to change this to a name of my choosing (e.g. '1985 IBM Model M Custom', or something). Anyone know if this is possible?
No disrespect menant to the great Mr. Soarer!

Offline suicidal_orange

  • * Global Moderator
  • Posts: 4771
  • Location: England
As the source code is not available you can't change it and recompile so your only option is to edit the .hex file directly.  To test this idea I loaded the controller firmware (should be similar enough) in a hex editor and searched for the string "Soarer" but it was not found so that's not going to work.

I would say it's not possible but nearly didn't post as someone may know better - hopefully they do as this would be a nice feature :)
120/100g linear Zealio R1  
GMK Hyperfuse
'Split everything' perfection  
MX Clear
SA Hack'd by Geeks     
EasyAVR mod

Offline Findecanor

  • Posts: 5039
  • Location: Koriko
USB strings are in 16-bit Unicode. Every other byte in the string is a zero.
🍉

Offline suicidal_orange

  • * Global Moderator
  • Posts: 4771
  • Location: England
USB strings are in 16-bit Unicode. Every other byte in the string is a zero.
Ooh thanks!  *looks again*

53 = S regardless of encoding, correct?  There is no 53 in the file so does that mean we're out of luck or must it be there somewhere?
120/100g linear Zealio R1  
GMK Hyperfuse
'Split everything' perfection  
MX Clear
SA Hack'd by Geeks     
EasyAVR mod

Offline hasu

  • Posts: 3474
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Or I guess you can overwrite with INF or regedit.

Offline iowaseven

  • Thread Starter
  • Posts: 8
Thanks for looking into this, guys! It's much appreciated.

Offline fohat.digs

  • * Elevated Elder
  • Posts: 6472
  • Location: 35°55'N, 83°53'W
  • weird funny old guy
So what the heck has happened to Soarer himself?

I almost asked him for his mailing address once, but never did. All I know is that it is England somewhere.

Does nobody here or on DT know anything about him personally?
Citizens United violates the essence of what made America a great country in its political system. Now it’s just an oligarchy, with unlimited political bribery being the essence of getting the nominations for president or to elect the president.
So now we’ve just seen a complete subversion of our political system as a payoff to major contributors, who want and expect and sometimes get favors for themselves after the election’s over.”
- Jimmy Carter 2015

Offline dorkvader

  • Posts: 6288
  • Location: Boston area
  • all about the "hack" in "geekhack"
So what the heck has happened to Soarer himself?

I almost asked him for his mailing address once, but never did. All I know is that it is England somewhere.

Does nobody here or on DT know anything about him personally?


Hopefully we will know soon

Offline Findecanor

  • Posts: 5039
  • Location: Koriko
53 = S regardless of encoding, correct?
S = 53 hexadecimal = 83 decimal.

🍉

Offline suicidal_orange

  • * Global Moderator
  • Posts: 4771
  • Location: England
53 = S regardless of encoding, correct?
S = 53 hexadecimal = 83 decimal.

I meant whether 8 or 16 bit hex, my terminology is rusty due to working too long in an office :-[
120/100g linear Zealio R1  
GMK Hyperfuse
'Split everything' perfection  
MX Clear
SA Hack'd by Geeks     
EasyAVR mod

Offline arakula

  • Posts: 49
As the source code is not available you can't change it and recompile so your only option is to edit the .hex file directly.  To test this idea I loaded the controller firmware (should be similar enough) in a hex editor and searched for the string "Soarer" but it was not found so that's not going to work.
Since the firmware is provided in a .hex file, loading that into a hex editor is a bit ... well, overkill. The .hex file is a text file containing hex strings.
You only need to know where to look ...
For example, in Soarer_at2usb_v1.12_atmega32u4.hex, it's here:

:100520000072000000380353006F00610072006524
:100530000072002700730020004B00650079006204
:10054000006F00610072006400200043006F006EC5
:1005500000760065007200740065007200000061A2


At offset 0525, you can set the length of the string (including an UTF-16 0 at the end); that's followed by 03, indicating that it's a string. After that, 56 bytes come with little-endian UTF-16 characters. If you change anything, however, ...
  • keep in mind that the last byte in the line is a checksum over the line (look up Intel Hex format for the calculation)
  • I got no idea whether Soarer's command line tools will be able to find the USB device. Presumably, they will, as they're probably only searching for VID and PID.

Offline suicidal_orange

  • * Global Moderator
  • Posts: 4771
  • Location: England
Since the firmware is provided in a .hex file, loading that into a hex editor is a bit ... well, overkill. The .hex file is a text file containing hex strings.
You only need to know where to look ...
For example, in Soarer_at2usb_v1.12_atmega32u4.hex, it's here:

:100520000072000000380353006F00610072006524
:100530000072002700730020004B00650079006204
:10054000006F00610072006400200043006F006EC5
:1005500000760065007200740065007200000061A2


At offset 0525, you can set the length of the string (including an UTF-16 0 at the end); that's followed by 03, indicating that it's a string. After that, 56 bytes come with little-endian UTF-16 characters. If you change anything, however, ...
  • keep in mind that the last byte in the line is a checksum over the line (look up Intel Hex format for the calculation)
  • I got no idea whether Soarer's command line tools will be able to find the USB device. Presumably, they will, as they're probably only searching for VID and PID.
Very helpful - thanks!

Hopefully you're right about the tools using VID and PID, they're shorter to write out as well as that being the standard way of doing USB so I don't see why Soarer would use the text description, unless he doesn't do well at remembering numbers...

Who's going to test it?  It's too late for me today.
120/100g linear Zealio R1  
GMK Hyperfuse
'Split everything' perfection  
MX Clear
SA Hack'd by Geeks     
EasyAVR mod

Offline iowaseven

  • Thread Starter
  • Posts: 8
I bought this up as a casual topic, and you gents are going all out on it! Thank you all so much!