LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   USB Device Server (https://www.linuxquestions.org/questions/linux-newbie-8/usb-device-server-753430/)

gonvaro 09-07-2009 07:36 PM

USB Device Server
 
Hello friends;

I have a network device, called "Silex SX-5000U2" to get a better idea this is the link for the manual for that device http://www.silexeurope.com/media/manuals/SX5000U2.pdf

It's a USB Device Server. Although the manufacturer expresses no support for linux, in the software world, we all know that everything is possible.

It, I was able to connect the printer to Ubuntu 9.04, but I could with shares or with the scanner.

Regards...

j_jerry 09-08-2009 11:49 AM

Can you make it more clear? you can't connect.right?

gonvaro 09-08-2009 06:02 PM

Really, you have read the PDF file link I published?

How can use the connection to the scanner and storage device?

Quote:

Originally Posted by j_jerry (Post 3674534)
Can you make it more clear? you can't connect.right?


michaelk 09-08-2009 08:48 PM

Quote:

in the software world, we all know that everything is possible.
Almost....

From the manual you posted the storage server is compatible with netbios so it should be accessible via samba. However the scanner function appears to require windows software. About the only real information is that the scanner function uses port 19540 TCP protocol.

gonvaro 09-08-2009 09:32 PM

1 Attachment(s)
Ok, and...

So what are you thinking?
What do your solution using Ubuntu 9.04 as OS?

The file you see here is the result of a scan with Umit

Quote:

Originally Posted by michaelk (Post 3675127)
Almost....

From the manual you posted the storage server is compatible with netbios so it should be accessible via samba. However the scanner function appears to require windows software. About the only real information is that the scanner function uses port 19540 TCP protocol.


michaelk 09-08-2009 09:44 PM

I'm thinking you can access an attached storage device on the server the same way you can access a windows network share. Example:
mount -t cifs //xx.xx.xx.xx/drive1 /media/nas (where xx = IP address) Use the mkdir utility to create a mount directory.
I assume that samba is installed.

The manual has details on the netbios and drive share names.

lazlow 09-08-2009 09:46 PM

Have you assigned the device an IP per page 2-8 of the manual? In this case the Unix and Linux commands should be very similar.

Edit: The printer should be able to be used with Samba. Scanners are little more tricky.

gankoji 09-08-2009 10:05 PM

for scanner support you can check out sane. Other than that, the manual is pretty clear about what you need to do. give your server an IP address, and try connecting to your share device. Let us know how that goes and we'll figure what to do from there.

lazlow 09-08-2009 10:15 PM

I am not too sure how sane will deal with this. It may be fine but I suspect that it may through a fit. Basically you are remotely operating (everything) over samba.

gankoji 09-08-2009 10:19 PM

Well, I was referring to the possibility that you may be able to use it as a sort of codec before transmitting/receiving raw data to the scanner with samba. I really couldn't say, never tried it or even thought of it until 5 minutes ago. Just a quip at an interesting exercise in hacking to someone who has the right motivation ;-).

gonvaro 09-08-2009 11:24 PM

Quote:

Originally Posted by michaelk (Post 3675185)
I'm thinking you can access an attached storage device on the server the same way you can access a windows network share. Example:
mount -t cifs //xx.xx.xx.xx/drive1 /media/nas (where xx = IP address) Use the mkdir utility to create a mount directory.
I assume that samba is installed.

The manual has details on the netbios and drive share names.

Try, and look:

pepito@pepon:~$ sudo mount -t cifs //192.168.2.2/drive1 /mnt/usbdrv
[sudo] password for pepito:
Password:
mount error(112): Host is down
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)

lazlow 09-08-2009 11:46 PM

Can you ping the device?

gonvaro 09-09-2009 12:53 AM

Quote:

Originally Posted by lazlow (Post 3675317)
Can you ping the device?

Yes...

pepito@pepon:~$ ping 192.168.2.2
PING 192.168.2.2 (192.168.2.2) 56(84) bytes of data.
64 bytes from 192.168.2.2: icmp_seq=1 ttl=255 time=6.71 ms
64 bytes from 192.168.2.2: icmp_seq=2 ttl=255 time=1.23 ms
64 bytes from 192.168.2.2: icmp_seq=3 ttl=255 time=1.20 ms
64 bytes from 192.168.2.2: icmp_seq=4 ttl=255 time=4.89 ms
64 bytes from 192.168.2.2: icmp_seq=5 ttl=255 time=1.58 ms
64 bytes from 192.168.2.2: icmp_seq=6 ttl=255 time=2.07 ms
64 bytes from 192.168.2.2: icmp_seq=7 ttl=255 time=1.06 ms

--- 192.168.2.2 ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 6007ms
rtt min/avg/max/mdev = 1.061/2.680/6.711/2.057 ms

pepito@pepon:~$ ping usbsvr
PING usbsvr.dummy.porta.siemens.net (192.168.2.2) 56(84) bytes of data.
64 bytes from USBSVR.dummy.porta.siemens.net (192.168.2.2): icmp_seq=1 ttl=255 time=1.21 ms
64 bytes from USBSVR.dummy.porta.siemens.net (192.168.2.2): icmp_seq=2 ttl=255 time=1.13 ms
64 bytes from USBSVR.dummy.porta.siemens.net (192.168.2.2): icmp_seq=3 ttl=255 time=1.18 ms
64 bytes from USBSVR.dummy.porta.siemens.net (192.168.2.2): icmp_seq=4 ttl=255 time=1.31 ms
64 bytes from USBSVR.dummy.porta.siemens.net (192.168.2.2): icmp_seq=5 ttl=255 time=3.54 ms
64 bytes from USBSVR.dummy.porta.siemens.net (192.168.2.2): icmp_seq=6 ttl=255 time=1.43 ms

--- usbsvr.dummy.porta.siemens.net ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5008ms
rtt min/avg/max/mdev = 1.139/1.638/3.546/0.859 ms

michaelk 09-09-2009 06:31 AM

Here are several commancds to try and see if netbios is working on the server.
nmblookup usbsvr (should display IP address of the server)
smbtree
fndsmb

Just press the enter key if the commands ask for a password.

gonvaro 09-09-2009 07:03 AM

Quote:

Originally Posted by michaelk (Post 3675677)
Here are several commancds to try and see if netbios is working on the server.
nmblookup usbsvr (should display IP address of the server)
smbtree
fndsmb

Just press the enter key if the commands ask for a password.

Run the commands:

pepito@pepon:/home/pepito# nmblookup usbsvr
querying usbsvr on 192.168.2.255
192.168.2.2 usbsvr<00>
pepito@pepon:/home/pepito# smbtree
Password:
CASA
\\VAROLAP varolap server (Samba, Ubuntu)
\\VAROLAP\HP-Deskjet-f380 HP Deskjet f380 All-in-One
\\VAROLAP\IPC$ IPC Service (varolap server (Samba, Ubuntu))
\\VAROLAP\print$ Printer Drivers
\\USBSVR PRICOM SX-5000U2
Server requested LANMAN password (share-level security) but 'client lanman auth' is disabled
failed tcon_X with NT_STATUS_OK


All times are GMT -5. The time now is 04:43 PM.