我有一个新的极地环,并将其连接到 USB 端口。但这不起作用。
下载的应用程序、极地流同步运行良好....但我们需要将外围设备(极地环路)与应用程序同步,但似乎不起作用。
我尝试使用 Wine,这个应用程序似乎可以运行,只是我从未看到外围设备连接。使用 VM (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
- 从 Microsoft 开发人员工具下载适用于 Win7 (x86) 的 IE11(上面的链接)大约 4 GB,因此需要很长时间
- 将自己添加到 vboxusers 组(
sudo adduser your_own_username vboxusers
) - 运行virtualbox,并导入
.ova
文件。 - (可选择创建新虚拟机的快照)
- 安装 VirtualBox Guest Additions
- 将 Windows 区域设置和时间设置为您的当地时区。
- 在 VM 中,安装 Polar Flow Sync(运行 IE 并转到 flow.polar.com/start)
- 重新启动一切。
- 通过 USB 连接器将 Polar 设备连接到计算机。
- 使用设备->USB 菜单,选择最有可能的设备。(我的设备名为“Polar Oy Electro Polar M200”)参见如何为 Virtualbox 设置 USB?以获得更详细的说明。
- Flow sync 识别连接到它的设备并进行同步。然后 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 设备 [Polar Electro Oy Polar M400] on usb-0000:00:14.0-2 / input0”
- 那很好 :-)
- 我们必须创建一个规则,允许我们读写 hidraw0 设备。如果你输入“ls -l /dev/”,你会看到 hidraw0 只对 root 有效
- 转到“/etc/udev/rules.d”使用编辑器“sudo nano hid.rules”创建一个新文件
- 添加 > 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
- 流程应用程序正常启动,几秒钟后您会看到手表同步。
- 您从 Windows 知道浏览器将打开并且您必须登录。我断开了我的腕表并再次连接以同步我的流量帐户。
- 如果您重新连接手表,也许必须重新启动 Flow 应用程序。