PDA

View Full Version : Has anyone ever played around with SMB?



Patrick1ab
05-17-2010, 05:58 AM
I wonder if anyone has had the desire to access shared files or folders on a LAN with the Propeller Chip and a network module.
I looked into the OBEX, but I couldn't find anything including the Server Message Block Protocol.

Maybe I'll try to write something myself, but it looks a bit complex to me:
download.microsoft.com/download/a/e/6/ae6e4142-aa58-45c6-8dcf-a657e5900cd3/%5BMS-SMB%5D.pdf (http://download.microsoft.com/download/a/e/6/ae6e4142-aa58-45c6-8dcf-a657e5900cd3/%5BMS-SMB%5D.pdf)

smbaker
05-17-2010, 06:07 AM
Personally, I find NFS to be a much simpler of a protocol than SMB. NFSv2 is really a pretty simple specification with a lot of reference implementations in C. NFSv2 is often implemented over UDP which itself is also a very simple protocol.

I suppose it really depends on the application you have in mind. If you're looking to use a prop as a client with a unix/linux server than NFS would be the way to go. If you want the prop as a client to a windows server than SMB is the obvious choice as NFS support under windows is always messy. If you're looking to make the prop into a server, then you should probably just buy an existing NAS device.

Patrick1ab
05-17-2010, 06:23 AM
smbaker said...

If you want the prop as a client to a windows server than SMB is the obvious choice as NFS support under windows is always messy.


Every computer in our home network is running on Windows, so I think SMB would be the better choice. Perhaps I'll start analyzing the traffic of our Blu-ray Disc Player, when it tries to access a file/folder on a computer.



smbaker said...

If you're looking to make the prop into a server, then you should probably just buy an existing NAS device.


Pardon? Where would be the challenge? http://forums.parallax.com/images/smilies/smilewinkgrin.gif

Kevin Wood
05-17-2010, 06:33 AM
If I were looking to do something like this, I would probably start by reading the source code for one of the open-sourced implementations - ie, Linux/FreeBSD/OpenSolaris, etc. This should give you enough of an idea on how to replicate it in a Propeller-specific language, or even possibly port the code to one of the C compilers already available.

Just keep the licensing in mind with the OSS source.

smbaker
05-17-2010, 10:02 AM
Patrick1ab said...

Pardon? Where would be the challenge? http://forums.parallax.com/images/smilies/smilewinkgrin.gif


ok, I understand where you're coming from.... On my drawing board is a propeller-based ethernet switch (probably with 3 ENC28J60 used as NICs) for no other reason than because I can probably do it... :)