Forums

Sega Master System / Mark III / Game Gear
SG-1000 / SC-3000 / SF-7000 / OMV
Home - Forums - Games - Scans - Maps - Cheats - Credits
Music - Videos - Development - Hacks - Translations - Homebrew

View topic - G2GTest & G2GTerminal - Game Gear communications test programs

Reply to topic
Author Message
  • Joined: 25 Jul 2007
  • Posts: 731
  • Location: Melbourne, Australia
Reply with quote
G2GTest & G2GTerminal - Game Gear communications test programs
Post Posted: Sat Jun 26, 2021 2:21 pm
In my pursuit of understanding how Game Gear communication works I wrote a couple of simple test programs that use the link protocol. They are written in C using Sverx's devkitSMS library.

G2GTest

A basic utility to send a byte and receive a byte.
Shows the status of the send and receive flags.

Up/Down to select a parameter to modify and Left/Right to change the value.

Button 1 to send the selected byte.
Button 2 to read a byte if one is waiting to be received.

https://github.com/pmckeon/G2GTest


G2GTerminal

World's simplest messaging application for the Game Gear.

Enter a message up to 60 characters using the directional pad and Button 1, Press Button 2 to send a message.

Incoming messages display in the top window.

https://github.com/pmckeon/G2GTerminal
G2GTest.PNG (9.52 KB)
G2GTest.PNG
G2GTerminal.PNG (13.31 KB)
G2GTerminal.PNG
G2GTest.zip (2.05 KB)
G2GTerminal.zip (2.57 KB)

  View user's profile Send private message
  • Joined: 24 Mar 2021
  • Posts: 120
Reply with quote
Post Posted: Sat Jun 26, 2021 3:32 pm
Do we know which of the pins on the Gear2Gear cable hold what kind of data when the port is in "Regular" mode?
  View user's profile Send private message
  • Joined: 25 Jul 2007
  • Posts: 731
  • Location: Melbourne, Australia
Reply with quote
Post Posted: Sat Jun 26, 2021 8:43 pm
PC4 (Pin 6) is serial output and PC5 (Pin 9) is serial input. The other pins are not used in this mode but can still be driven manually as inputs or outputs.
  View user's profile Send private message
  • Joined: 24 Mar 2021
  • Posts: 120
Reply with quote
Post Posted: Sun Jun 27, 2021 6:00 am
Do we know what bitrate?
  View user's profile Send private message
  • Joined: 25 Jul 2007
  • Posts: 731
  • Location: Melbourne, Australia
Reply with quote
Post Posted: Sun Jun 27, 2021 6:41 am
Everything is documented in the official hardware reference manual

https://segaretro.org/images/1/16/Sega_Game_Gear_Hardware_Reference_Manual.pdf

bitrate is dependant on Baud setting which is selectable between 300, 1200, 2400, 4800 (default).
  View user's profile Send private message
  • Joined: 24 Mar 2021
  • Posts: 120
Reply with quote
Post Posted: Sun Jun 27, 2021 4:15 pm
Ah! Thank you!


I assumed I'd be able to find that somewhere on the SMSpower wiki but didn't think to look elsewhere afterwards (oops)
  View user's profile Send private message
Reply to topic



Back to the top of this page

Back to SMS Power!