Client raspberry without GUI, can I run it in free trial mode?

9 posts / 0 new
Last post
plau
Client raspberry without GUI, can I run it in free trial mode?

I successfully installed USB server on my raspberry, the client is a raspberry running domoticz without GUI, can I run it in free trial mode?
Sorry for stupid question, I'm new in the Linux world

Michael
If you run the server in free

If you run the server in free mode, then you cannot run the client as a daemon. Therefore if you want to run it in free mode, ssh to your raspberry pi, then type sudo ./vhclientarmhf and leave it running, then ssh again to your pi and type ./vhclientarmhf -t list and then it will list the devices on the server, then do ./vhclientarmhf -t use,xxxxx to use a device

plau
I get an error:pi@domoticzpi

I get an error:
pi@domoticzpi /usr/sbin $ sudo ./vhclientarmhf
FATAL: Module vhci_hcd not found.
USBIP drivers not found, attempting to download for armv6l,3.18.5+...
Downloading http://www.virtualhere.com/usbip_drivers/armv6l/3.18.5+/usbip-core.k o failed: HTTP response code said error
USBIP client drivers are not available, you will have to compile/install your ow n from the linux kernel source
something seems missing, it's the USBIP staging drivers?

Michael
I did the following on my pi

I did the following on my pi

sudo apt-get update;sudo apt-get upgrade;sudo rpi-update;sync;sudo reboot

then i logged in again and ran the vhclientarmhf and it seems the latest build of raspbian contains the usbip client drivers so vhclientarmhf should work immediately now. Give it another try after you did the instructions above

plau
you are right it's working

you are right it's working with the update, so now looks good but I don't see it usb list:
pi@domoticzpi /usr/sbin $ ./vhclientarmhf -t list
VirtualHere IPC, below are the available devices:
(Number in brackets = address, * = Auto-Use)

Raspberry Hub (192.168.1.31:7575)
--> CP2102 USB to UART Bridge Controller (4294967408) (In-use by:Pascal (Pasc al) at 192.168.1.4)

Auto-Find currently on
Auto-Use All currently off
Reverse Lookup currently off
VirtualHere not running as a service
pi@domoticzpi /usr/sbin $ sudo ./vhclientarmhf -t use,4294967408
pi@domoticzpi /usr/sbin $ sudo lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 04fa:2490 Dallas Semiconductor DS1490F 2-in-1 Fob, 1-Wire adapter
pi@domoticzpi /usr/sbin $

Michael
Take a look at this, http:/

Take a look at this, http://www.virtualhere.com/node/452 are you seeing those messages? If so you need to manually patch the kernel yourself.

plau
This is what I get on the

