Archive | Electronics RSS feed for this section

Dialing into TINI from a PC (TINI as a PPP Server)

11 May

Example: Dialing into TINI from a PC (TINI as a PPP Server)
The previous example discussed how to make the TINI behave as a PPP client, where by client we mean dialing out to an ISP. Now, we’re going to make the TINI behave as a PPP server, where by server we mean answering a call [...]

Testing the Modem class: The ModemATTest

11 May

Testing the Modem class: The ModemATTest
The ModemATTest class uses the Modem class to send AT commands to a modem. It takes the serial port to open as the first command line argument, then AT commands after that.
Listing 13-2: ModemATTest.java
import java.io.*;
import javax.comm.*;
public class ModemATTest   {
public static void main(String[] args) { Modem external = new Modem(); external.openSerialPort(args[0]);
for [...]

How TINI does PPP

11 May

How TINI does PPP
The TINI API handles PPP connections via the PPP,  PPPEventListener, and PPPEvent classes in the com.dalsemi.tininet.ppp package. The PPP acts as a layer between the IP network layer and the physical interface. To communicate via PPP, an application must create a PPP object and pass a serial port object to it, telling [...]

relevant network commands

11 May

Other relevant network commands
In addition to the ipconfig command, there are a variety of other slush commands that are network related that we will make use of in this chapter. These are netstat, downserver, startserver, arp,  hostname, nslookup, ping,  ppp, sendmail, and ftp. Refer to Table 7-4 for more details on these commands.
A simple TINI [...]

Connecting TINI to an IP Network

11 May

Connecting TINI to an IP Network: In this chapter, we will examine various aspects of TCP/IP networking with TINI, with a special emphasis on using a modem to connect TINI to the Internet via PPP. We’ll begin with a very basic discussion on how to construct an IP network consisting of a TINI and a [...]