Communicating with ports

I have a question about developing code that can communicate to a port and therefore someting in the outside world. I see tutorials for doing this for various things but I don't understand how they know what to assign for different "packets" that they create when sending out data or receiving data, for example: (from IBM's "intro to gps"...),
byte[] request = new byte[6];
request[0] = 0x10; // DLE
request[1] = (byte) 0xfe; // Packet Id
request[2] = 0x00; // size of packet payload (there is none!)
request[3] = (byte) (0x100 - request[1]); // checksum
request[4] = 0x10; // DLE
request[5] = 0x03; // ETX
try
os.write(request);
os.flush();
I can kind of grasp the concept of creating a "packet", but how does one get the information so they know what to assign to each section of the packet like:
request[0] = 0x10 or something of that nature. What are the methods someone has to take in order to successfully "communicate" to another device, regardless of what that device is?

(Try that again with the italics correct.)
I have a question about developing code that can
communicate to a port and therefore someting in the
outside world. I see tutorials for doing this for
various things but I don't understand how they know
what to assign for different "packets" that they
create when sending out data or receiving data, for
example: (from IBM's "intro to gps"...),This is a protocol. From www.geek.com....
Protocol - This is the behavior that computers must follow in order to understand one another. Think of it as a language. If two computers don't use the same network protocol, then they cannot communicate.
Notice in the above it doesn't say anything about sockets, IP, TCP/IP or even really networks (network is provided as an example only.)
As the definition says a protocol specifies how the computers communicate. What you want to know is the definition for the protocol. The definition, should tell you what all the values are. Unfortunately not all protocols are complete.
The definition will be a document that you get from...somewhere. And the somewhere is hard to say. For internet protocols you can find definitions in RFCs from www.ietf.org. Other protocol documents come from other places - and some of those places you will have to pay money to get the document.
I can kind of grasp the concept of creating a "packet", Keep in mind that if this protocol moves over an TCP/IP (or IP) protocol that that means it is a protocol on top of another protocol. And IP and TCP/IP both have packets (they are protocols within protocols) and so the protocol that you are looking at will be on top of the other one.

Similar Messages

  • Problem in communicating with ports

    dear friend,
    i have written code for listing ports.
    code is listed below
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.util.Enumeration;
    import java.util.Formatter;
    import org.smslib.helper.CommPortIdentifier;
    import org.smslib.helper.SerialPort;
    import javax.comm.*;
    public class CommTest
         private static final String NODEVICE_FOUND = " no device found";
         private final static Formatter _formatter = new Formatter(System.out);
         static CommPortIdentifier portId;
         static Enumeration<CommPortIdentifier> portList;
         static int bauds[] = { 9600, 14400, 19200, 28800, 33600, 38400, 56000, 57600, 115200 };
         * Wrapper around {@link CommPortIdentifier#getPortIdentifiers()} to be
         * avoid unchecked warnings.
         @SuppressWarnings("unchecked")
         private static Enumeration<CommPortIdentifier> getCleanPortIdentifiers()
              return CommPortIdentifier.getPortIdentifiers();
         public static void main(String[] args)
              System.out.println("\nSearching for devices...");
              portList = getCleanPortIdentifiers();
              while (portList.hasMoreElements())
                   portId = portList.nextElement();
                   if (portId.getPortType() == CommPortIdentifier.PORT_SERIAL)
                        _formatter.format("%nFound port: %-5s%n", portId.getName());
                        for (int i = 0; i < bauds.length; i++)
                             SerialPort serialPort = null;
                             _formatter.format("       Trying at %6d...", bauds);
                             try
                                  InputStream inStream;
                                  OutputStream outStream;
                                  int c;
                                  String response;
                                  serialPort = portId.open("SMSLibCommTester", 1971);
                                  serialPort.setFlowControlMode(SerialPort.FLOWCONTROL_RTSCTS_IN);
                                  serialPort.setSerialPortParams(bauds[i], SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE);
                                  inStream = serialPort.getInputStream();
                                  outStream = serialPort.getOutputStream();
                                  serialPort.enableReceiveTimeout(1000);
                                  c = inStream.read();
                                  while (c != -1)
                                       c = inStream.read();
                                  outStream.write('A');
                                  outStream.write('T');
                                  outStream.write('\r');
                                  Thread.sleep(1000);
                                  response = "";
                                  c = inStream.read();
                                  while (c != -1)
                                       response += (char) c;
                                       c = inStream.read();
                                  if (response.indexOf("OK") >= 0)
                                       try
                                            System.out.print(" Getting Info...");
                                            outStream.write('A');
                                            outStream.write('T');
                                            outStream.write('+');
                                            outStream.write('C');
                                            outStream.write('G');
                                            outStream.write('M');
                                            outStream.write('M');
                                            outStream.write('\r');
                                            response = "";
                                            c = inStream.read();
                                            while (c != -1)
                                                 response += (char) c;
                                                 c = inStream.read();
                                            System.out.println(" Found: " + response.replaceAll("\\s+OK\\s+", "").replaceAll("\n", "").replaceAll("\r", ""));
                                       catch (Exception e)
                                            System.out.println(_NO_DEVICE_FOUND);
                                  else
                                       System.out.println(_NO_DEVICE_FOUND);
                             catch (Exception e)
                                  System.out.print(_NO_DEVICE_FOUND);
                                  Throwable cause = e;
                                  while (cause.getCause() != null)
                                       cause = cause.getCause();
                                  System.out.println(" (" + cause.getMessage() + ")");
                             finally
                                  if (serialPort != null)
                                       serialPort.close();
              System.out.println("\nTest complete.");
    the error i am getting is
    Caught java.lang.ClassNotFoundException: com.sun.comm.Win32Driver while loading driver com.sun.comm.Win32Driver
    Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path
    Test complete.
    Caught java.lang.UnsatisfiedLinkError: com.sun.comm.SolarisDriver.readRegistrySerial(Ljava/util/Vector;Ljava/lang/String;)I while loading driver com.sun.comm.SolarisDriver
    *1*) i don't know what is this?
    i have downloaded java comm 20-win32.zip and done the necessary things as told in the manual.
    actually i am trying to send sms in between pc and mobile using smslib.
    but i am facing lot of errors.
    code is this to send msg from pc to mobile
    SendMessage.java - Sample application.
    // This application shows you the basic procedure for sending messages.
    // You will find how to send synchronous and asynchronous messages.
    // For asynchronous dispatch, the example application sets a callback
    // notification, to see what's happened with messages.
    package examples.modem;
    import org.smslib.IOutboundMessageNotification;
    import org.smslib.Library;
    import org.smslib.OutboundMessage;
    import org.smslib.Service;
    import org.smslib.modem.SerialModemGateway;
    public class SendMessage
         public void doIt() throws Exception
              Service srv;
              OutboundMessage msg;
              OutboundNotification outboundNotification = new OutboundNotification();
              System.out.println("Example: Send message from a serial gsm modem.");
              System.out.println(Library.getLibraryDescription());
              System.out.println("Version: " + Library.getLibraryVersion());
              srv = new Service();
              SerialModemGateway gateway = new SerialModemGateway("modem.com1", "COM1", 57600, "Nokia", "6310i");
              gateway.setInbound(true);
              gateway.setOutbound(true);
              gateway.setSimPin("0000");
              srv.setOutboundNotification(outboundNotification);
              srv.addGateway(gateway);
              srv.startService();
              System.out.println();
              System.out.println("Modem Information:");
              System.out.println(" Manufacturer: " + gateway.getManufacturer());
              System.out.println(" Model: " + gateway.getModel());
              System.out.println(" Serial No: " + gateway.getSerialNo());
              System.out.println(" SIM IMSI: " + gateway.getImsi());
              System.out.println(" Signal Level: " + gateway.getSignalLevel() + "%");
              System.out.println(" Battery Level: " + gateway.getBatteryLevel() + "%");
              System.out.println();
              // Send a message synchronously.
              msg = new OutboundMessage("+306948494037", "Hello from SMSLib!");
              srv.sendMessage(msg);
              System.out.println(msg);
              // Or, send out a WAP SI message.
              //OutboundWapSIMessage wapMsg = new OutboundWapSIMessage("+306948494037", new URL("https://mail.google.com/"), "Visit GMail now!");
              //srv.sendMessage(wapMsg);
              //System.out.println(wapMsg);
              // You can also queue some asynchronous messages to see how the callbacks
              // are called...
              //msg = new OutboundMessage("+309999999999", "Wrong number!");
              //msg.setPriority(OutboundMessage.Priorities.LOW);
              //srv.queueMessage(msg, gateway.getGatewayId());
              //msg = new OutboundMessage("+308888888888", "Wrong number!");
              //msg.setPriority(OutboundMessage.Priorities.HIGH);
              //srv.queueMessage(msg, gateway.getGatewayId());
              System.out.println("Now Sleeping - Hit <enter> to terminate.");
              System.in.read();
              srv.stopService();
         public class OutboundNotification implements IOutboundMessageNotification
              public void process(String gatewayId, OutboundMessage msg)
                   System.out.println("Outbound handler called from Gateway: " + gatewayId);
                   System.out.println(msg);
         public static void main(String args[])
              SendMessage app = new SendMessage();
              try
                   app.doIt();
              catch (Exception e)
                   e.printStackTrace();
    error i am getting is
    Caught java.lang.ClassNotFoundException: com.sun.comm.Win32Driver while loading driver com.sun.comm.Win32Driver
    org.smslib.GatewayException: Comm library exception: java.lang.reflect.InvocationTargetException
    at org.smslib.modem.SerialModemDriver.connectPort(SerialModemDriver.java:93)
    at org.smslib.modem.AModemDriver.connect(AModemDriver.java:110)
    at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:126)
    at org.smslib.Service$1Starter.run(Service.java:222)
    *2*) i cannot understand what is this.i have done as per the installation page in SMSLib. can you please help me
    ****** one more important thing is that i have not connected any cable to the ports.
    thanks in regards
    Edited by: arunachu on Nov 5, 2008 3:58 AM

    Hi friends..i need solution for this .
    i use org.smslib.*; for messge sending .
    i done it in same code in windows machine . but i had some prob in linux machine
    it showing this kind of error . in run time ..
    =========================================
    Native lib Version = RXTX-2.1-7
    Java lib Version = RXTX-2.1-7
    check_group_uucp(): error testing lock file creation Error details:Permission deniedcheck_lock_status: No permission to create lock file.
    please see: How can I use Lock Files with rxtx? in INSTALL
    check_group_uucp(): error testing lock file creation Error details:Permission deniedcheck_lock_status: No permission to create lock file.
    please see: How can I use Lock Files with rxtx? in INSTALL
    check_group_uucp(): error testing lock file creation Error details:Permission deniedcheck_lock_status: No permission to create lock file.
    please see: How can I use Lock Files with rxtx? in INSTALL
    check_group_uucp(): error testing lock file creation Error details:Permission deniedcheck_lock_status: No permission to create lock file.
    please see: How can I use Lock Files with rxtx? in INSTALL
    check_group_uucp(): error testing lock file creation Error details:Permission deniedcheck_lock_status: No permission to create lock file.
    please see: How can I use Lock Files with rxtx? in INSTALL
    org.smslib.GatewayException: Comm library exception: java.lang.RuntimeException: gnu.io.NoSuchPortException
    at org.smslib.modem.SerialModemDriver.connectPort(SerialModemDriver.java:92)
    at org.smslib.modem.AModemDriver.connect(AModemDriver.java:110)
    at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:126)
    at org.smslib.Service$1Starter.run(Service.java:222)
    Thanks to Advance ..
    Merry X-mas

  • My first generation AppleTV will not sync with iTunes anymore.  I get an error message that says: "The Apple TV is not responding Check that any firewall software running on this comptuter has been set to allow communication on port 3689"  firewall is off

    My first generation AppleTV will not sync with iTunes anymore.  I get an error message that says: "The Apple TV is not responding Check that any firewall software running on this comptuter has been set to allow communication on port 3689"  firewall is turned off.. Any ideas?

    Thanks Rudegar,
    I only synch and do not stream off of my 1st Gen AppleTV
    I will try with ethernet but will be a pain in the butt if i can not fix it with wifi for long term fix
    I may end up trying to do a named IP address vs DHCP for this appleTV (not sure if i can do both and do not want to remove DHCP as i have a bunch of sensors and other devices that I prefer to dynamically add to the network via DHCP vs. assign each one
    Will keep working on other fix options (factory reset, etc.)
    Thanks again

  • 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

  • Commands to FTDI virtual COM port via NI VISA interfere with communication with FTDI chip using D2XX drivers

    Hello!  
    I am trying to communicate with a DLP Design module DLP-USB1232H which uses an FTDI chip.  My program uses the D2XX drivers.  It works, but...
    In another program that runs at the same time, I'm communicating with another instrument via a virtual COM port (VCP) that uses an FTDI UART.  In this program, I use the VISA Serial Port functions.  It works, too, but...
    The first program has the capability of listing all the FTDI devices in the system prior to choosing the right one to communicate with.  When the VCP is plugged in, it lists it (FT232R USB UART) along with the DLP-USB1232H and communication with the latter device works.   But as soon as the second program sends a command through the VCP, the first program no longer "sees" any FTDI device.  It stops working.
    I have tried 2 different FTDI VCPs; one a standalone cable and the other built in to the instrument.
    I’m using Windows 7 32-bit.  My programs are both LabVIEW 8.5 executables. 
    Is VISA "taking over" the channel to the DLP-USB1232H?  Does someone who understands NI's implementation of VISA have any ideas on why VISA is doing this?  Or if something else is going on?
    I'm also interested in workaround ideas.  I've tried a "Prolific" VCP, but most drivers don't work and the one that doesn't give an error in Device Manager doesn't communicate with the instrument.  
    Cheers
    Halden
    Solved!
    Go to Solution.

    Halden,
    It really sounds like you have a resource conflict. That occurs when two programs or parts of programs try to use the same device or port at the same time.  Your Get Device Function probably tries to open a session with each port (as you increment the index). When it hits a port which is being used by the other driver, it cannot open the session and stops working? Have you examined the errors returned by each program? The VISA drivers will return an error when the port is in use.  I do not know about your program or drivers, but I would expect some kind of error.  Automatic error handling in LabVIEW will not catch errors from a driver if it does not translate them to LV error clusters. So do not count on automatic error handling, if you use it, to display all possible errors.
    Lynn

  • SOLUTION to "Software required for communicating with the iPod is not insta

    Folks, I can not take credit for this.....you should send your checks to MarkinMadison. I've included his post in it's entirety. For me, this was the Holy Grail !!
    My only comment is make sure when you are in the registry that you hit the "apply" button to change and add things.
    This probably won't solve everyone's problem but it clearly solved mine (and I tried all other "solutions"), as well as Mark's.
    Apple: please find out who MarkinMadison is and either cut him a big check or offer him free Ipods for life.
    "Solution to "Software required for communicating with the iPod is not installed"!
    I battled this same problem for about 5 hours. Going through re-installations, the "5 R's", all these discussion boards. Nothing worked.
    The problem is that iPodService was repeatedly crashing after minute or so. You can verify this by hitting Ctrl-Alt-Delete and noting that iPodService is missing from the process list (sort by image name), or by right-clicking on My Computer and selecting "Manage", then going to Services and checking out the IPodService service - if it gives you the option to "Start", then it's not running.
    Here is what worked.
    1. De-install iTunes and iPod (if you have the updater installed) completely by going to Start --> Control Panel --> Add/Remove Programs. Also delete the C:\Program Files\iTunes and c:\Progam Files\iPod\bin directories. (Don't worry, this doesn't affect your saved music files.)
    2. Log in as an Administrator
    3. Go into the registry (note this is dangerous - you should be careful) and remove the iPod entries that the uninstaller misses.
    3.1 Go to Start menu --> Run.
    3.2 Type in "regedit".
    3.3 Go to HKEYCLASSESROOT --> IPodService.iPodManager.
    There are two keys here, iPodManager and iPodManager.1. In my case, I did not have permission to view either of these. I think this is the root cause of the problem. I think the installer can't properly update these because it doesn't have permission. So you need to change the permissions:
    3.4 Right-click on IPodService.IPodManager
    3.4.1 Select "Permissions..." A warning will appear saying you don't have permission, but that you can change permissions.
    3.4.2 On the window that launches, click on "Advanced..."
    3.4.3 Click on the "Owner" tab.
    3.4.4 Select a valid account (the one you're logged in under) under "Change Owner To".
    3.4.5 Click the checkbox that says: "Replace owner on subcontainers and objects."
    3.4.5 Hit "OK".
    3.4.6 Back on the main Permissions window, hit Add and add the same account as a valid user.
    3.4.6.1 Where it says "Enter the object names to select", type in the account name, e.g. "Smith".
    3.4.7 Click on the "Allow" checkboxes for "Full Control" and "Read".
    3.4.8 Hit "OK".
    3.5 Repeat procedure for the "iPodManager.1" key.
    3.6 Now right-click and delete both of these keys.
    3.7 If you can't delete, you might need to open up the keys and repeat the procedure on the sub-keys.
    4. Exit out of the registry editor.
    5. Re-install iTunes. I re-installed iTunes and reconnected the iPod, and everything worked.
    I want to repeat that editing the registry can completely mess up your computer if you modify the wrong things, so only do this if you're comfortable, and be extremely careful.
    Hopefully this helps!
    Apple support people: assuming this works, please add it to your solutions page, and feel free to reimburse me for spending half of Christmas figuring this out.
    Mark"
    Dimension 4600   Windows XP  

    I have also posted the same question, earlier today. I purchased two for my children and cannot get the iPod to communicate with the computer. I have the iTunes software on my system, but during the installation process I cannot click the NEXT button, once I plug the iPod cable in. The computer does not detect it. I have tried all 6 USB 2.0 ports. I even removed the Dell Jukebox and MusicMatch programs. I am not a computer savvy person - just a mom who wants to give these to my children for Christmas. This is the first "chat" site I have even registered on. I am so very frustrated. Hopefully, this can be resolved.

  • Error in communicating with DCR

    Preliminary question:
         For LMS 3.2 on Windows, which is better 2003 or 2008? 
    Primary issue:
         Background:  new install of LMS 3.2 on Windows 2008 sp2 Virtual Machine.
              Upgraded Campus to 5.2.1
              Upgraded RME to 4.3.1
              when updating device packages, services started extremely slow with anidbeng taking 2hrs. portal showed service unavailable.
              had to restart crmdmgtd to be able to login.
              most links in CS return the following:   Error in communicating with DCR server.  DCR server may be down.  Please start the DCR server           and then refresh the page.   The DCR server shows running normal.
              tried restarting crmdmgtd
              attached DCR.log
             tried  CSCtd07131 .. no success

    Windows 2008 offers more scalability so I would go with that although LMS has been tested on both (you will have a longer life of support as well).
    When applying the CSCtd07131 patch, you need to be sure it is the right patch for the right CS version as there are multiple versions out there.  However, this is fixed in LMS 3.2.1 so you should just upgrade there.
    An often overlooked matter when installing LMS are the steps mentioned here:
    https://supportforums.cisco.com/docs/DOC-9132
    I see constant TAC cases due to installation problems because the above steps are not met or are half-met.  Services starting slowly are usually an after-effect of something blocking ports (anti-virus or such) or possible database corruption.  Setting DEP and anti-virus as specified above might help here, but if you did not follow these steps to the letter during this new install, I would suggest to cleanup this server and re-install properly; then move all the way to LMS 3.2.1.

  • My iPad is no longer communicating with my printer

    My iPad is no longer communicating with my printer. I get a message that it is contacting printer and then eventually it tells me that my printer is off line but it's not.

    First, follow these steps:
    Turn off internet modem (DSL)
    Turn off wireless router
    Turn off printer
    Turn off iPad
    WAIT THREE MINUTES BEFORE TURNING THEM ON
    Turn on previous items in the EXACT order they were turned off
    Allow Third Party Access
    After the rebooting, go into your computer or printer's network connection, and make sure that third party devices have permission to have access to the printer.
    If you're having problems after that, I deduct that the problem is not with the iPad, but with the printer itself.
    Is the printer connected to Wi-Fi? Or, is the printer directly linked to your wireless router?
    In the event that the printer IS connected to Wi-Fi, either refer to the user's manual that came with it, contact customer service, or let me know below!
    In the event that the printer IS NOT connected to Wi-Fi but to a wireless router, resort to the following steps:
    Check the (ethrnet) cable linking your printer and wireless router for any damage.
    Make sure the ethernet cable is connected.
    Check the wireless router's lights. The cable that was plugged in should have a matching light that turns on and off when plugged in, and removed.
    If the light is off, try plugging the ethernet cable into a different port. Repeat this step until a light turns on.
    If none of the port lights turn on, your wireless router is the problem.
    If the port light does turn on, a connection between the printer and router is established.
    Try to connect your device and the printer again.
    After following these steps, and it's still not working, post another comment and let me know! My life is now dedicated to helping you get your iPad and printer connected!
    -Johnjohn

  • Event ID: 5014, 5004 The DFS Replication Service is stopping communication with partner / Error 1726 (The remote procedure call failed.)

    I'm replicating between two servers in two sites (Server A - Server 2012 R2 STD, Server B - Server 2008 R2) over a VPN (Sonicwall Firewall).  Though the initial replication seems to be
    happening it is very slow (the folder in question is less than 3GB).  I'm seeing these in the event viewer every few minutes:
    The DFS Replication service is stopping communication with partner PPIFTC for replication group FTC due to an error. The service will retry the connection periodically.
    Additional Information:
    Error: 1726 (The remote procedure call failed.)
    and then....
    The DFS Replication service successfully established an inbound connection with partner PPIFTC for replication group FTC.
    Here are all my troubleshooting steps (keep in mind that our VPN is going through a SonicWall <--I increased the TCP timeout to 24 hours):
    -Increased TCP Timeout to 24 hours 
    -Added the following values on both sending and receiving members and rebooted server
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
    Value =DisableTaskOffload
    Type = DWORD
    Data = 1
    Value =EnableTCPChimney
    Type = DWORD
    Data = 0
    Value =EnableTCPA
    Type = DWORD
    Data = 0
    Value =EnableRSS
    Type = DWORD
    Data = 0
    ---------------------------------more troubleshooting--------------------------
    -Disabled AntiVirus on both members
    -Made sure DFSR TCP ports 135 & 5722 are open
    -Installed all hotfixes for 2008 R2 (http://support.microsoft.com/kb/968429) and rebooted
    -Ran NETSTAT –ANOBP TCP and the DFS executable results are listed below:
    Sending Member:
    [DFSRs.exe]
      TCP    10.x.x.x:53            0.0.0.0:0             
    LISTENING       1692
    [DFSRs.exe]
      TCP    10.x.x.x:54669        
    10.x.x.x:5722          TIME_WAIT       0
      TCP    10.x.x.x:54673        
    10.x.x.x:5722          ESTABLISHED     1656
     [DFSRs.exe]
      TCP    10.x.x.x:64773        
    10.x.x.x:389           ESTABLISHED     1692
    [DFSRs.exe]
      TCP    10.x.x.x:64787        
    10.x.x.x:389           ESTABLISHED     1656
     [DFSRs.exe]
      TCP    10.x.x.x:64795        
    10.x.x.x:389           ESTABLISHED     2104
    Receiving Member:
    [DFSRs.exe]
      TCP    10.x.x.x:56683        
    10.x.x.x:389           ESTABLISHED     7472
     [DFSRs.exe]
      TCP    10.x.x.x:57625        
    10.x.x.x:54886         ESTABLISHED     2808
    [DFSRs.exe]
      TCP    10.x.x.x:61759        
    10.x.x.x:57625         TIME_WAIT       0
      TCP    10.x.x.x:61760        
    10.x.x.x:57625         TIME_WAIT       0
      TCP    10.x.x.x:61763        
    10.x.x.x:57625         TIME_WAIT       0
      TCP    10.x.x.x:61764        
    10.x.x.x:57625         TIME_WAIT       0
      TCP    10.x.x.x:61770        
    10.x.x.x:57625         TIME_WAIT       0
      TCP    10.x.x.x:61771        
    10.x.x.x:57625         TIME_WAIT       0
      TCP    10.x.x.x:61774        
    10.x.x.x:57625         TIME_WAIT       0
      TCP    10.x.x.x:61775        
    10.x.x.x:57625         TIME_WAIT       0
      TCP    10.x.x.x:61776        
    10.x.x.x:57625         TIME_WAIT       0
      TCP    10.x.x.x:61777        
    10.x.x.x:57625         TIME_WAIT       0
      TCP    10.x.x.x:61778        
    10.x.x.x:57625         TIME_WAIT       0
      TCP    10.x.x.x:61779        
    10.x.x.x:57625         TIME_WAIT       0
      TCP    10.x.x.x:61784        
    10.x.x.x:52757         ESTABLISHED     7472
    [DFSRs.exe]
      TCP    10.x.x.x:63661        
    10.x.x.x:63781         ESTABLISHED     4880
    ------------------------------more troubleshooting--------------------------
    -Increased Staging to 32GB
    -Opened the ADSIedit.msc console to verify the "Authenticated Users" is set with the default READ permission on the following object:
    a. The computer object of the DFS server
    b. The DFSR-LocalSettings object under the DFS server computer object
    -Ran
    ping <var>10.x.x.x</var> -f -l 1472 and got replies back from both servers
    -AD replication is successful on all partners
    -Nslookup is working so DNS is working
    -Updated NIC drivers on both servers
    - I ran the following to set the Primary Member:
    dfsradmin Membership Set /RGName:<replication group name> /RFName:<replicated folder name> /MemName:<primary member> /IsPrimary:True
    Then Dfsrdiag Pollad /Member:<member name>
    I'm seeing these errors in the dfsr logs:
    20141014 19:28:17.746 9116 SRTR   957 [WARN] SERVER_EstablishSession Failed to establish a replicated folder session. connId:{45C8C309-4EDD-459A-A0BB-4C5FACD97D44} csId:{7AC7917F-F96F-411B-A4D8-6BB303B3C813}
    Error:
    + [Error:9051(0x235b) UpstreamTransport::EstablishSession upstreamtransport.cpp:808 9116 C The content set is not ready]
    + [Error:9051(0x235b) OutConnection::EstablishSession outconnection.cpp:532 9116 C The content set is not ready]
    + [Error:9051(0x235b) OutConnection::EstablishSession outconnection.cpp:471 9116 C The content set is not ready]
    ---------------------------------------more troubleshooting-----------------------------
    I've done a lot of research on the Internet and most of it is pointing to the same stuff I've tried.  Does anyone have any other suggestions?  Maybe I need to look somewhere
    else on the server side or firewall side? 
    I tried replicating from a 2012 R2 server to another 2012 server and am getting the same events in the event log so maybe it's not a server issue. 
    Some other things I'm wondering:
    -Could it be the speed of the NICs?  Server A is a 2012 Server that has Hyper-V installed.  NIC teaming was initially setup and since Hyper-V is installed the NIC is a "vEthernet
    (Microsoft Network Adapter Multiplexor Driver Virtual Switch) running at a speed of 10.0Gbps whereas Server B is running a single NIC at 1.0Gbps
    -Could occasional ping timeout's cause the issue?  From time to time I get a timeout but it's not as often as the events I'm seeing.  I'm getting 53ms pings.  The folder
    is only 3 GB so it shouldn't take that long to replicate but it's been days.  The schedule I have set for replication is mostly all day except for our backup times which start at 11pm-5am.  Throughout the rest of the time I have it set anywhere from
    4Mbps to 64 Kbps.  Server A is on a 5mb circuit and Server B is on a 10mb circuit. 

    I'm seeing the same errors, all servers are running 2008 R2 x64. Across multiple sites, VPN is steady and reliably.
    185 events from 12:28:21 to 12:49:25
    Events are for all five servers (one per office, five total offices, no two in the same city, across three states).
    Events are not limited to one replication group. I have quite a few replication groups, so I don't know for sure but I'm running under the reasonable assumption that none are spared.
    Reminder from original post (and also, yes, same for me), the error is: Error: 1726 (The remote procedure call failed.)
    Some way to figure out what code triggers an Event ID 5014, and what code therein specifies an Error 1726, would extremely helpful. Trying random command line/registry changes on live servers is exceptionally unappealing.
    Side note, 1726 is referenced here:
    https://support.microsoft.com/kb/976442?wa=wsignin1.0
    But it says, "This RPC connection problem may be caused by an unstable WAN connection." I don't believe this is the case for my system.
    It also says...
    For most RPC connection problems, the DFS Replication service will try to obtain the files again without logging a warning or an error in the DFS Replication log. You can capture the network trace to determine whether the cause of the problem is at the network
    layer. To examine the TCP ports that the DFS Replication service is using on replication partners, run the following command in a
    Command Prompt window:
    NETSTAT –ANOBP TCP
    This returns all open TCP connections. The connections in question are "DFSRs.exe", which the command won't let you filter for.
    Instead, I used the NETSTAT command as advertised, dumping output to info.txt:
    NETSTAT -ANOBP TCP >> X:\info.txt
    Then I opened Excel and manually opened the .TXT for the open wizard. I chose fixed-width fields based on the first row for each result, and then added a column:
    =IF(A3="Can not", "Can not obtain ownership information", IF(LEFT(A3,1) = "[", A3&B3&C3, ""))
    Dragging this down through the entire file let me see that row (Row F) as the file name. Some anomalies were present but none impacted DFSrs.exe results.
    Finally, you can sort/filter (I sorted because I like being able to see everything, should I choose to) to get just the results you need, with the partial rows removed from the result set, or bumped to the end.
    My server had 125 connections open.
    That is a staggering number of connections to review, and I feel like I'm looking for a needle in a haystack.
    I'll see if I can find anything useful out, but a better solution would be most wonderful.

  • Safari cannot open the page ~ The error was: "There was a problem communicating with the web proxy server (HTTP)

    Help!  I was cruzing along just fine and went out tonight only to receive the message above:
    Cannot open Page
    Safari cannot open the page
    The error was: "There was a problem communicating with the web proxy server (HTTP)."
    I have had all the Apple iPhone phone.  Have never encountered anything like this. 
    All systems are GO as soon as I log on to wifi. 
    Can anyone help, please. 

    I am also fixed.  I also loaded Onavo, but that was the other day ... this is what I did with the help of online chat with AT&T ...
    I went to:
    Settings
    Wifi
    I selected the network I was working on by hitting the blue arrow located on right side
    At the detail page of that network I scolled down to the bottom to find HTTP Proxy boxes
    I was on Off and changed it to Auto and it worked! 
    I was soo jazzed!!
    Instructions said if it was already on AUTO, to change it to Manual and make your Port = 80 but I didn't have to do that!
    YIPPIE!!  I'm a new man!!
    Go to settings -----> WI-FI  -----> select the network you're using  ------> hit the blue arrow located on the right-side of the network name (ie: show details of that network), this takes you to another page.  
    --------> at the bottom of the page you'll see "HTTP Proxy" boxes (located below the "renew lease" button) ---------------> change the proxy to AUTO.   Note: if you're already at AUTO, change it to "Manual" and make your Port = 80.

  • Logic / OS X randomly losing communication with firewire devices

    Hi
    Connected to my MBP I have a Lacie FW drive with an Apogee Duet daisy chained to this.
    During a Logic session yesterday all of a sudden I received device removal (warning) messages for these two items although they were still connected to the relevant ports!? I also had to force quit Logic following this.
    When I reconnnected the devices were recognised but things were still not right as when I tried to change the volume on the duet the system was very slow in responding.
    I was running of the battery power but this has never happened before whether connected to the mains or the battery.
    Any ideas/should I worry?
    Everything seemed fine a couple of hours later when I restarted the system but I am uneasy about the potential for this to occur during a more important session.
    Any advice greatly appreciated
    Cheers
    Sam

    Hi Sam
    I have an Imac, same operating system as you (10.5.8) and also the Duet. Also got a Lacie external hard drive. i have also encountered this problem in the last week. however, I have had this problem in both Logic 9.02 and Record so it seems it isn't just a Logic problem.
    One question - was Airport on when you lost communication with your hard drive? My was and when I turned it off the problem has not occurred again. It may have something to do with it although I'm not technically minded so I wouldn't know why.

  • Error encountered while communicating with primary IP-address

    Hi
    I have recently deployed my first Exchange Server. This is an Exchange Server 2013 Standard and I set up everything using this document on Technet for installation: http://technet.microsoft.com/en-us/library/bb124778(v=exchg.150).aspx
    For post-installation I used this document on Technet: http://technet.microsoft.com/en-us/library/bb124397(v=exchg.150).aspx
    I have setup access to port 25, 587, 143, 993, 110, 995, 80, 443 in my routers SPI-firewall and created DNAT rules for each of these ports as well. I can send mail without any issues, but I cannot receive. Reverse DNS is working both internally and externally.
    I can telnet to port 25 on my external IP and external domain which is exchange.mydomain.tld
    My Exchange-server is running inside a Gen1 Hyper-V virtual machine on a Windows Server 2012 R2.
    My Exchange Server has the following resources:
    OS: Windows Server 2012 R2
    CPU: 2 cores of AMD FX-6120 3.30GHz
    RAM: 3584MB
    HDD1: IDE 80GB VHDX - is currently used for all system files and for Exchange.
    HDD2: SCSI 127GB VHDX - will be used for Exchange DB and logs when everything is working.
    When sending mail from any internal or external e-mail address to an internal e-mail address I get the following error in Exchange Queue Viewer:
    "451 4.4.0 Error encountered while communicating with primary target IP address:"421 4.2.1 Unable to connect." Attempted failover to alternate host, but that did not succeed. Either there are no alternate hosts, or delivery failed to all alternate
    hosts. The Last"
    How can I solve this issue? If you need any more information please let me know and I will see if I can find it.

    Hi I have now tried to send mail to an internal address using telnet. This returned the following value:
    250 2.6.0 <[email protected]> [InternalId=1971389988866] Queued mail for delivery
    Next I tried to send to an external mail by using telnet and it returned this result when adding the reciepient:
    550 5.7.1 Unable to relay
    This is the output of the Test-Servicehealth cmdlet:
    Role                    : Mailbox Server Role
    RequiredServicesRunning : True
    ServicesRunning         : {IISAdmin, MSExchangeADTopology, MSExchangeDelivery, MSExchangeIS, MSExchangeMailboxAssistant
                              s, MSExchangeRepl, MSExchangeRPC, MSExchangeServiceHost, MSExchangeSubmission, MSExchangeThro
                              ttling, MSExchangeTransportLogSearch, W3Svc, WinRM}
    ServicesNotRunning      : {}
    Role                    : Client Access Server Role
    RequiredServicesRunning : True
    ServicesRunning         : {IISAdmin, MSExchangeADTopology, MSExchangeMailboxReplication, MSExchangeRPC, MSExchangeServi
                              ceHost, W3Svc, WinRM}
    ServicesNotRunning      : {}
    Role                    : Unified Messaging Server Role
    RequiredServicesRunning : True
    ServicesRunning         : {IISAdmin, MSExchangeADTopology, MSExchangeServiceHost, MSExchangeUM, W3Svc, WinRM}
    ServicesNotRunning      : {}
    Role                    : Hub Transport Server Role
    RequiredServicesRunning : True
    ServicesRunning         : {IISAdmin, MSExchangeADTopology, MSExchangeEdgeSync, MSExchangeServiceHost, MSExchangeTranspo
                              rt, MSExchangeTransportLogSearch, W3Svc, WinRM}
    ServicesNotRunning      : {}
    Can we use this information to find a possible source for my issues?

  • Communication with modbus devices

    Hello All,
    My name Peter, I am currently exploring what LabVIEW has for instrument communication. I have explored a little on NI-Visa and used it for instrument communication through USB and Ethernet. My next task just now is to see how I can communicate with Modbus devices. I have done some background reading on modbus communication protocol and now have some level of understanding of what it is about. I hope to understand more as I continue to read more materials.
    I came across an NI-Tutorial  titled Connect LabVIEW to any PLC with Modbus. It is about communicating with a networked PLC using modbus. I followed all the steps described for creating Modbus master I/O Server, Binding shared variables to Modbus Address through the I/O Server and writing to Modbus Addresses in LabVIEW. On running my VI to deploy the shared variable, the following error occured.
    Can anyone please guide me on what to do because I do not know exactly what is going ON. I engaged in this excercise with the hope of getting to understand more about Modbus communication and then see how I can apply thesame idea to communicate with the Modbus device available in my Laboratory. Please note that I do not yet know much about modbus communication and I am just learning about it now. I do not have any PLC connected to the network. Could that be the reason for the error? If anyone has got any other relevant document to help me get started with modbus communication I will be happy to have them posted here.
    Thanks very much for taking time to read through my post message. Hope to hear a quick response from you.
    Regards
    Peter

    Hi SmithD,
    I would like to say thank you very much for making out time to respond to my queries. I have done as directed but still not getting result. Following the wire mode port setting configuration, I stopped the process and then selected the RS485/wire4 as the wire mode. On running the VI, an error pops up with the information that the Visa resource is Valid but the port cannot be accessed. I noticed that If I undeploy the shared bound variable the error does not pop up anymore. I concluded that maybe I was not supposed to have added the VISA configure Serial port in the first place.
    Kindly tell me what to do.
    My task is to read the holding register from a Modbus device. I have the register map with me, and know the TCP and RTU settings for this device. After the attempts I have made so far I was forced to believe that perhaps the device was not responding. I then resolved to using the QModbusMaster which was previously used to read the holding register. For reasons I don’t not know, It worked well with the TCP communication and returned an error that read " slave threw exception > unknown error". With that, I am now sure that the device is functioning properly, at least with the TCP.
    Having obtained result from the TCP using QModbusMaster application, I want to simply do the same using LabVIEW.
    Some few questions for which I would want to ask for clarification are:
    1.)  When using the Modbus Library, do I need to create both master and slave instance to be able to read the holding register? My attempt was to create a Master instance with the RTU parameters. The starting address and number of registers were specified at the input terminals of the Read Holding Register VI. This VI immediately followed the Create Master Instance VI. I was expecting that that would read the information contained in the specified registers and output it at the register value terminal. One challenge with this attempt was that with RTU it didn't work. I tried selecting TCP as the VISA resource. But the device was not showing on the list. I went to MAX to create a new VISA TCP/IP resource under the network devices but MAX could not detect the presence of the device. I am now thinking maybe the device is not supported by NI-VISA and so it will not be possible to use the Modbus Library with it.
    2.) If the device is actually not compatible with NI-VISA, can DSC I/O server be used to read the information on the holding register?
    3.) Do I need an intermediate device between a Modbus device and the PC to be able to read its holding register?
    Please if anybody has got a good suggestion as to what to do to  get my task achieved, kindly leave me a post.
    Thanks
    PETER

  • Communication with motor control using RS-232

    I need to use labview to communication with a stepper motor drive using the serial port RS-232. Could someone please get me started I'm not sure if a should use VISA or instrument I/O. And if I use one of those, how would I set it up?

    Hi Phil,
    Outside of LabView, how do you communicate with or control the motor drive?  If you are able to use software like HyperTerminal or Procomm, then using the VISA serial communication tools will be the simple way of implementing your solution.
    Here are some links which may provide clues on how to proceed.  You can also do a search on VISA Serial communication.
    Happy wiring!!
    JLV
    LINKS:
    Link 1: Although this one talks about an error, it does provide instructions on how to setup the VISA session:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=99660&query.id=0#M99660
    Link 2: Here are some examples: (good starting point):
    http://forums.ni.com/ni/board/message?board.id=170&message.id=65873&query.id=0#M65873
    Link 3: more info:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=86971&query.id=0#M86971

  • TCP/IP communication with remote host

    Hey guys,I wrote a class for TCP/IP communication with remote host.I am trying to use this class in following way:Its not working.One thing I am not sure about if I can give IP address of the machine while creating a socket.Please take a look at my program and let me know where i am doing wrong.Help me!
    CommunicationAgent commAgent;
    commAgent= new TCPIPCommAgent();
    writer = commAgent.getWriter("CASS");
    /* Send GC request message to CASS */
    writer.print(searchduedateRequestMsg);
    /* Get reader object to read TCP IP response from CASS */
    reader = commAgent.getReader("CASS");
    /* Read response message */
    String respMsg = reader.readLine();
    if(respMsg!=null)
    System.out.println("Search due date Response from CASS is:" +respMsg);
    else
    System.out.println("Error in reading search due date response");
    and here is my class responsible for TCP/IP communication:
    * Created on Jul 15, 2004
    * To change the template for this generated file go to
    * Window>Preferences>Java>Code Generation>Code and Comments
    package com.prtc.commif.framework;
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.io.PrintStream;
    import java.net.Socket;
    import java.net.UnknownHostException;
    import java.util.Properties;
    import com.prtc.commif.framework.interfaces.CommunicationAgent;
    import com.prtc.commif.util.InputResources;
    * @author spolireddy
    * To change the template for this generated type comment go to
    * Window>Preferences>Java>Code Generation>Code and Comments
    public class TCPIPCommAgent implements CommunicationAgent
    public BufferedReader getReader(String system)
    InputResources inputResources = new InputResources();
    Properties props=inputResources.getProperties(system + ".properties");
    Socket socket=null;
    BufferedReader in=null;
    //Get this from the properties
    String hostName = "113.132.192.21";
    //Get this from the properties
    int port = 10103;
    try
    socket = new Socket(hostName, port);
    in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
    catch (UnknownHostException e)
    System.err.println("Unable to identify the Host: " + hostName + ":" + port);
    System.exit(1);
    catch (IOException e)
    System.err.println("Couldn't get I/O for the connection to: "     + hostName + ":" + port);
    System.exit(1);
    return in;
    public PrintStream getWriter(String system)
    InputResources inputResources = new InputResources();
    Properties props=inputResources.getProperties(system + ".properties");
    Socket socket=null;
    PrintStream out=null;
    //Get this from the properties file
    String hostName = "113.132.192.21";
    //Get this from the properties file
    int port = 10103;
    try
    socket = new Socket(hostName, port);
    out = new PrintStream(socket.getOutputStream(), true);
    catch (UnknownHostException e)
    System.err.println("Unable to identify the Host: " + hostName + ":" + port);
    System.exit(1);
    catch (IOException e)
    System.err.println("Couldn't get I/O for the connection to: "     + hostName + ":" + port);
    System.exit(1);
    return out;

    Hi,
    Yes, you can specify ip-address as host-address.
    What do you expect the class to do? Why does reader and writer both open sockets?
    What happens when you run the program?
    /Kaj

