Broadband adapter: Difference between revisions

From dreamcast.wiki
Jump to navigation Jump to search
No edit summary
(→‎Regional Differences: Add Fermi Estimation notice)
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[File:58747972.png|thumb|A black Dreamcast broadband adapter]]  
[[File:58747972.png|thumb|A black Dreamcast broadband adapter]]  


The Dreamcast '''Broadband Adapter''' ('''HIT-400''', sometimes '''HIT-401'''; HIT-401 is written on the box, but HIT-400 is on the peripheral's underside sticker), often abbreviated '''BBA''', is a 10/100mbit network adapter for the Dreamcast based on the Realtek 8139C chip. It connects to the G2 bus in place of the modem, and it was released in Japan and in the United States. Despite not seeing a release in PAL regions, some PAL game software is actually compatible with it, such as Toy Racer and Phantasy Star Online.<ref>https://www.dreamcastlive.net/games</ref> It is a different piece of hardware than the [[LAN adapter | Dreamcast LAN Adapter]].  
The Dreamcast '''Broadband Adapter''' ('''HIT-400''', sometimes '''HIT-401'''; HIT-401 is written on the Japanese box, but HIT-400 is on the peripheral's underside sticker), often abbreviated '''BBA''', is a 10/100mbit network adapter for the Dreamcast based on the Realtek 8139C chip. It connects to the G2 bus in place of the modem, and it was released in Japan and in the United States. Despite not seeing a release in PAL regions, some PAL game software is actually compatible with it, such as Toy Racer and Phantasy Star Online.<ref>https://www.dreamcastlive.net/games</ref> It is a different piece of hardware than the [[LAN adapter | Dreamcast LAN Adapter]].


Broadband Adapters were made in both black and white colors, although the black ones were only available via online order from Sega Direct in Japan. Due to their release towards the end of the Dreamcast's official lifespan, broadband adapters are somewhat uncommon peripherals and are only supported by a handful of games,<ref>https://www.dreamcastlive.net/games</ref> but they are useful for playing supported networked games and linking to a computer for programming, debugging, and dumping [[GD-ROM|GD-ROMs]].


== Tools ==  
== Software Support ==
 
Due to their release towards the end of the Dreamcast's official lifespan, broadband adapters are somewhat uncommon peripherals and are only supported by a handful of games (see https://www.dreamcastlive.net/games for a list). They are also useful for linking to a computer for programming and debugging software (via [[dcload-ip]]), as well as dumping [[GD-ROM|GD-ROMs]] (via [[httpd-ack]]).
 
In Japan, the Dreamcast [[Karaoke|Karaoke Unit]] could also access the DreamKara service by way of the Broadband Adapter.<ref>For some reason the text on this page is white on a white background. Highlight the whole page to see it: http://web.archive.org/web/20010413170305/http://www.sega.co.jp/sega/kara/dc_kara/bba/bba.html</ref>
 
Software made using the open-source [[KallistiOS]] development environment has access to a broadband adapter driver, as well.<ref>https://github.com/KallistiOS/KallistiOS/blob/master/kernel/arch/dreamcast/hardware/network/broadband_adapter.c</ref>
 
== Regional Differences ==
 
The only major difference between the Japanese and North American releases was the packaging, as they had different boxes and manuals, and the Japanese boxes also included the Broadband Passport web browser.
 
Hardware-wise, all broadband adapters are functionally identical (except MAC addresses, as those are meant to be unique to each device<ref>"The Ethernet - A Local Area Network", Version 2.0, Digital Equipment Corporation, Intel Corporation, Xerox Corporation, November 1982, p. 24.</ref>) and are not region-locked in any way. In many cases, they even have the same FCC sticker on the bottom of each unit irrespective of the region in which they were sold, although some have a sticker without the FCC logo on them. It appears that those lacking the FCC logo were likely just built before Sega Enterprises became Sega Corporation in November 2000, as they state "Sega Enterprises" instead of "Sega Corporation."
 
=== Availability ===
 
Broadband Adapters were made in both black and white colors, although the black models were only available via online order from CSI in Japan.<ref>http://web.archive.org/web/20020402231233/http://www3.csi-msp.com:80/bbsite/</ref> Fewer than 2000 black adapters were made due to low demand during the window of opportunity to pre-order them (December 1, 2001 to December 28, 2001), and they cost 8,800 yen (the same price as the white adapters<ref>https://www.ign.com/articles/2000/06/16/dreamcast-broadband-on-display</ref>).<ref>http://web.archive.org/web/20011227174405/http://www3.csi-msp.com/bbsite/web/news/news54.html</ref> Also, an R7 Limited Edition console + broadband adapter bundle was sold by CSI for a limited time, however it is not clear if these consoles were sold with black adapters.<ref>http://web.archive.org/web/20020816021110/http://www3.csi-msp.com/bbsite/web/news/news69.html</ref> Contrary to popular belief, in Japan broadband adapters were only sold by CSI, not by Sega themselves.<ref>http://web.archive.org/web/20020606141349/http://www.sega.co.jp:80/bba/where.html</ref> In the US, however, they could be bought in stores or from Sega's online store for $60.<ref>http://web.archive.org/web/20010331175923/http://www.sega.com/sega/segastore/index.jhtml</ref>
 
'''''NOTICE: Due to the lack of exact production numbers, the below estimates are determined by a technique known as "Fermi estimation,"<ref>https://en.wikipedia.org/wiki/Fermi_problem</ref> which uses available data to estimate order of magnitude rather than calculate perfectly accurate numbers.'''''
 
Though there is no direct source for the exact number of broadband adapters produced, it is actually possible to estimate how many there are due to the way in which MAC addresses work: Each MAC address consists of 6 bytes AA:BB:CC:DD:EE:FF, with the leading bytes all 00:d0:f1 (the MAC address range owned by SEGA). The next 3 bytes are unique per-device, and it appears that all broadband adapters have '02' or '03' in byte 'DD'. Dreamcast LAN Adapters appear to share the '02' byte. Since 2 bytes hold 65,536 values, this means that within each '02' and '03' MAC address group there are 65,536 possible devices. As it is currently unknown if there are '00' or '01' groups, this means we can estimate that there are potentially 2 groups of 65,536 adapters, or a maximum of 131,072 total BBAs and LAN adapters produced.
 
We can actually take this estimate further: if the networking adapters are assumed produced in sequential MAC address order, the author of this sentence owns a LAN adapter whose address would suggest something like 4800 LAN adapters were produced. Black broadband adapters, which were among the last produced in 2001, have addresses suggesting around 24,000 devices in group '03'. By the presence of group '03', group '02' was likely full, which would mean a more specific total of roughly 90,000 networking adapters (~4800 LAN adapters, <2000 black BBAs, and ~83,000 white BBAs).
 
== Hardware ==
 
The broadband adapter layout is rather simple, being comprised of a very common and inexpensive Realtek RTL8139C 10/100mbps PCI ethernet controller and a custom, SEGA-branded G2-to-PCI bridge chip (often referred to as "GAPS" due to containing the identification string "GAPSPCI_BRIDGE_2"), plus additional supporting circuitry such as a Pulse H0011 isolation transformer, 25MHz crystal oscillator, etc.
 
Due to the various hardware security measures in place, the GAPS PCI bridge chip has proven very difficult to reverse-engineer, stifling several efforts to make "clone" BBAs over the years. The difficulty in programming the chip has also resulted in incorrect implementations in all known open-source drivers, leading to significantly reduced performance (something like 24Mbps when the chip is actually capable of the full 100Mbps) and inconsistent open-source documentation, motivating a months-long effort by the author of this sentence to better understand the hardware and completely overhaul dcload-ip (Note: still ongoing--this bridge chip is insane).<ref>https://github.com/Moopthehedgehog/dcload-ip</ref>
 
Of note, it is not likely that the bridge chip itself would be useful in designing arbitrary PCI peripherals for the Dreamcast; certain security measures appear to be essentially "hardcoded" into the hardware for the RTL8139C. The PCI side may also only run at 25MHz, as the bridge chip does not appear to do any intermediary frequency conversion to PCI's conventional 33 or 66 MHz. The RTL8139C can handle bus speeds of 16.75MHz to 40MHz just fine, in any case.<ref>See https://people.freebsd.org/~wpaul/RealTek/spec-8139c(160).pdf, page 2</ref> As a result, understanding the operation of the bridge is really only useful for programming broadband adapter drivers.
 
== Tools ==
 
* [[dcload-ip]] - A program made to transfer .bin and .elf files (and srec files, if specially configured for it) over the BBA. It also provides chainloaded programs with a standard syscall interface for communicating with a networked PC. Mostly intended for homebrew development.
* [[dcload-ip]] - A program made to transfer .bin and .elf files (and srec files, if specially configured for it) over the BBA. It also provides chainloaded programs with a standard syscall interface for communicating with a networked PC. Mostly intended for homebrew development.
* [[httpd-ack]] - Most highly recommended [[GD-ROM]] dumping software
* [[httpd-ack]] - Most highly recommended [[GD-ROM]] dumping software
Line 11: Line 43:


== Documents ==
== Documents ==
* [[:File:Spec-8139c(160).pdf|Realtek RTL8139C datasheet]]
* [[:File:Spec-8139c(160).pdf|Realtek RTL8139C datasheet]]
{{DCWiki:Stub}}


== References ==
== References ==

Latest revision as of 18:00, 9 May 2020

A black Dreamcast broadband adapter

The Dreamcast Broadband Adapter (HIT-400, sometimes HIT-401; HIT-401 is written on the Japanese box, but HIT-400 is on the peripheral's underside sticker), often abbreviated BBA, is a 10/100mbit network adapter for the Dreamcast based on the Realtek 8139C chip. It connects to the G2 bus in place of the modem, and it was released in Japan and in the United States. Despite not seeing a release in PAL regions, some PAL game software is actually compatible with it, such as Toy Racer and Phantasy Star Online.[1] It is a different piece of hardware than the Dreamcast LAN Adapter.


Software Support

Due to their release towards the end of the Dreamcast's official lifespan, broadband adapters are somewhat uncommon peripherals and are only supported by a handful of games (see https://www.dreamcastlive.net/games for a list). They are also useful for linking to a computer for programming and debugging software (via dcload-ip), as well as dumping GD-ROMs (via httpd-ack).

In Japan, the Dreamcast Karaoke Unit could also access the DreamKara service by way of the Broadband Adapter.[2]

Software made using the open-source KallistiOS development environment has access to a broadband adapter driver, as well.[3]

Regional Differences

The only major difference between the Japanese and North American releases was the packaging, as they had different boxes and manuals, and the Japanese boxes also included the Broadband Passport web browser.

Hardware-wise, all broadband adapters are functionally identical (except MAC addresses, as those are meant to be unique to each device[4]) and are not region-locked in any way. In many cases, they even have the same FCC sticker on the bottom of each unit irrespective of the region in which they were sold, although some have a sticker without the FCC logo on them. It appears that those lacking the FCC logo were likely just built before Sega Enterprises became Sega Corporation in November 2000, as they state "Sega Enterprises" instead of "Sega Corporation."

Availability

Broadband Adapters were made in both black and white colors, although the black models were only available via online order from CSI in Japan.[5] Fewer than 2000 black adapters were made due to low demand during the window of opportunity to pre-order them (December 1, 2001 to December 28, 2001), and they cost 8,800 yen (the same price as the white adapters[6]).[7] Also, an R7 Limited Edition console + broadband adapter bundle was sold by CSI for a limited time, however it is not clear if these consoles were sold with black adapters.[8] Contrary to popular belief, in Japan broadband adapters were only sold by CSI, not by Sega themselves.[9] In the US, however, they could be bought in stores or from Sega's online store for $60.[10]

NOTICE: Due to the lack of exact production numbers, the below estimates are determined by a technique known as "Fermi estimation,"[11] which uses available data to estimate order of magnitude rather than calculate perfectly accurate numbers.

Though there is no direct source for the exact number of broadband adapters produced, it is actually possible to estimate how many there are due to the way in which MAC addresses work: Each MAC address consists of 6 bytes AA:BB:CC:DD:EE:FF, with the leading bytes all 00:d0:f1 (the MAC address range owned by SEGA). The next 3 bytes are unique per-device, and it appears that all broadband adapters have '02' or '03' in byte 'DD'. Dreamcast LAN Adapters appear to share the '02' byte. Since 2 bytes hold 65,536 values, this means that within each '02' and '03' MAC address group there are 65,536 possible devices. As it is currently unknown if there are '00' or '01' groups, this means we can estimate that there are potentially 2 groups of 65,536 adapters, or a maximum of 131,072 total BBAs and LAN adapters produced.

We can actually take this estimate further: if the networking adapters are assumed produced in sequential MAC address order, the author of this sentence owns a LAN adapter whose address would suggest something like 4800 LAN adapters were produced. Black broadband adapters, which were among the last produced in 2001, have addresses suggesting around 24,000 devices in group '03'. By the presence of group '03', group '02' was likely full, which would mean a more specific total of roughly 90,000 networking adapters (~4800 LAN adapters, <2000 black BBAs, and ~83,000 white BBAs).

Hardware

The broadband adapter layout is rather simple, being comprised of a very common and inexpensive Realtek RTL8139C 10/100mbps PCI ethernet controller and a custom, SEGA-branded G2-to-PCI bridge chip (often referred to as "GAPS" due to containing the identification string "GAPSPCI_BRIDGE_2"), plus additional supporting circuitry such as a Pulse H0011 isolation transformer, 25MHz crystal oscillator, etc.

Due to the various hardware security measures in place, the GAPS PCI bridge chip has proven very difficult to reverse-engineer, stifling several efforts to make "clone" BBAs over the years. The difficulty in programming the chip has also resulted in incorrect implementations in all known open-source drivers, leading to significantly reduced performance (something like 24Mbps when the chip is actually capable of the full 100Mbps) and inconsistent open-source documentation, motivating a months-long effort by the author of this sentence to better understand the hardware and completely overhaul dcload-ip (Note: still ongoing--this bridge chip is insane).[12]

Of note, it is not likely that the bridge chip itself would be useful in designing arbitrary PCI peripherals for the Dreamcast; certain security measures appear to be essentially "hardcoded" into the hardware for the RTL8139C. The PCI side may also only run at 25MHz, as the bridge chip does not appear to do any intermediary frequency conversion to PCI's conventional 33 or 66 MHz. The RTL8139C can handle bus speeds of 16.75MHz to 40MHz just fine, in any case.[13] As a result, understanding the operation of the bridge is really only useful for programming broadband adapter drivers.

Tools

  • dcload-ip - A program made to transfer .bin and .elf files (and srec files, if specially configured for it) over the BBA. It also provides chainloaded programs with a standard syscall interface for communicating with a networked PC. Mostly intended for homebrew development.
  • httpd-ack - Most highly recommended GD-ROM dumping software
  • BBRip v1.2 - Now-obsolete Windows-only GD-ROM dumping software for use with dcload-ip (it is recommended to use httpd-ack instead)

Documents

References