Communicating Thru COM /Serial port

Hi,
I am developing POS system. The Display pole is connected on com1 and cash drawer on serial port. Can anyone help me how if i have a variable var_amt and want to display it on the pole[com1] what command to use i.e. how to open com / serial port thru forms.
Thanks in Advance

We have an old Forms application that needed to dial a modem through the serial port. Here's some code to maybe get you started. I'm going to assume you're on Windows.
Step 1:
Attach an OLE object to your canvas, and point that to MSCOMMLib.MSComm.1 (the MS serial port handler).
Step 2:
Sample code. This is our DIAL_PHONE proedure that receives a phone number, opens the COM port (in our case COM2), sends the modem dial strings, and waits for a respomse back from the mode. I'm not an expert, we just taught ourselves enough to get this one functionality to work.
/* Receives phone string, including area code, and dials a modem on COM2. Disconnects 9 seconds
after dialing (S7=09), assuming the telemarketer will have switched control to their headsets by then
PROCEDURE dial_phone(phone_number IN OUT VARCHAR2) IS
CommHandle     ole2.obj_type;     -- to hold the interface pointer
hold          number;
modem_init     VARCHAR2(30) := 'ATQ0V1E1S0=0X4S7=5';
dial_string     VARCHAR2(20);
com_err          VARCHAR2(100);
outBuf          NUMBER;
inchar          varchar2(100) := ' ';
loop_count     NUMBER(9) := 0;
dial_msg     varchar2(100);
time_start binary_integer;
time_end binary_integer;
z          NUMBER := 0;
delay      NUMBER := 100000;
--Return from check exchange
phone_to_dial     VARCHAR2(15);
X VARCHAR2(15);
BEGIN
IF     phone_number IS NULL
THEN     x := win_alert('OK','No phone number to dial.');
     raise form_trigger_failure;
END IF;
logit(:global.debug,'======== Begin DIAL_PHONE (' || phone_number || ') ==============');
-- Check exchange #, If it's in local calling area don't use an area code. Will also
-- add user's long distance data to the number returned, if necessary,
phone_to_dial := check_exchange(phone_number);
CommHandle := forms_ole.get_interface_pointer('b_main_prospect_info.mscomm_ocx');
--Set up the dial string with the passed phone number
dial_string := 'ATDT9' || phone_to_dial;
dial_msg := 'Dialing ' || dial_string || '...';
message(dial_msg,NO_ACKNOWLEDGE);
synchronize;
-- Set the com port to COM2.
OLE2.SET_PROPERTY(CommHandle, 'CommPort', 2);
-- try to close COM2, in case it was open for some reason. 0 = FALSE, -1 = TRUE
begin
OLE2.SET_PROPERTY(CommHandle, 'PortOpen', 0);
exception
when others then null;     -- if already open, ignore error
end;
-- Set modem to 1200 baud, no parity, 8 data, and 1 stop bit.
OLE2.SET_PROPERTY(CommHandle, 'Settings', '1200,N,8,1');
-- Open the port. 0 = FALSE, -1 = TRUE
OLE2.SET_PROPERTY(CommHandle, 'PortOpen', -1);
-- find out if the com port has opened successfully. 0 = FALSE, -1 = TRUE
hold := OLE2.GET_num_PROPERTY(CommHandle, 'PortOpen');
IF hold = 0 THEN --the com port could not be opened.
X := WIN_ALERT('OK', 'Your COM2 port (modem) could not be opened. Contact your supervisor');
RAISE form_trigger_failure;
END IF;
-- Send the attention command to the modem. Default setup string
OLE2.SET_PROPERTY(CommHandle, 'Output', modem_init || chr(13));
z := 0;
loop
z := z + 1;
exit when z = delay;
end loop;
-- Run program that give windows control to process info. in output buffer to modem
HOST(:global.gtec_dir || 'DEVENTS.EXE');
--Send the dial string
OLE2.SET_PROPERTY(CommHandle, 'Output', dial_string || chr(13));
z := 0;
loop
z := z + 1;
exit when z = delay;
end loop;
-- Run program that give windows control to process info. in output buffer to modem
HOST(:global.gtec_dir || 'DEVENTS.EXE');
--Clear the dialing string from the input buffer
OLE2.SET_PROPERTY(CommHandle, 'InBufferCount', '0');
* Loop until we get a BUSY or NO CARRIER signal.
loop_count := 0;
time_start := dbms_utility.get_time; -- store loop start in 1/100's of seconds
inchar := ' ';
     LOOP
     -- Run program that give windows control to process info. in output buffer to modem
     HOST(:global.gtec_dir || 'DEVENTS.EXE');          
outBuf := OLE2.GET_NUM_PROPERTY(CommHandle, 'InBufferCount');
     --Read the response data in the serial port, character by character.  Build INCHAR
inchar := inchar || OLE2.GET_CHAR_PROPERTY(CommHandle, 'Input');
     --message(inchar);
OLE2.SET_PROPERTY(CommHandle, 'InBufferCount', 0);
     * Check to see if a BUSY has been returned
IF INSTR(inchar, 'BUSY') <> 0 THEN
     --Close the port
     OLE2.SET_PROPERTY(CommHandle, 'PortOpen', 0);
     -- Release the MSCOMM handle
OLE2.release_obj(CommHandle);
     --Set the list to busy
     :b_main_prospect_info.CALL_STATUS_LIST := 'BUSY_NO_ANSWER';
     --Process a call marked as Busy/No Answer
     process_busy_no_answer;
EXIT;
     END IF;
IF INSTR(inchar, 'RING') <> 0 THEN
     message(inchar || ' ...', ACKNOWLEDGE);
     inchar := ' ';
     END IF;
     * Check to see if a NO CARRIER has been returned
     IF INSTR(inchar, 'NO CARRIER') <> 0 THEN -- happens when they switch to headset. No message shows.
     --message('NO DIAL TONE' || ' ...', ACKNOWLEDGE);
     inchar := ' ';
     GO_ITEM('CALL_STATUS_LIST');
EXIT;
     END IF;
     *Check to see if a OK has been returned
     IF INSTR(inchar, 'OK') <> 0 THEN
     message(inchar || ' ...', ACKNOWLEDGE);
     inchar := ' ';
     GO_ITEM('CALL_STATUS_LIST');
EXIT;
     END IF;
loop_count := loop_count + 1;
IF MOD(loop_count,1000) = 0
     THEN dial_msg := dial_msg || '.';
          message(dial_msg,NO_ACKNOWLEDGE);
          synchronize;
     END IF;
time_end := dbms_utility.get_time;
-- Compare current time to loop start time in 1/100's of seconds. If more than 10 seconds, end.
if time_end - time_start > 1500
THEN message('Problem dialing number. Result response not received from modem.', ACKNOWLEDGE);
message(' ');
     GO_ITEM('CALL_STATUS_LIST');
EXIT;
END IF;
     END LOOP;
OLE2.SET_PROPERTY(CommHandle, 'Output', 'ATH' || chr(13));
z := 0;
loop
z := z + 1;
exit when z = delay/10;
end loop;
--Close the port
OLE2.SET_PROPERTY(CommHandle, 'PortOpen', 0);
OLE2.release_obj(CommHandle);
--Give list box focus
update tele.gtec_login_tbl
set last_dialed = phone_number,
last_dialed_time = sysdate
where v_user_id = user;
forms_ddl('commit');
if to_number(:global.address_id) > 0
then GO_ITEM('b_main_prospect_info.call_status_list');
else GO_ITEM('b_manual_call.v_call_outcome');
end if;
EXCEPTION
when others then
logit(:global.debug,'Error dialing phone');
--Give list box focus
if to_number(:global.address_id) > 0
then GO_ITEM('b_main_prospect_info.call_status_list');
else GO_ITEM('b_manual_call.v_call_outcome');
end if;
END;

Similar Messages

  • Pc to h/w communication by using serial port

    I have write a serial port codding but thre is problem in accessing the javax.comm.*' packege.
    I had downloaded that package on my pc but its not working.
    Could anybody help me?

    Hmm. Urgent. When is your project due? What have you tried so far? Whats not working? First you need to verify that all your hardware is connected properly and the UART is properly configured on teh 8051. Then you need to make sure that the software on both the PC and the 8051 are both working properly. Just curious, what class is this project for?

  • Communicating jsp with serial port

    Hi, I'm developing an web application that needs to communicate with Serial port. I'm not getting how to communicate with Serial port. I'm building application using jsp. Any one help me Please...

    package serialio;
    import java.io.BufferedReader;
    import java.io.BufferedWriter;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.OutputStreamWriter;
    import java.io.OutputStream;
    import java.util.Enumeration;
    import java.util.TooManyListenersException;
    import javax.comm.CommPortIdentifier;
    import javax.comm.PortInUseException;
    import javax.comm.SerialPort;
    import javax.comm.SerialPortEventListener;
    import javax.comm.SerialPortEvent;
    import javax.comm.UnsupportedCommOperationException;
    * @author SASH
    public class SimpleWrite
    implements Runnable, SerialPortEventListener {
    public String line = "";
    public String line1 = "";
    public String text1 = "";
    public String text2 = "";
    public void run() {
    static Enumeration portList;
    static CommPortIdentifier portId;
    // static String dest = "0517111930";
    static String messageString = "Hello";
    InputStream inputStream;
    static SerialPort serialPort;
    static OutputStream outputStream;
    public void serialEvent(SerialPortEvent event) {
    switch (event.getEventType()) {
    case SerialPortEvent.DATA_AVAILABLE: {
    BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));
    try {
    while ((line = reader.readLine()) != null) {
    arata(line);
    // System.out.println(line);
    } catch (IOException e) {
    System.err.println("Error while reading Port " + e);
    break;
    } //switch
    public int getWrite(SerialPort serial) {
    try {
    inputStream = serial.getInputStream();
    outputStream = serial.getOutputStream();
    try {
    serial.addEventListener(this);
    } catch (TooManyListenersException e) {
    System.out.println("Exception in Adding Listener" + e);
    serial.notifyOnDataAvailable(true);
    } catch (Exception ex) {
    System.out.println("Exception in getting InputStream" + ex);
    return 0;
    public static void main(String[] args) {
    portList = CommPortIdentifier.getPortIdentifiers();
    while (portList.hasMoreElements()) {
    portId = (CommPortIdentifier) portList.nextElement();
    if (portId.getPortType() == CommPortIdentifier.PORT_SERIAL) {
    if (portId.getName().equals("COM3")) {
    try {
    serialPort = (SerialPort) portId.open("SimpleWriteApp", 9600);
    SimpleWrite wr = new SimpleWrite();
    System.out.println(wr.getWrite(serialPort));
    } catch (PortInUseException e) {
    System.out.println("Port In Use " + e);
    try {
    outputStream = serialPort.getOutputStream();
    return;
    } catch (IOException e) {
    System.out.println("Error writing to output stream " + e);
    try {
    serialPort.setSerialPortParams(
    9600,
    SerialPort.DATABITS_8,
    SerialPort.STOPBITS_1,
    SerialPort.PARITY_NONE);
    } catch (UnsupportedCommOperationException e) {
    public String arata(String line) {
    System.out.println(line);
    if (line == null ? "250075C54CD9" == null : line.equals("250075C54CD9")) {
    System.out.println(text1);
    return "250075C54CD9";
    } else if (line == null ? "1D00451A3270" == null : line.equals("1D00451A3270")) {
    System.out.println(text2);
    return "1D00451A3270";
    return line;
    this code is working correct getting output at system output terminal but i want use further in as input for my jsp how to get this ?.......
    arata method is also working correct in class but it is not returnig value in jsp?
    plz give me way how to take string as input ...........

  • Uegent!!!!!!!!!!!!!!!!!!! pc  to h/w communication by using serial port

    HI,
    I want to communicate Pc to 8051chip. but i dnt know how to communicate. My requirement is send null command to the hardware n receive the ack and any data send by the h/w.
    Plz anyone knows the solution then help me becoz without this my project is not working.
    Thanx in advance.

    Hmm. Urgent. When is your project due? What have you tried so far? Whats not working? First you need to verify that all your hardware is connected properly and the UART is properly configured on teh 8051. Then you need to make sure that the software on both the PC and the 8051 are both working properly. Just curious, what class is this project for?

  • Send thru serial port (RS232) the instruction CTRL+"something"

    How to i send thru a serial port (RS232) the instruction "CTRL", like CTRL+"something", im only looking for the special character CTRL, i have seen that it can send a CTRL+A ... CTRL+Z thru a type cast, but  is not what im looking for, im sending a special instruction (CTRL+PQT<package>) thats requires this character.
    reards

    The control key is not something you can send through a serial connection.  It is a modifier key (like Shift and Alt) and not a character that would have an ASCII value associated with it.
    However, many of the special ASCII control characters (those below decimal 32) can often be entered as a CTRL+key combination.  For instance, the beep is ASCII 8 and is also a CTRL-G combination.  The backspace is ASCII 9 and CTRL-H.  CTRL A is ASCII 1 so sending a string set in hex display as 01 or \01 in \codes display would work.
    What is (CTRL+PQT<package> supposed to mean?  Is it Ctrl P followed by Q T then something else?  What equipment are you trying to interface with?

  • How to extract data from a .txt file & send it to a serial port automatically

    Hi all
    I'm a final yr B.Tech student. I am new to the entire LABVIEW thing. But i hear its really good. My dept. in collge has purchased labview & i'm tryng to use it
    As i'm new to labview , i need help plz
    " I want to open a .txt file (in my PC) & transmit all the contents of the file via serial (COM) port to an 89%! microcontroller. Also i want to read the feedback messages from the microcontroller thru the serial port & save it to the same file in the PC.All this must be done automatically. ie, no manual intervention after execution starts"
    Kindly help me as i'm stuck here & unable to proceed further with my project

    here is my 20min try without debugging (needs a rs232 and loopback connector )
    use the probe and highlight the dataflow to see how it works.
    as always:  there are many ways to solve your problem
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'
    Attachments:
    read write file to RS232.vi ‏69 KB

  • How to use the serial port

    hello
    I would like to know if there is other library than comm to use to establish communication with the serial port ..
    can we do this with pure java ,I mean without the need of using any library ???
    if not then what is the best library to use ???
    any examples ??
    I have other question
    when i use the library comm
    I use the public void serialEvent(SerialPortEvent event) to get my data
    but that data comme line by line
    is there a way to get all the data at once ???
    than kyou in advance

    There you go
    http://java.sun.com/products/javacomm/
    Some extra resources
    http://www.google.co.in/search?q=java+access+serial+po
    rt&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.
    mozilla:en-US:officialmaybe I was not clear ,I know the comm lib
    Im already using it
    but am asking if there any other lib that will work for windows
    thank you

  • Can not access serial port while upgrading from LabVIEW 6.1 to 7.0

    Hi,
    I built an application under LabVIEW 6.0.2. few years ago. This application uses LabVIEW serial features. When I upgraded to LabVIEW 6.1, my application was still working correctly.
    Today, I upgraded to LabVIEW 7.0, mass compile all VIs and now my application can not communicate with my peripheral !!!
    The program is sending the command to the peripheral. The peripheral answers but LabVIEW serial driver does not see any datas on buffer even if datas are available ... "Bytes At serial port.vi" always returns 0. I am sure that datas are available, using a COM port psy.
    Does anyone has an idea?
    I saw a lot of solutions in the forum, but I would like to know the best solution with minimum work, te
    st, and so on ... on my program.
    Regards,
    Pascal.

    Hi Pascal,
    Which is your version of NI-VISA?
    Please see the link bellow :
    http://digital.ni.com/manuals.nsf/websearch/E8D86CD680B0753D86256D2C005D8EA0
    The first test to be made is to test the communication with your serial port using MAX (Measurement and Automation Explorer) :
    Open MAX, Go to "Devices and Interfaces", then "Ports", select COM1 (or ASRL1::INSTR). Right clic on it and select "Open VISA Session" the go the "Basic I/O" then Write data, execute, Read data, execute.
    Be sure that the communication is OK. Be sure that you use the same Alias existing in MAX in your LabVIEW program.
    Now, if all is OK, try to use Serial communication examples existing in LabVIEW Help>>Examples Finder. These examples use NI-VISA VIs.
    If all above is OK and you
    still have the same problem, try to follow these instructions :
    "In order to use the old Serial Compatibility VIs in LabVIEW 7.x, you must copy the following files from a previous version of LabVIEW to the LabVIEW 7.x directory:
    Replace the serial.llb in LabVIEW 7.x with the serial.llb from a previous version of LabVIEW. This file is found in C:\Program Files\National Instruments\LabVIEW\vi.lib\instr.
    Replace the _sersup.llb file in LabVIEW 7.x with the _sersup.llb from a previous version of LabVIEW. In LabVIEW 6i and 6.1 this file is located in C:\Program Files\National Instruments\LabVIEW\vi.lib\platform. In LabVIEW 7.x (and 5.x) this file is found in C:\Program Files\National Instruments\LabVIEW\vi.lib\instr.
    Copy the file serpdrv to the C:\Program Files\National Instruments\LabVIEW 7.x directory. This file is not installed with LabVIEW 7.x, so it only needs to be copied from a previous version of LabVIEW, not replaced."
    I hope that my answer will help you.
    Sa
    naa T
    National Instruments

  • Listen to serial port open by another applicatio​n

    I have a test setup where another application is communicating with a device over a serial port and I want my Labview gui to be able to listen to the communication. Since two applications cannot have the same serial port open I can't just open the port and do a visa read. Is there any way to do an unreserved open and only listen to communication on the serial port or do I physically have to break out the receive line in hardware and add a second serial port in order to do this?

    A better solution would be to have your reader post a message to a queue with the data. You can have a separate task that handles the UI updates. Depending on the type and amount of data you may not need to post all of the data.
    The answer to your specific question though is no, you cannot have two readers on the same connection.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • How to configure visa to adquire dat from serial port and then converted to numeric value from a home embedded device

    I already stablish communication with my serial port using VISA, selecting COM1 as the resoure name.
    After that, I tried to read the data from the port (as we know the data was in string format )but I need to convert the data to numeric value to hadle it (no arrays).
    Another main thing is that I'm develoing a new based Embedded design and tthe info that will trhow out from the device to the PC is binary.
    How can I solved the problem, and if I want to make bidirectional communication with my system how can I do it? The VISA intructions as *IDN? and so forthetc can be recognize by the external system if the COM1 port is recognized by NI Max as ADSRL1::I
    NSTR1?

    Hello,
    For an example of bidirectional serial communication in LabVIEW, please see the shipping example LabVIEW <-> Serial.vi. This can be found from LabVIEW by going to Help >> Find Examples. From the example finder, select Hardware Input and Output >> Serial >> LabVIEW <-> Serial.vi.
    Once you are able to read the string data in, you can use the VIs in the String/Number Conversion palette to convert the data to numeric format. To access these, right-click on the block diagram >> All Functions >> String >> String/Number Conversion.
    Let me know if this does not help.
    Regards,
    Sean C.
    Applications Engineer
    National Instruments

  • Com,unicting on Serial Port using RXTX on Mac System!

    Hi,
    I have written an application which acts as an interface between the GPS device and Mac System. I have used rxtx api for communicating on Serial Port. The communication works well for some time. This device gives NMEA output and its proprietory sentences as output too. It is a GPS data Logger. I have to pass different commands for communicating. For instance for login purpose I have to pass the command $PLSC,231,1*FF. And on passing this command the device stops giving NMEA sentences. And responds back with $PLSR,231,1,1,00000000,GPSLOG*33. Sometimes this output and NMEA output both gets mixed up such as $PLS,$GPRMC,00000GPS,,,,.
    The devices windows application which is not developed in Java works fine. Is it the problem with Serial API or some other issue. The device operates at 4800 baud rate.
    Can anyone over here help me out?
    Thanks & Regards
    Sunil

    This is just a shot in the dark.
    Try right-clicking on the VISA write and select "do I/O syncronously".
    If this works, please let me know. I have been trying to figure a good reason to do serial I/O "syncronously" but was not able to come up with one until I read your question.
    Curious,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Connection to serial port for communication RFID

    HI,
    I have occurred problem in communication to serial port for accessing the RFID
    through Serial Port COM1 or COM2 . I got garbage values of Card .
    Please give me the code for accessing serial port and indicter the cadr is detected by RFID and read the data on card.

    EHAG microchip 13,56 MHz dual reader and Mifare 1KB contactless smartcard.
    I've succeed to retrieve the data from the transponder (card) but it just only once when i click the button from my application. My question is how do i retrieve the data continuously from the card for every few milliseconds?
    sorry for my language.

  • Communicating with Serial Port

    Hi,
    Hi I have an application that i have to communicate with serial port...
    Its working perfectly if am giving all the com settings as constants(pls hav a look @ codea).
    But i want to read the port number and baud reate from text file.When i changed the coding,in the serial
    setting i was not even able to find the port number and baud rate.it was displaying as buffer size.I think the way i connected the port number and baudrate to the clusture may be wrong(pls refer codeb).How do i fix this problem?
    Thanks in Advance....
    Solved!
    Go to Solution.
    Attachments:
    modemsetting.JPG ‏88 KB

    The problem I think is that you don't have a cluster tied to the center terminal of the bundler so most of the values don't have a name. Wire the cluster from above to the center terminal on the lower bundler. BTW, it doesn't matter what values are in the cluster you wire up because they will be overwritten.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • I'm having trouble communicating with a transducer (Keyence LS-3100 laser scan micrometer) via the serial port. It works in Hyperterminal. Any suggestions?

    Its not a simple baud-rate or parity error. If I issue the command to send data (X1) in hyperterminal I start to get data. If I then switch to Labview I still get data. However if I try to issue the send-data command via Labview I get nothing (i.e. I can read from the device, but not write to it).
    I am on a Windows 98 (version 2) PC, running Labview 5.1.1

    Try adding a carraige return to the end of your command.
    "djb" wrote in message news:[email protected]..
    > I'm having trouble communicating with a transducer (Keyence LS-3100
    > laser scan micrometer) via the serial port. It works in
    > Hyperterminal. Any suggestions?
    >
    > Its not a simple baud-rate or parity error. If I issue the command to
    > send data (X1) in hyperterminal I start to get data. If I then switch
    > to Labview I still get data. However if I try to issue the send-data
    > command via Labview I get nothing (i.e. I can read from the device,
    > but not write to it).
    > I am on a Windows 98 (version 2) PC, running Labview 5.1.1

  • Cisco Router 2600 Serial Port communications

    I am working on configuring communications Router to Router through serial port. I have seen some videos and read some documentations. My configuration is as follows: 
    R1 (DCE) -> f0/0 192.168.1.1/24 - s0/0 192.168.2.1/24 <-----> Router2 ->(DTE)  S0/1 192.168.2.2/24 f0/0 192.168.3.1.
    I have configured the routing tables at both routers. It works when I ping from router to router and router to hosts successfully. Nevertheless, I can ping from hosts to the default gateways, but I cannot ping from hosts to the serial ports (adjacency). In short I cannot communicate from Network1 to Network2. Please do I have to do any extra configuration.

    Router 1 (KelliR)
    KelliR#show ip interface brief
    Interface                  IP-Address      OK? Method Status                Protocol
    Ethernet0/0                192.168.1.1     YES manual up                    up
    Serial0/0                  192.168.3.1     YES manual up                    up
    TokenRing0/0               unassigned      YES unset  administratively down down
    Serial0/1                  unassigned      YES unset  administratively down down
    KelliR#show ip route
    Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
           D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
           N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
           E1 - OSPF external type 1, E2 - OSPF external type 2
           i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
           ia - IS-IS inter area, * - candidate default, U - per-user static route
           o - ODR, P - periodic downloaded static route
    Gateway of last resort is not set
    C    192.168.1.0/24 is directly connected, Ethernet0/0
    S    192.168.2.0/24 [1/0] via 192.168.3.2
    C    192.168.3.0/24 is directly connected, Serial0/0
    ============================================
    Router 2 (HelderR)
    HelderR#
    HelderR#show ip interface brief
    Interface                  IP-Address      OK? Method Status                Protocol
    Ethernet0/0                192.168.2.1     YES manual up                    up
    Serial0/0                  192.168.3.2     YES SLARP  up                    up
    TokenRing0/0               unassigned      YES unset  administratively down down
    Serial0/1                  unassigned      YES unset  administratively down down
    HelderR#show ip route
    Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
           D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
           N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
           E1 - OSPF external type 1, E2 - OSPF external type 2
           i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
           ia - IS-IS inter area, * - candidate default, U - per-user static route
           o - ODR, P - periodic downloaded static route
    Gateway of last resort is not set
    S    192.168.1.0/24 [1/0] via 192.168.3.1
    C    192.168.2.0/24 is directly connected, Ethernet0/0
    C    192.168.3.0/24 is directly connected, Serial0/0
    ============================================
    Even with  f0/0 and s0/0 configured with the addresses in any router, no host at its respective routers is able to ping the s0/0. Hosts are able to ping its ethernet ports.
    See ping comand below:
    From router KelliR
    KelliR#ping 192.168.3.2
    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to 192.168.3.2, timeout is 2 seconds:
    Success rate is 100 percent (5/5), round-trip min/avg/max = 32/33/36 ms
    KelliR#ping 192.168.2.1
    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds:
    Success rate is 100 percent (5/5), round-trip min/avg/max = 32/34/36 ms
    KelliR#ping 192.168.2.101
    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to 192.168.2.101, timeout is 2 seconds:
    Success rate is 100 percent (5/5), round-trip min/avg/max = 32/33/36 ms
    KelliR#
    ==================================================================================
    From router HelderR
    HelderR#ping 192.168.3.1
    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to 192.168.3.1, timeout is 2 seconds:
    Success rate is 100 percent (5/5), round-trip min/avg/max = 32/33/36 ms
    HelderR#ping 192.168.1.1
    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
    Success rate is 100 percent (5/5), round-trip min/avg/max = 32/32/32 ms
    HelderR#ping 192.168.1.101
    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to 192.168.1.101, timeout is 2 seconds:
    Success rate is 100 percent (5/5), round-trip min/avg/max = 32/34/36 ms
    HelderR#
    ====================================================
    From Host connected to KelliR
    C:\>ping 192.168.1.1
    Pinging 192.168.1.1 with 32 bytes of data:
    Reply from 192.168.1.1: bytes=32 time=2ms TTL=255
    Reply from 192.168.1.1: bytes=32 time=1ms TTL=255
    Reply from 192.168.1.1: bytes=32 time=1ms TTL=255
    Reply from 192.168.1.1: bytes=32 time=1ms TTL=255
    Ping statistics for 192.168.1.1:
        Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
        Minimum = 1ms, Maximum = 2ms, Average = 1ms
    C:\>ping 192.168.3.1
    Pinging 192.168.3.1 with 32 bytes of data:
    Request timed out.
    Request timed out.
    Request timed out.
    Request timed out.
    Ping statistics for 192.168.3.1:
        Packets: Sent = 4, Received = 0, Lost = 4 (100% loss)
    =====================================================
    From Host connected to HelderR
    C:\Users\Helder>ping 192.168.2.1
    Pinging 192.168.2.1 with 32 bytes of data:
    Reply from 192.168.2.1: bytes=32 time=3ms TTL=255
    Reply from 192.168.2.1: bytes=32 time=1ms TTL=255
    Reply from 192.168.2.1: bytes=32 time=1ms TTL=255
    Reply from 192.168.2.1: bytes=32 time=1ms TTL=255
    Ping statistics for 192.168.2.1:
        Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
        Minimum = 1ms, Maximum = 3ms, Average = 1ms
    C:\Users\Helder>ping 192.168.3.2
    Pinging 192.168.3.2 with 32 bytes of data:
    Request timed out.
    Request timed out.
    Request timed out.
    Request timed out.
    Ping statistics for 192.168.3.2:
        Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

Maybe you are looking for

  • How to create a new facebook account in iphoto?

    How to create a new facebook account in iphoto?

  • Field's name in LSMW: huge trouble!

    Hi everyone, I was trying to use LSMW and I've got some problems during the converting data task. I tryed also to change the field name in OLD_BUKRS but it doesn't seem to work and I still have the problem:    "The data object "TESTATA" has no compon

  • BT changed my number 6 times in 6 days! Death in ...

    Ok someone explain this to me - 6 number in 6 days.  I migrated to BT from another provider and requested to keep the same number. Here's how it went - the VERY, VERY short version. Day 1 - The changeover day  - no dial tone for the whole day - 1 hou

  • Suggestion: ZEN Micro Photo: Album art when playing tra

    I was kinda hoping that you could display album art whilst playing tracks on the ZEN Photo. If you can, I can't figure it out, nor is it mentioned in the brief manual. Please consider this as a suggestion to include the feature in the next firmware u

  • Wrong values submitted when submitting a form with javascript

    Hi guys, I know this aint a struts forum, but I did not know where else to go. So here goes.. I have the following code in my jsp <logic:iterate id="ex" name="myForm" property="users"> <html:multibox property="deleteUsers"> <bean:write name="ex" prop