LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error: "BFFF0015 Timeout expired before operation completed."

Hi Ben thanks for the tip but I have been trying out several RS232C sniffers to get anything dump on the screen when I connect to the control box. Funny thing is when I start the connection to my BX-UCB box for the BX61 Microscope and started the sniffer it goes offline? While the reverse process does not yield good results either it says the port (COM1)and indicates this time I can't connect because it's used by some other program? Now how is that possible? Connect COM1 between the PC and the control box put a sniffer or monitor in between and everything simply goes offline?

Well I am glad and honored with people who reply to this forum I have been a LabVIEW user myself since in the days of Version 4.1 but it is only now I encountered this unfortunate error? Well research work is stalled for others if I don't deliver, professor or not, heavyweight or not if we can hit bottomline all is well in this kind of job. I do not know everything and yes even with years of experience in the lab and industry so does I guess anyone else in the forum so it is rather good to ask for substantial inputs.

Thanks.

Berns B.
Bernardino Jerez Buenaobra
Senior Test and Systems Development Engineer
Test and Systems Development Group
Integrated Microelectronics Inc.- Philippines
Telephone:+632772-4941-43
Fax/Data: +632772-4944
URL: http://www.imiphil.com/our_location.html
email: Bernardino.Buenaobra@ph.global-imi.com
0 Kudos
Message 11 of 38
(7,427 Views)
Have you tried the sniffing from another machine?

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 12 of 38
(7,115 Views)
Hi Albert that I did too but no substantial effect? Something is built in the code at compile time or some device prevents me from sniffing or monitoring the serial port? Now how is that possible? But the serial cable in between the PC and the BX-UCB box for the BX61 Motorized Microscope it connects fine -- enable the sniffer (port monitor) then everything goes offline? If you enable the sniffer or port monitor first the box and the PC don't want to connect because its says the port is already open or used?

Is this a nice quiz or exercise item for a hacker? And I'm not.

Berns
Bernardino Jerez Buenaobra
Senior Test and Systems Development Engineer
Test and Systems Development Group
Integrated Microelectronics Inc.- Philippines
Telephone:+632772-4941-43
Fax/Data: +632772-4944
URL: http://www.imiphil.com/our_location.html
email: Bernardino.Buenaobra@ph.global-imi.com
0 Kudos
Message 13 of 38
(7,114 Views)
Hi Dr Berns

LabVIEW can send on the serial port what other software can, and I guess that a service for this microscope is blocking the port.
In fact no other software should be necessary except a good driver (in LabVIEW of course)
Indeed microscope manufacturers are not the best software guru's around
Almost as bad as weighing devices are handled
greetings from the Netherlands
Message 14 of 38
(6,954 Views)
Hello Ben, the question is the exactly the subject in my message header here (loading...). Yes, sir I did that too and it has the same effect it forces the whole thing to go offline? So, I investigated various PC or notebook port schematics of RS232 and went through again in the details of RS232C protocol even did an In-Circuit which I saw a lot of things going on at the start-up and as well as the port levels when it is on-line? I'm almost ready to use the lab's logic analyzer for it and adapt another approach aside from sniffing them. I also looked at the possibility of using a serial protocol analyzer if I can find one? What can a programmer or hardware guy did so that it's not possible to sniff it or use NI Spy on it, load it when when another monitoring port is connected to it or disable the sniffer at run time?

What do you think?

Regards,

Berns B.
Bernardino Jerez Buenaobra
Senior Test and Systems Development Engineer
Test and Systems Development Group
Integrated Microelectronics Inc.- Philippines
Telephone:+632772-4941-43
Fax/Data: +632772-4944
URL: http://www.imiphil.com/our_location.html
email: Bernardino.Buenaobra@ph.global-imi.com
0 Kudos
Message 15 of 38
(7,109 Views)


@Dr.Berns wrote:
Hello Ben, the question is the exactly the subject in my message header here (loading...). Yes, sir I did that too and it has the same effect it forces the whole thing to go offline? So, I investigated various PC or notebook port schematics of RS232 and went through again in the details of RS232C protocol even did an In-Circuit which I saw a lot of things going on at the start-up and as well as the port levels when it is on-line? I'm almost ready to use the lab's logic analyzer for it and adapt another approach aside from sniffing them. I also looked at the possibility of using a serial protocol analyzer if I can find one? What can a programmer or hardware guy did so that it's not possible to sniff it or use NI Spy on it, load it when when another monitoring port is connected to it or disable the sniffer at run time?

What do you think?

Regards,

Berns B.




Are you saying that starting up http://www.sysinternals.com/ntw2k/freeware/portmon.shtml after the Olympus software has connected will terminate the connection? This would seem like active anti-hacking techniques in the software!