Maybe you are looking for

  • Two new IDE-Controllers after BIOS update, but not installable

    Hi there, i recently updated my bios to the latest version and now the following strange thing happens: when i boot my machine (875P NEO, P4 2.8 GHz, 1 GB RAM, 2 Otical drives at IDE0, 2 S-ATA drives at the S-ATA-controller, WIN XP SP), there are two

  • Can't download iTunes.  Just get message "Thanks for downloading iTunes"

    As the title says, The Apple "Thanks" page pops up immediately when I try to downoad iTunes, but nothing has been downloaded. OS: Win8 PC: Lenovo x230 (new) Any help appreciated. Thanks

  • Problem with ffmpeg: "lame: output buffer too small"

    Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 15.00 (15/1) Input #0, flv, from 'cEoVBVBCkGI.flv': Duration: 00:09:31.06, start: 0.000000, bitrate: 305 kb/s Stream #0.0: Video: flv, yuv420p, 320x240, 241 kb/s,

  • Import from tablespace export

    Dear Experts, Oracle 10g, Windows 2003. I have exported users tablespace by using following command : exp system/password file='D:\userstablespace.dmp' tablespace=users. Now I want to export all objects in users tablespace to a user or object of a pa

  • "Mozilla Firefox Start Page" Search Don't Work

    Start-page in Firefox 4-4.01, Where the search provider should be shown it's blank, search don't function. I tried Safemode and same issue. I have already tried the "DOM storage fix" as described here http://support.mozilla.com/en-US/questions/793424