Communications with MIDI Port
Hi all,
Does anyone have experience with MIDI (Musical Instrument Digital Interface)
and LabVIEW?
Any pointers would be appreciated.
Regards,
Paul
A few years ago my company designed (and sells) a MIDI-command compatible 4x2 audio mixer.
It is controlled via LabVIEW through the RS-232 port.
I asked another LabVIEW forum on the MIDI issue and I got advise to use activeX.
We found out by a user that our mixer could also be used in combination with MIDI software by using a driver (available from different companies) that sends MIDI-commands to the COMport.
[email protected]
Similar Messages
-
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 KBThe 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 -
Communicating with COM port.
Hi Experts,
There is a electronic weighing machine and has a COM port ( communication port). Can we connect to the COM port through ABAP? I need to read the weight of the measured component to a table control directly from the weighing machine.
Thanks and regards,
M.Madhusudan Rao.http://java.sun.com/products/javacomm/
-
RMI Communication with Fixed port
I am mentioning here what I have done
MyServer class
public class MyRMIServer {
public static void main(String[] args) {
try{
System.setSecurityManager(new RMISecurityManager());
MyRMIServiceInterface myRMIServiceInterface = (MyRMIServiceInterface)UnicastRemoteObject.exportObject(new MyRMIServiceImpl(), 50000);
Registry registry = LocateRegistry.createRegistry(1099);
registry.bind("myRMIImplInstance", myRMIServiceInterface);
catch (Exception e) {
e.printStackTrace();
My client class
public class MyRMIClient {
public static void main(String[] args) {
try{
Registry registry = LocateRegistry.getRegistry("localhost", 1099);
MyRMIServiceInterface myRMIServiceInterface = (MyRMIServiceInterface)registry.lookup("myRMIImplInstance");
myRMIServiceInterface.getDate();
catch (Exception e) {
e.printStackTrace();
My rmi.policy
permission java.net.SocketPermission "localhost:1099", "connect, resolve";
permission java.net.SocketPermission "localhost:50000", "connect, resolve";
permission java.net.SocketPermission "localhost:50000", "accept, resolve";
I run this program and getting exception at server side
Exception in thread "RMI TCP Connection(idle)" java.security.AccessControlExcept
ion: access denied (java.net.SocketPermission 127.0.0.1:49642 accept,resolve)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkAccept(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.checkAcceptPermi
ssion(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport.checkAcceptPermission(Unknown Sour
ce)
at sun.rmi.transport.Transport$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Sou
rce)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Sour
ce)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
and the 49642 is random
Please clear my concept. Is it possible to make this communication to 50000.
Edited by: Basir.Ahmed on Feb 14, 2010 7:01 PM
Edited by: Basir.Ahmed on Feb 14, 2010 7:02 PMSo Could you tell me why this permission level is not workingCertainly. I wrote:
you have to define SocketPermissions at the server that permit it to accept from any client port numberYou implemented:
permission java.net.SocketPermission "localhost:50000", "accept, resolve";So you haven't done what I said.
Why I got the above exception. That's why.
Is this case of local machine only? You've specified that you will only accept connections from 'localhost' on port 50000. I've already told you that the port number is too restrictive, you have to allow any ports, say 1024-. If 'localhost' is too restrictive, change that too, but I don't know what your requirement is (or why you are still using a SecurityManager at all).
For above test does not relate the firewall like configuration?I don't understand that. -
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.1Try 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 -
NEED HELP WITH OXYGEN MIDI PORT ISSUE
O.K I AM SO FRUSTRATED CAN SOMEONE PLEASE PLEASE HELP ME! HERE GOES:
I'm running Logic 9 on new Macbook Pro. I use the oxygen v2 25 key midi keyboard controller with no problem. The Mrs. buys me a new OXYGEN (BLUE)61 Key MIDI KEYBOARD for Chrsitmas. When I use the oxygen61 it plays but when I press play on Logic 9 and run my track the message comes up
Device "Oxygen" is assigned to MIDI Port Oxygen 61 which is not present.
Please ensure taht all MIDI settings are connected and switched on. if this is the case please check the mdi port setting of device "OXYGEN". If this is correct, click "reset All Midi Drivers" in Preferences > MIDI> General.
I reset and still the same problem.
Please HELP!!!!!!!!!!
Thanks guys all the best,
DrewHey,
Thanks for the help but I had already done that.problem is I can play the keys when I pressplay on the track it's stops the message comes up and the board loses power.
But thanksfor the reponsegladly appreciated.
All the ebst -
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 -
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 ........... -
PC webcam for communicating with Isight user?
My parents and I live on opposite coats.
My folks just got a new, up-to-date Dell laptop equipped with USB ports (no Firewire equivalents from what I could see during a recent visit). I myself have a G4 desktop with an Isight connected via Firewire.
We both have cable internet and live on opposite coasts. I love the picture quality & real-time motion communicating with other Isights users on Ichat.
How can I establish a similar quality communication with the parents back home?
1) What web camera would be a good fit for their new USB-equipped Dell laptop?
2) Would using AIM on their end and Ichat on my end allow for a fairly good quality connection, with the same real-time motion?
Thanks for any thoughts!Hello Stephen,
Any PC webcam that is compatible with the software your parents want to use (probably AIM 5.9 for Windows) should work well for them.
Auto focus is nice, as is auto exposure, but they add cost. Some, but not all, have built in microphones. If your folks do not already have a mic, a camera with a built-in mic can save desk clutter if that is an issue that is worth the extra cost. If they have questions, they can judge these things best by an in-person demonstration at a brick and mortar store.
One place they can save money is on the motion-follow feature offered on many of the mid-to-upper priced PC webcams. Motion-follow can cause severe jumps that are distracting for video chat. If they need motion-follow for other uses, like surveillance camera applications, it is OK, but if the sole webcam use is for video chat, they do not need to spend ANY extra money for this feature. You will probably ask them to turn it off anyway. If all the cameras that have the other features they wants also include motion-follow, they can turn it off when they video chats to reduce the distracting "jump".
If they want the best possible video chat quality, there are other possible considerations in the iSight and the PC FAQ.
My best tips for Mac Video Chat with PCs at at this link.
EZ Jim -
Using multiple MIDI-in sources - can you now select the incoming MIDI port?
Exciting to see that Logic Pro X has launched at last!
I'm hoping someone who has already had a chance to download it can report back on a specific feature.
In previous versions of Logic, the only way to record multiple MIDI sources (for example a V-Drums kit and a keyboard) at the same time has been to make sure they are on different MIDI channels, and then choose the "auto demix MIDI channels" option in preferences.
In this way, the MIDI data is separated by channel and recorded to separate tracks.
However, it only separates the channels when two or more tracks are armed for recording, and does not offer any option for selecting the specific MIDI port for incoming MIDI signals.
DAWs such as Cubase and ProTools have always had a drop-down menu for MIDI channels, where the MIDI port can be chosen. This way, you can easily separate your MIDI controllers for either jamming or recording, and they will only play virtual instruments on tracks which are selected to their specific channel. This applies for recording as well as just jamming or trying parts prior to recording.
I have several hardware synths in my studio and often record MIDI jams with multiple players, and on that basis moved back to Cubase last year. I have been hoping Logic would update this feature for a long, long time!
Can anyone who is using Logic Pro X already confirm whether MIDI tracks now have a port select option, or whether the old channel-based system and the clumsy "auto demix MIDI channels" method remains...?
Cheers,
MikeGuys, this is really quite simple to accomplish in the midi environment, susprised you've been hunting for so long for the answers, here's a quick step by step:
1. Go into Midi Environment
2. Change the view in the Environment window to show Click & Ports
3. To make things easier, click the 'Input Notes' label, and delete the object. And also click the 'Input View' label, and delete that also, so you're left with a blank canvas. (These are handy tools when testing, just deleting them to make things clearer).
You should now be left with just the Sequencer Input (And midi click, but ignore that) - Basically anything that connects into this input goes through as an input into logic... So, all we have to do now is to split each device into seperate channels. This is simply done through the 'transform' objects.
4. Add 2x Transformer objects via the 'new' menu (Or however many external inputs you need).
5. Drag the connection from each device listed on the left, to it's own transformer as shown:
6. Then plug each transformer into the Sequencer input
7. Double click each Transformer object and simply FIX the midi channel to be whatever you desire, in this example i've picked channel 2 and channel 3
8. Now, just make sure the 'Auto demix by channel if multitrack record' option is selected in project settings, and you're good to go!
Now just simply select the channel number that corresponds to the devices you transformed, and when more than one track is armed for recording it will be split to how you would like. *Please take note, that the demix only kicks in when multitracking, i.e. more than one track is armed*
Now, this seems really long winded on a forum with screenshots etc. - But it's truly not, takes about 30 seconds, and once you've done it a few times makes sense. Plus going through an environment like this opens up possibilites such as splitting one midi keyboard into different zones which can transmit to different channels, so you can have bass on your left hand, and lead on the right for example. But the midi data will split to each track when recording.
Reply back if you get stuck, more than happy to help! -
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 XPI 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 successWindows 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 -
Please help me creating a new listener with different port#.
I have two instances in a server. both have different homes. I want to create a seperate listener for the second one i created.
But that is not happening.
here i tried to give name from LISTENER TO LISTENER1 & Port# from 1521 to 1524.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /apps2/oracle)
(PROGRAM = extproc)
LISTENER1 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = aixth53)(PORT = 1524))
When I check lsnrctl status with LISTENER1 , it still shows the other instance home with port#: 1521
Please help me creating a new listener with different port#.
Thanks,marist89 wrote:
sb92075 wrote:
marist89 wrote:
sybrand_b wrote:
The listener is a broker only and doesn't play any role in normal communications.
It just forks a process or a thread, and that's it.And the listener is a single point of failure. Listener goes down, you can't connect to the db. That's why you need two listeners.If listener one goes down, then listener two goes down for exact same reason since it is a single executable file.I'm not playing tit-for-tat with you. Fact is, there are situations where people who are not you might want to use more than one listener.Some folks might want to jab a sharp pencil into their eye, too.
Just because you can do something, it does not necessarily mean it should be done. -
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.
Maybe you are looking for
-
Adobe Reader 9.3.2 - PDF attachment won't print from right click
Hi all, Hopefully someone can assist some kind of suggestion, we have just rolled out Adobe Reader 9.3.2 upgrade from v8. When we now try to print a PDF Outlook 2003 attachment from the right click menu, we are prompted with the 'Open With' window.
-
Hello All I am busy with an installation and the Clients wishes to link 2 web pages to each of his customers ( 2000 of ) via the Links functionality. Is there a painless way of doing this :>)
-
My Firefox (3.6.23) is crashing frequently. The question is, if I'm in the middle of a logged in page, like Mailbox etc, and if Firefox crashes and a Crash Report gets generated, will the Crash Report contain enough URL details for anyone to enter my
-
Hello, I've read the system requirements for Cisco Unified Personal Communicator 8.6.2. Despite those requirements, is there any way possible to install CUPC 8.6.2 onto XP 64-bit without having to wipe and install Windows 7? When I try to install CUP
-
Reg : Restriction on Bankey in IT0009
Dear Gurus, Can any one suggest me how to restrict HR core user to select specific bank key while maintaining Infotype 0009. I will be really greatful Thanks