我有一個新的極環,並將其連接到 USB 連接埠。但這是行不通的。
下載的應用程序,極流同步工作得很好......但我們需要將外圍設備(極環)與應用程式同步,但似乎並沒有真正工作。
我嘗試使用 Wine,該應用程式似乎可以運行,但我從未看到外圍設備已連接。對於虛擬機器(virtualbox 4.0),同樣的事情。我從來沒見過外圍設備。
也在資料夾瀏覽器上。
當我連接 USB 隨身碟或外部硬碟時,我的 Ubuntu 會自動偵測到週邊裝置並安裝它。我看到了圖標。但極環,什麼都沒有。
我執行了一些命令,我認為 Ubuntu 看到外圍設備已連接,但不完全連接。
結果sudo lsusb
是:
Bus 006 Device 002: ID 0da4:0008 Polar Electro OY
我也跑了dmesg | grep -i usb
。這表明了這一點,在其輸出接近尾聲時:
[ 0.174318] ACPI: bus type USB registered
[ 0.174318] usbcore: registered new interface driver usbfs
[ 0.174318] usbcore: registered new interface driver hub
[ 0.174318] usbcore: registered new device driver usb
[ 0.946347] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.946916] ehci-pci 0000:00:1a.7: new USB bus registered, assigned bus number 1
[ 0.960023] ehci-pci 0000:00:1a.7: USB 2.0 started, EHCI 1.00
[ 0.960079] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.960081] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.960083] usb usb1: Product: EHCI Host Controller
[ 0.960085] usb usb1: Manufacturer: Linux 3.13.0-48-generic ehci_hcd
[ 0.960087] usb usb1: SerialNumber: 0000:00:1a.7
[ 0.960183] hub 1-0:1.0: USB hub found
[ 0.960412] ehci-pci 0000:00:1d.7: new USB bus registered, assigned bus number 2
[ 0.976039] ehci-pci 0000:00:1d.7: USB 2.0 started, EHCI 1.00
[ 0.976076] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.976079] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.976081] usb usb2: Product: EHCI Host Controller
[ 0.976083] usb usb2: Manufacturer: Linux 3.13.0-48-generic ehci_hcd
[ 0.976085] usb usb2: SerialNumber: 0000:00:1d.7
[ 0.976164] hub 2-0:1.0: USB hub found
[ 0.976313] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.976332] uhci_hcd: USB Universal Host Controller Interface driver
[ 0.976419] uhci_hcd 0000:00:1a.0: new USB bus registered, assigned bus number 3
[ 0.976494] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001
[ 0.976497] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.976499] usb usb3: Product: UHCI Host Controller
[ 0.976501] usb usb3: Manufacturer: Linux 3.13.0-48-generic uhci_hcd
[ 0.976503] usb usb3: SerialNumber: 0000:00:1a.0
[ 0.976582] hub 3-0:1.0: USB hub found
[ 0.976739] uhci_hcd 0000:00:1a.1: new USB bus registered, assigned bus number 4
[ 0.976812] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001
[ 0.976814] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.976816] usb usb4: Product: UHCI Host Controller
[ 0.976818] usb usb4: Manufacturer: Linux 3.13.0-48-generic uhci_hcd
[ 0.976820] usb usb4: SerialNumber: 0000:00:1a.1
[ 0.976901] hub 4-0:1.0: USB hub found
[ 0.977059] uhci_hcd 0000:00:1a.2: new USB bus registered, assigned bus number 5
[ 0.977124] usb usb5: New USB device found, idVendor=1d6b, idProduct=0001
[ 0.977127] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.977129] usb usb5: Product: UHCI Host Controller
[ 0.977131] usb usb5: Manufacturer: Linux 3.13.0-48-generic uhci_hcd
[ 0.977133] usb usb5: SerialNumber: 0000:00:1a.2
[ 0.977212] hub 5-0:1.0: USB hub found
[ 0.977368] uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 6
[ 0.977432] usb usb6: New USB device found, idVendor=1d6b, idProduct=0001
[ 0.977435] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.977437] usb usb6: Product: UHCI Host Controller
[ 0.977439] usb usb6: Manufacturer: Linux 3.13.0-48-generic uhci_hcd
[ 0.977441] usb usb6: SerialNumber: 0000:00:1d.0
[ 0.977522] hub 6-0:1.0: USB hub found
[ 0.977684] uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 7
[ 0.977749] usb usb7: New USB device found, idVendor=1d6b, idProduct=0001
[ 0.977751] usb usb7: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.977753] usb usb7: Product: UHCI Host Controller
[ 0.977756] usb usb7: Manufacturer: Linux 3.13.0-48-generic uhci_hcd
[ 0.977757] usb usb7: SerialNumber: 0000:00:1d.1
[ 0.977840] hub 7-0:1.0: USB hub found
[ 0.977996] uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 8
[ 0.978070] usb usb8: New USB device found, idVendor=1d6b, idProduct=0001
[ 0.978073] usb usb8: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.978075] usb usb8: Product: UHCI Host Controller
[ 0.978077] usb usb8: Manufacturer: Linux 3.13.0-48-generic uhci_hcd
[ 0.978079] usb usb8: SerialNumber: 0000:00:1d.2
[ 0.978157] hub 8-0:1.0: USB hub found
[ 1.616106] usb 1-6: new high-speed USB device number 3 using ehci-pci
[ 1.759811] usb 1-6: New USB device found, idVendor=05ca, idProduct=18a0
[ 1.759816] usb 1-6: New USB device strings: Mfr=9, Product=2, SerialNumber=0
[ 1.759819] usb 1-6: Product: Integrated Webcam
[ 1.759822] usb 1-6: Manufacturer: CN0TX6137248792RA1R0
[ 2.000122] usb 4-1: new full-speed USB device number 2 using uhci_hcd
[ 2.177827] usb 4-1: New USB device found, idVendor=046d, idProduct=c52e
[ 2.177832] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2.177836] usb 4-1: Product: USB Receiver
[ 2.177839] usb 4-1: Manufacturer: Logitech
[ 2.203912] usbcore: registered new interface driver usbhid
[ 2.203916] usbhid: USB HID core driver
[ 2.212306] input: Logitech USB Receiver as /devices/pci0000:00/0000:00:1a.1/usb4/4-1/4-1:1.0/input/input7
[ 2.212406] hid-generic 0003:046D:C52E.0001: input,hidraw0: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-0000:00:1a.1-1/input0
[ 2.213991] input: Logitech USB Receiver as /devices/pci0000:00/0000:00:1a.1/usb4/4-1/4-1:1.1/input/input8
[ 2.214977] hid-generic 0003:046D:C52E.0002: input,hiddev0,hidraw1: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-0000:00:1a.1-1/input1
[ 24.805857] input: Integrated Webcam as /devices/pci0000:00/0000:00:1a.7/usb1/1-6/1-6:1.0/input/input15
[ 24.806809] usbcore: registered new interface driver uvcvideo
[ 24.806811] USB Video Class driver (1.1.1)
[ 25.368044] usb 6-2: new full-speed USB device number 2 using uhci_hcd
[ 25.540082] usb 6-2: New USB device found, idVendor=0da4, idProduct=0008
[ 25.540087] usb 6-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 25.540091] usb 6-2: Product: Polar Loop
[ 25.540094] usb 6-2: Manufacturer: Polar Electro Oy
[ 25.540097] usb 6-2: SerialNumber: 65A0E719
[ 25.551215] hid-generic 0003:0DA4:0008.0003: hiddev0,hidraw2: USB HID v1.10 Device [Polar Electro Oy Polar Loop] on usb-0000:00:1d.0-2/input0
最後我運行了lsmod
,結果顯示:
Module Size Used by
ctr 12905 1
ccm 17496 1
pci_stub 12550 1
vboxpci 22896 0
vboxnetadp 25636 0
vboxnetflt 27291 0
vboxdrv 299807 4 vboxnetadp,vboxnetflt,vboxpci
binfmt_misc 13140 1
rfcomm 53664 0
bnep 18895 2
bluetooth 342208 10 bnep,rfcomm
snd_hda_codec_hdmi 45440 1
dell_wmi 12665 0
sparse_keymap 13708 1 dell_wmi
dell_laptop 17808 0
dcdbas 14448 1 dell_laptop
uvcvideo 71309 0
videobuf2_vmalloc 13048 1 uvcvideo
videobuf2_memops 13170 1 videobuf2_vmalloc
videobuf2_core 39258 1 uvcvideo
videodev 108503 2 uvcvideo,videobuf2_core
arc4 12536 2
coretemp 13195 0
iwldvm 214950 0
mac80211 546067 1 iwldvm
kvm 388310 0
joydev 17101 0
serio_raw 13230 0
r852 17722 0
sm_common 16772 1 r852
nand 58760 2 r852,sm_common
nand_ecc 13136 1 nand
lpc_ich 16864 0
nand_bch 13067 1 nand
bch 17197 1 nand_bch
nand_ids 8547 1 nand
r592 17711 0
mtd 52813 2 nand,sm_common
radeon 1420720 4
memstick 16174 1 r592
snd_hda_codec_idt 48978 1
snd_seq_midi 13132 0
snd_seq_midi_event 14475 1 snd_seq_midi
snd_rawmidi 25135 1 snd_seq_midi
snd_hda_intel 42794 5
snd_hda_codec 164067 3 snd_hda_codec_hdmi,snd_hda_codec_idt,snd_hda_intel
snd_hwdep 13272 1 snd_hda_codec
snd_seq 55383 2 snd_seq_midi_event,snd_seq_midi
snd_pcm 85501 3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
ttm 80983 1 radeon
drm_kms_helper 48868 1 radeon
iwlwifi 152049 1 iwldvm
ir_lirc_codec 12869 0
drm 244037 6 ttm,drm_kms_helper,radeon
lirc_dev 19324 1 ir_lirc_codec
cfg80211 409394 3 iwlwifi,mac80211,iwldvm
i2c_algo_bit 13197 1 radeon
ir_mce_kbd_decoder 13030 0
snd_seq_device 14137 3 snd_seq,snd_rawmidi,snd_seq_midi
ir_sanyo_decoder 12727 0
snd_page_alloc 14230 2 snd_pcm,snd_hda_intel
ir_sony_decoder 12625 0
snd_timer 28584 2 snd_pcm,snd_seq
ir_jvc_decoder 12655 0
ir_rc6_decoder 12754 0
snd 60939 21 snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_idt,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec,snd_hda_intel,snd_seq_device,snd_seq_midi
ir_rc5_decoder 12622 0
shpchp 32128 0
soundcore 12600 1 snd
ir_nec_decoder 12787 0
wmi 18673 1 dell_wmi
rc_rc6_mce 12454 0
video 18903 0
ite_cir 24704 0
rc_core 26724 12
lirc_dev,ir_lirc_codec,ir_rc5_decoder,ir_nec_decoder,ir_sony_decoder,ir_mce_kbd_decoder,ir_jvc_decoder,ir_rc6_decoder,ir_sanyo_decoder,ite_cir,rc_rc6_mce
parport_pc 31981 0
mac_hid 13037 0
ppdev 17391 0
lp 13299 0
parport 40836 3 lp,ppdev,parport_pc
hid_generic 12492 0
usbhid 47070 0
hid 87604 2 hid_generic,usbhid
psmouse 91357 0
firewire_ohci 35529 0
sdhci_pci 18535 0
ahci 25579 4
libahci 27214 1 ahci
firewire_core 61867 1 firewire_ohci
tg3 152160 0
sdhci 37779 1 sdhci_pci
crc_itu_t 12627 1 firewire_core
ptp 18445 1 tg3
pps_core 18799 1 ptp
因此,我嘗試安裝 USB,但我不確定是否是這樣。
我在 ricoh 上也遇到了同樣的問題(但後來的一些 Ubuntu 版本,它會自動嵌入並且運作良好。)
也許我需要等待,但我有點不耐煩。 :(
我無法選擇使用 Windows 來查看極環的統計資料。
(Ubuntu 14.04,已安裝所有更新,戴爾電腦。)
答案1
正如 David Foester 所指出的,wine 本身不支援 USB 裝置。因此,雖然 Polar Flow 同步可以在 wine 下運行,但它不會看到該設備,因此無法運作。
Linux可以看到已連接的USB設備,並識別設備的類型,但如果沒有驅動軟體,它就無能為力。
可以使用虛擬機器:
首先,您需要 VirtualBox 和 Windows 版本。我使用了可用於測試的 Windows 版本https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/並按照安裝說明進行操作https://sites.google.com/site/easylinuxtipsproject/oldgrub
總結一下:
- 從 Oracle 安裝 VirtualBox
- 從微軟開發者工具(上面的連結)下載 IE11 for Win7 (x86) 大約 4 GB,所以需要很長時間
- 將自己加入 vboxusers 群組 (
sudo adduser your_own_username vboxusers
) - 執行 virtualbox,然後匯入
.ova
檔案。 - (可以選擇為新虛擬機器建立快照)
- 安裝 VirtualBox 來賓添加
- 將 Windows 區域設定和時間設定為您當地的時區。
- 在虛擬機器中,安裝 Polar Flow Sync(執行 IE 並前往 flow.polar.com/start)
- 重新啟動一切。
- 透過 USB 連接器將 Polar Device 連接至電腦。
- 使用“設備”->“USB”選單並選擇看起來最有可能的項目。 (我的設備名為“Polar Oy Electro Polar M200”)請參閱如何為 Virtualbox 設定 USB?以獲得更廣泛的說明。
- Flow 同步可識別與其連接的裝置並進行同步。然後IE打開,你可以看到你的活動,
這是使用 Virtualbox 5.1、Ubuntu 17.04 和 M200 手錶進行測試的。
答案2
Wine 中沒有 USB 裝置的一般支援。每個可以與 Wine 一起使用的 USB 裝置首先由 Linux 處理,並透過其他裝置類型特定的介面(HID、列印、檔案系統、音訊、視訊、網路等)暴露給 Wine 中執行的應用程式。
因此,我不希望健身追蹤器起作用。
答案3
- 插入手錶
- 打開終端機視窗
- 輸入“sudo lsusb”以顯示 USB 設備
- 您看到“Polar Electro Oy Loop”設備
- 寫“dmesg | grep -i usb”
- 搜尋Polar,稍後還會看到產品的序號,類似「 hid-generic 0003:0E24:0035.0003: hiddev0,hidraw0: USB HID v1.11 Device [Polar Electro Oy Polar M400] on usb-0000:00 : 14.0-2/輸入0"
- 那很好 :-)
- 我們必須建立一個規則來允許我們讀寫 hidraw0 設備。如果您輸入“ls -l /dev/”,您會看到 hidraw0 僅對 root 而言是偉大的
- 前往“/etc/udev/rules.d”,使用編輯器“sudo nano hid.rules”建立一個新文件
- add > KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0664", GROUP="dialout" < 我使用“dialout”進行測試。
- 儲存檔案
- 我們必須鍵入“sudo udevadm control --reload-rules”來重新載入規則
- 要檢查類型“ls -l /dev/”,您會看到 dialout 作為 Group by hidraw0
- 我們輸入“wine cmd”進入 wine cmd
- 你看到wine的版本 Microsoft Windows 6.1.7601 (3.0) (我在Q4wine windows 7中選擇)
- 我們啟動 wine hid 總線「net start winebus」另請參閱 WineHQ HID
- 我們切換到 Polar Syc 目錄並啟動 flowsync.exe
- Flow 應用程式正常啟動,幾秒鐘後您會看到手錶正在同步。
- 您從 Windows 中知道,瀏覽器將會開啟並且您必須登入。我斷開手錶的連接,然後再次連接以在我的流量帳戶中同步。
- 如果重新連接手錶,您可能必須重新啟動 Flow 應用程式。