The following describes the modifications and implementations of modules such as GBI and GBI_Test, as well as how they fit into the reused elements.
The main purpose of GBI-Test is to send a TRIGGER via the Start_Run port to GBI in order to activate the execution of the body of its poin_entry_Run() function. This action will cause the Master device to send a connection request to the other device(s). Apart from this purpose GBI_Test was used to test the upper interface of GBI by sending and receiving strings between them during the development stage. However, it only has very little use after Bluetooth is integrated with game devices.
GBI (Game Bluetooth Interface) is the main focus of my works. It has made significant reuse of last year's RFCOMM module implementation. By the efficient uses of L2CAP's interface, GBI is able to communicate with L2CAP to archieve a range of establishments. The first and foremost is the request of connection by the Master device to the other Slave device(s). After the connection related events, these devices will be configured between them. Finally the devices could truely communicate with each other by sending packets.
GBI's L2CA_Packet_Out and L2CA_Packet_In ports are responsible for sending and receiving packets of type L2CA_Packet respectively between GBI and L2CAP. These two ports deal with the lower layer traffics. Whereas the Output and Input ports are responsible for sending and receiving strings no large than 20 bytes between GBI and the upper layer which is in this case GBI-Test directly or the game device indirectly.
This module is integrated with the reused modules including L2CAP in the following section on NewTooth.
This section describes what and how the lower layer modules are reused and how does GBI fits in. NewTooth is a cut-down version of the real Bluetooth. It only consists of the lower level protocols of Bluetooth by discarding the higher level protocols such as TCP, IP, SDP etc.
This single unit represents all the modules in NewTooth behaviour with only the main input and outport ports in display. SBI stands for Slip Bluetooth Interface. A single SBI unit as a NewTooth symbol also represents a single Bluetooth enabled device. In the section that follows two SBI would be linked together by the Bit-PhysicalLayer!
This is the behaviour of TwinTooth. It represents two SBIs connected to the Bit-PhysicalLayer. The top SBI is the Master and the one below is the Slave. The same goes to the GBI_Test units.
This is the symbol of TwinTooth which is the top level representation of the diagram right above it.