This is what I get on the client raspberry:
[ 0.000000] .data : 0xc07fc000 - 0xc085588c ( 359 kB)
[ 0.000000] .bss : 0xc085588c - 0xc090d128 ( 735 kB)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] NR_IRQS:522
[ 0.000025] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483648000ns
[ 0.000076] Switching to timer-based delay loop, resolution 1000ns
[ 0.000356] Console: colour dummy device 80x30
[ 0.001421] console [tty1] enabled
[ 0.001467] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=10000)
[ 0.001541] pid_max: default: 32768 minimum: 301
[ 0.001913] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001978] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.002974] Initializing cgroup subsys memory
[ 0.003067] Initializing cgroup subsys devices
[ 0.003125] Initializing cgroup subsys freezer
[ 0.003180] Initializing cgroup subsys net_cls
[ 0.003232] Initializing cgroup subsys blkio
[ 0.003354] CPU: Testing write buffer coherency: ok
[ 0.003477] ftrace: allocating 19479 entries in 58 pages
[ 0.111560] Setting up static identity map for 0x55d058 - 0x55d0b4
[ 0.114397] devtmpfs: initialized
[ 0.131901] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[ 0.135096] pinctrl core: initialized pinctrl subsystem
[ 0.137786] NET: Registered protocol family 16
[ 0.143299] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[ 0.171331] cpuidle: using governor ladder
[ 0.201394] cpuidle: using governor menu
[ 0.201935] bcm2708.uart_clock = 3000000
[ 0.205027] No ATAGs?
[ 0.205092] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[ 0.205150] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.205232] mailbox: Broadcom VideoCore Mailbox driver
[ 0.205397] bcm2708_vcio: mailbox at f200b880
[ 0.205868] bcm_power: Broadcom power driver
[ 0.205925] bcm_power_open() -> 0
[ 0.205955] bcm_power_request(0, 8)
[ 0.706697] bcm_mailbox_read -> 00000080, 0
[ 0.706745] bcm_power_request -> 0
[ 0.706944] Serial: AMBA PL011 UART driver
[ 0.707180] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83, base_baud = 0) is a PL011 rev3
[ 1.098601] console [ttyAMA0] enabled
[ 1.171691] SCSI subsystem initialized
[ 1.175831] usbcore: registered new interface driver usbfs
[ 1.181620] usbcore: registered new interface driver hub
[ 1.187141] usbcore: registered new device driver usb
[ 1.194339] Switched to clocksource stc
[ 1.228891] FS-Cache: Loaded
[ 1.232213] CacheFiles: Loaded
[ 1.252340] NET: Registered protocol family 2
[ 1.258294] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 1.265575] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 1.271986] TCP: Hash tables configured (established 1024 bind 1024)
[ 1.278495] TCP: reno registered
[ 1.281761] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 1.287691] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 1.294447] NET: Registered protocol family 1
[ 1.299466] RPC: Registered named UNIX socket transport module.
[ 1.305551] RPC: Registered udp transport module.
[ 1.310281] RPC: Registered tcp transport module.
[ 1.315049] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 1.322754] bcm2708_dma: DMA manager at f2007000
[ 1.327781] vc-mem: phys_addr:0x00000000 mem_base=0x0ec00000 mem_size:0x10000000(256 MiB)
[ 1.337656] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 1.343923] audit: initializing netlink subsys (disabled)
[ 1.349647] audit: type=2000 audit(1.100:1): initialized
[ 1.370561] VFS: Disk quotas dquot_6.5.2
[ 1.375063] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 1.384551] FS-Cache: Netfs 'nfs' registered for caching
[ 1.391661] NFS: Registering the id_resolver key type
[ 1.396987] Key type id_resolver registered
[ 1.401201] Key type id_legacy registered
[ 1.406734] msgmni has been set to 235
[ 1.413035] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[ 1.421059] io scheduler noop registered
[ 1.425205] io scheduler deadline registered (default)
[ 1.430763] io scheduler cfq registered
[ 1.437339] BCM2708FB: allocated DMA memory 47c00000
[ 1.442407] BCM2708FB: allocated DMA channel 0 @ f2007000
[ 1.453824] Console: switching to colour frame buffer device 82x26
[ 1.466160] bcm2708-dmaengine bcm2708-dmaengine: Load BCM2835 DMA engine driver
[ 1.475782] uart-pl011 dev:f1: no DMA platform data
[ 1.482435] kgdb: Registered I/O driver kgdboc.
[ 1.515220] vc-cma: Videocore CMA driver
[ 1.520796] vc-cma: vc_cma_base = 0x00000000
[ 1.527218] vc-cma: vc_cma_size = 0x00000000 (0 MiB)
[ 1.534186] vc-cma: vc_cma_initial = 0x00000000 (0 MiB)
[ 1.554911] brd: module loaded
[ 1.566793] loop: module loaded
[ 1.571959] vchiq: vchiq_init_state: slot_zero = 0xc7800000, is_master = 0
[ 1.581595] Loading iSCSI transport class v2.0-870.
[ 1.589886] usbcore: registered new interface driver smsc95xx
[ 1.597559] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ 1.805172] Core Release: 2.80a
[ 1.809851] Setting default values for core params
[ 1.816256] Finished setting default values for core params
[ 2.023546] Using Buffer DMA mode
[ 2.028465] Periodic Transfer Interrupt Enhancement - disabled
[ 2.035903] Multiprocessor Interrupt Enhancement - disabled
[ 2.043067] OTG VER PARAM: 0, OTG VER FLAG: 0
[ 2.049093] Dedicated Tx FIFOs mode
[ 2.054611] WARN::dwc_otg_hcd_init:1047: FIQ DMA bounce buffers: virt = 0xc7c14000 dma = 0x47c14000 len=9024
[ 2.067636] FIQ FSM acceleration enabled for :
[ 2.067636] Non-periodic Split Transactions
[ 2.067636] Periodic Split Transactions
[ 2.067636] High-Speed Isochronous Endpoints
[ 2.090594] dwc_otg: Microframe scheduler enabled
[ 2.090698] WARN::hcd_init_fiq:412: FIQ on core 0 at 0xc040116c
[ 2.098286] WARN::hcd_init_fiq:413: FIQ ASM at 0xc0401444 length 36
[ 2.106209] WARN::hcd_init_fiq:438: MPHI regs_base at 0xc8806000
[ 2.113915] dwc_otg bcm2708_usb: DWC OTG Controller
[ 2.120508] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[ 2.129500] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[ 2.136677] Init: Port Power? op_state=1
[ 2.142180] Init: Power Port (0)
[ 2.147404] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 2.155895] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.164784] usb usb1: Product: DWC OTG Controller
[ 2.171067] usb usb1: Manufacturer: Linux 3.18.7+ dwc_otg_hcd
[ 2.178433] usb usb1: SerialNumber: bcm2708_usb
[ 2.185721] hub 1-0:1.0: USB hub found
[ 2.191198] hub 1-0:1.0: 1 port detected
[ 2.197435] dwc_otg: FIQ enabled
[ 2.197459] dwc_otg: NAK holdoff enabled
[ 2.197472] dwc_otg: FIQ split-transaction FSM enabled
[ 2.197532] Module dwc_common_port init
[ 2.198102] usbcore: registered new interface driver usb-storage
[ 2.206324] mousedev: PS/2 mouse device common for all mice
[ 2.214484] bcm2835-cpufreq: min=700000 max=700000
[ 2.221257] sdhci: Secure Digital Host Controller Interface driver
[ 2.229160] sdhci: Copyright(c) Pierre Ossman
[ 2.235492] DMA channels allocated for the MMC driver
[ 2.274421] Load BCM2835 MMC driver
[ 2.281500] sdhci-pltfm: SDHCI platform and OF driver helper
[ 2.297299] ledtrig-cpu: registered to indicate activity on CPUs
[ 2.305380] hidraw: raw HID events driver (C) Jiri Kosina
[ 2.316113] usbcore: registered new interface driver usbhid
[ 2.325495] usbhid: USB HID core driver
[ 2.333529] TCP: cubic registered
[ 2.339746] Initializing XFRM netlink socket
[ 2.347895] NET: Registered protocol family 17
[ 2.354227] Key type dns_resolver registered
[ 2.362045] registered taskstats version 1
[ 2.368123] vc-sm: Videocore shared memory driver
[ 2.374581] [vc_sm_connected_init]: start
[ 2.381439] [vc_sm_connected_init]: end - returning 0
[ 2.390103] Waiting for root device /dev/mmcblk0p2...
[ 2.397296] Indeed it is in host mode hprt0 = 00021501
[ 2.410237] mmc0: host does not support reading read-only switch, assuming write-enable
[ 2.437096] mmc0: new high speed SDHC card at address cdb1
[ 2.455000] mmcblk0: mmc0:cdb1 SU08G 7.40 GiB
[ 2.476140] mmcblk0: p1 p2
[ 2.518457] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
[ 2.527711] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[ 2.604587] usb 1-1: new high-speed USB device number 2 using dwc_otg
[ 2.612975] Indeed it is in host mode hprt0 = 00001101
[ 2.824862] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
[ 2.833377] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 2.843570] hub 1-1:1.0: USB hub found
[ 2.849366] hub 1-1:1.0: 3 ports detected
[ 3.134532] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[ 3.254835] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[ 3.263542] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 3.275879] smsc95xx v1.0.4
[ 3.339212] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:71:e9:aa
[ 3.434540] usb 1-1.2: new full-speed USB device number 4 using dwc_otg
[ 3.558119] usb 1-1.2: New USB device found, idVendor=04fa, idProduct=2490
[ 3.567052] usb 1-1.2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 6.508547] EXT4-fs (mmcblk0p2): orphan cleanup on readonly fs
[ 6.527328] EXT4-fs (mmcblk0p2): 1 orphan inode deleted
[ 6.534668] EXT4-fs (mmcblk0p2): recovery complete
[ 7.101262] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 7.113133] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[ 7.125556] devtmpfs: mounted
[ 7.131531] Freeing unused kernel memory: 340K (c07a7000 - c07fc000)
[ 8.763288] udevd[159]: starting version 175
[ 13.557701] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 13.644728] random: nonblocking pool is initialized
[ 13.976679] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 14.820327] i2c /dev entries driver
[ 14.924253] Driver for 1-wire Dallas network protocol.
[ 20.832505] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 23.955359] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[ 25.567681] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
[ 52.675405] fuse init (API version 7.23)
[ 87.541478] usb 1-1.2: usbfs: process 2166 (owserver) did not claim interface 0 before use
[ 87.541597] usb 1-1.2: usbfs: process 2166 (owserver) did not claim interface 0 before use
[ 87.544676] usb 1-1.2: usbfs: process 2166 (owserver) did not claim interface 0 before use
[ 87.549553] usb 1-1.2: usbfs: process 2166 (owserver) did not claim interface 0 before use
[ 343.866346] usbip_core: USB/IP Core v1.0.0
[ 343.875700] vhci_hcd vhci_hcd: USB/IP Virtual Host Controller
[ 343.875755] vhci_hcd vhci_hcd: new USB bus registered, assigned bus number 2
[ 343.894507] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[ 343.894548] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 343.894569] usb usb2: Product: USB/IP Virtual Host Controller
[ 343.894587] usb usb2: Manufacturer: Linux 3.18.7+ vhci_hcd
[ 343.894606] usb usb2: SerialNumber: vhci_hcd
[ 343.895851] hub 2-0:1.0: USB hub found
[ 343.895977] hub 2-0:1.0: 8 ports detected
[ 343.897501] vhci_hcd: USB/IP 'Virtual' Host Controller (VHCI) Driver v1.0.0
pi@domoticzpi ~ $
On windows client is working, i see the device

plau
Ok it's working, on my client

Ok it's working, on my client windows it was in auto Use.... so that's mean I Can't use it in same time on both clients?

Michael
Yes i was thinking that was

Yes i was thinking that was the case, as i cannot see "device connected" type messages in your log file so i figured you actually have it connected elsewhere. YOu cannot have the same device in use in multiple places simultaenoously. USB was never designed for that so its physically impossible as the state machine inside the usb driver would never work that way.

Log in or register to post comments