Also connecting a passive, meaning listening only on both lines (A PC alonce can't really be programmed to do that with only one serial port so that you would need two ports with a special cable), external monitor will disconnect, too?

Last but not least NI Spy only hooks into the NI-VISA calls. It is unlikely that non-NI software uses NI-VISA to talk to the serial device, so NI Spy will not see the traffic going directly through the native Windows Comm API. On the other hand NI-VISA does sit on top of the Windows Comm API to talk to serial devices, so the sysinternals Portmon program will also see that traffic as it hooks directly into the serial port kernel device driver through its own filter device driver. A normal application including NI-VISA should not be aware of its existence at all, unless it takes a conscious effort to check for that.

Another small chance is that the portmon device driver adds some small delay to the passing of IOCTL calls to the actual device driver so that the timing of serial port messages is slightly changed. If the combination of Olympus software and microscope however would rely on such a tight and exact timing on the serial port the only way to achieve this would be by implementing their own kernel mode device driver. Which would be another possible reason why it might not work. The portmon application hooks to the serial port kernel device driver and a possible Olympus kernel device driver would need to do the same. So one might be capturing the hook from the other one, in effect breaking the hook chain. That however would be a very strange way of doing business with a serial device from a Windows application. Developing a kernel device driver is VERY complicated and aside from being a somewhat good anti- sniffing technique has little advantages. A software developer choosing to write his own kernel device driver for serial communication applications is almost mad in his mind or extremely paranoid, which is basically the same.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 16 of 38
(7,104 Views)
Hello Rolfk:

Now a real heavy weight is your talking and I got your attention right! Yes, the T-cables or Y-cables I also did. Call it paranoid and mad but this maybe mortal sin to me I did and will go to confession about it! You know but you are probably right about that trick! I disassembled the DLLs and the EXECs and saw all the dependencies it seems that way. These microscope makers already sift you thousands of bucks for the Optics and can't supply you drivers enough to write custom program for protecting it for student and researchers abuse? The mechanism simply turns filters, move stages up and down, turns ON/OFF lights the framegrabber works even independently what precision do you need to motorize a scope? I did more complicated servo controls than this Olympus BX61 animal can do you know. Anyway I really have to deliver what I am expected but I am having quite a hard time getting connected to it.

Regards,

Berns B.
Bernardino Jerez Buenaobra
Senior Test and Systems Development Engineer
Test and Systems Development Group
Integrated Microelectronics Inc.- Philippines
Telephone:+632772-4941-43
Fax/Data: +632772-4944
URL: http://www.imiphil.com/our_location.html
email: Bernardino.Buenaobra@ph.global-imi.com
0 Kudos
Message 17 of 38
(7,091 Views)
Hello Rolf:

I'm still up to it the whole night at the lab only graduate students like me have the perserverance to do this actually.Anyway now I made the sniff working using the real and genuine portmonitor program from Sysinternals work with BX61 GUI already! How? Funny I deleted the COM1 out from the box in the Win2K hardware list boot it up again and Portmon now it works even if BX61 is up? I do not know why? But I actually need to delete it to make it work? I'm sniffing OK now but I suspect the people behind the driver for this animal did a lot of clutter of not detaching my port when unsuccessful connection or config does not work? Or could it be the firewall I just turned-off? I have spent to much hours in the lab I am getting disillussioned already. But thanks for bringing my debugging confindence back with your analysis.

Really it was an honor to have your time for this one it made me look deeper at serial comms at Windows level.

Regards,

Berns

Message Edited by Dr.Berns on 05-11-2005 07:08 PM

Message Edited by Dr.Berns on 05-11-2005 07:09 PM

Message Edited by Dr.Berns on 05-11-2005 07:11 PM

Message Edited by Dr.Berns on 05-11-2005 07:12 PM

Message Edited by Dr.Berns on 05-11-2005 07:12 PM

Message Edited by Dr.Berns on 05-11-2005 07:13 PM

Message Edited by Dr.Berns on 05-11-2005 07:13 PM

Message Edited by Dr.Berns on 05-11-2005 07:20 PM

Bernardino Jerez Buenaobra
Senior Test and Systems Development Engineer
Test and Systems Development Group
Integrated Microelectronics Inc.- Philippines
Telephone:+632772-4941-43
Fax/Data: +632772-4944
URL: http://www.imiphil.com/our_location.html
email: Bernardino.Buenaobra@ph.global-imi.com
Download All
0 Kudos
Message 18 of 38
(7,099 Views)
The messages look not that complicated at all.

Your computer sends a command "2POS?\r\n" (without quotes and for the backslashes you should enable the / Codes in the popup menu of the string control).

I would assume the number 2 is the axis, POS is the command and the question mark is an indication that this is a query. \r\n is the end of string indicator and really is a carraige return + line feed.

The device then sends back an answer "2POS\s484\r\n" which is quite obvious except the actual coordinate translation but some experimenting will show that too. I would assume that by sending "2POS\s484\r\n" on could probably cause the axis to move to that position too.

From what I can see, this seems like a quite simple and not to badly thought out communication protocol and so should work quite easily, when making sure that you send the carriage return/line feed characters at the end of each command.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 19 of 38
(7,084 Views)
Hello Rolfk:

Thanks again for your cultured and experienced eyes who can see the meaning of all of these! By the way how would I even know which is which of this part is actually is responsible for the connection? I think with what you mentioned here I could handle the motion control parts but I actually am at a loss which is and how I would go "online" and maintain the connection even at command sending?

Regards,

Berns B.
Bernardino Jerez Buenaobra
Senior Test and Systems Development Engineer
Test and Systems Development Group
Integrated Microelectronics Inc.- Philippines
Telephone:+632772-4941-43
Fax/Data: +632772-4944
URL: http://www.imiphil.com/our_location.html
email: Bernardino.Buenaobra@ph.global-imi.com
0 Kudos
Message 20 of 38
(7,076 Views)