Patent ID: 6961321

Claim:
A mobile terminal connectable in a mobile mode between an infrastructure network and an ad hoc network, said infrastructure network being a permanent network interconnected via a relay node, said ad hoc network being a temporary network formed of only plural mobile terminals, said infrastructure network having plural mobile terminals, relay nodes, and a server which provides information needed for connection of mobile terminals, wherein an infrastructure network connection procedure and an ad hoc network connection procedure are configured in an integrated mode in an address management process, a connection network identification process and a destination address capture process which are needed when said mobile terminal is connected to a network to establish communications, wherein each process includes identifying whether a network to which said mobile terminal is connected is the ad hoc network or the infrastructure network and then using a procedure corresponding to the connected network, and a first counter configured to perform a reset operation by receiving an ad hoc network advertisement message receive signal and a reset signal, to count, as a first count when said reset signal is input, a number of ad hoc network advertisement messages, and to output the first count; a second counter configured to perform a reset operation by receiving an infrastructure network advertisement message receive signal and a reset signal, to count, as a second count when said reset signal is input, a number of infrastructure network advertisement messages, and to output the second count; a timer configured to measure a predetermined period of time and to output said reset signal when a time-out occurs; a first comparator configured to compare the first count with zero, and to output a comparison result as said infrastructure network connection signal to a decoder; and a second comparator configured to compare the second count with zero, and to output the comparison result as said ad hoc network connection signal to said decoder, said decoder being configured to determine whether said mobile terminal has moved between the infrastructure network and the ad hoc network based on the received infrastructure connection signal and the received ad hoc network connection signal.