Skip navigation.
Home
The QNX Community Portal

View topic - Test of availability of SMBfsys mounted share

Test of availability of SMBfsys mounted share

For the old QNX2 and QNX4 RTOS

Test of availability of SMBfsys mounted share

Postby Pilotek » Fri Oct 12, 2012 7:09 am

Please advice.
We need to copy approx. every 3 seconds a file of data (samples of measured analog/digital values) from QNX4 application to Windows machine.
We'd like to use SMBfsys to mount Windows' shared folder and run SMBfsys+mount in sysinit.

Problem is that if the remote Windows machine is not accessible during QNX4 boot (SMB mount), mount makes local directory with the name.

Another problem is unavailability of remote machine during standard operation (periodic copying of file).

Question: Is there some elegant method of verifying real existence (not "mistaken" local mount) and real accessibility (not "frozen" share after disconnecting/reconnecting Ethernet cable of remote Win machine) of SMBfsys mounted remote share on QNX4 machine before every copying the file?
Pilotek
Senior Member
 
Posts: 124
Joined: Thu Jan 25, 2007 3:52 pm

Re: Test of availability of SMBfsys mounted share

Postby maschoen » Fri Oct 12, 2012 10:13 am

I don't know much about SMBfsys. Elegant, hmmm. You could try doing a ping before each copy. I worked on a system with a NAS device where we had the same issue, is it there? We ended up using SNMP to poll the device. A manager would mount and unmount the device depending on whether it appeared. I don't know if you jimmy Windows to do this. This article http://support.microsoft.com/kb/324263 seems to suggest that you can with Windows server, but I don't really understand the details, or how you could use it.

What about just having some known file that you try to open, read and verify the data of? This might work unless SMBfsys does some kind of caching.

Lastly, what about using something like SIMPL to transport the data? You could offload the transfer to a QNX process that would move data when possible. Then you have no problem if the Windows system is down. The data gets transferred when you reconnect.
maschoen
QNX Master
 
Posts: 2644
Joined: Wed Jun 25, 2003 5:18 pm

Re: Test of availability of SMBfsys mounted share

Postby Pilotek » Wed Oct 24, 2012 2:49 pm

Thank you maschoen, what is SIMPL?
Pilotek
Senior Member
 
Posts: 124
Joined: Thu Jan 25, 2007 3:52 pm

Re: Test of availability of SMBfsys mounted share

Postby maschoen » Wed Oct 24, 2012 5:01 pm

SIMPL is open source software that uses TCP/IP to do QNX style message passing across networks. It has been ported to many OS's so you can message pass between QNX and Windows. If you google SIMPL you will probably find a location to download it.
maschoen
QNX Master
 
Posts: 2644
Joined: Wed Jun 25, 2003 5:18 pm


Return to QNX2 and QNX4

Who is online

Users browsing this forum: No registered users and 1 guest