connect as serial or sd card

Discussion related to "under the hood" OpenMV topics.
User avatar
iplayfast
Posts: 18
Joined: Thu Sep 22, 2016 1:38 pm

connect as serial or sd card

Postby iplayfast » Thu Sep 22, 2016 1:42 pm

When I connect the newly acquired openmv board, it opens up a sdcard (like on a phone). I was expecting it to be a serial port.
Running Linux Mint 18, 64bit. (similar to ubuntu).

Should I add rules to udev and if so, suggestions?

Dmesg shows:

Code: Select all

sd 16:0:0:0: [sdb] Attached SCSI removable disk
[61003.119068] FAT-fs (sdb1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[61189.000595] usb 3-1: USB disconnect, device number 126
[61189.000689] cdc_acm 3-1:1.0: failed to set dtr/rts
[61189.303810] usb 3-1: new full-speed USB device number 127 using xhci_hcd
[61189.437003] usb 3-1: New USB device found, idVendor=1209, idProduct=abd1
[61189.437007] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[61189.437008] usb 3-1: Product: OpenMV Virtual Comm Port in FS Mode
[61189.437010] usb 3-1: Manufacturer: OpenMV
[61189.437011] usb 3-1: SerialNumber: 000000000011
[61189.437523] cdc_acm 3-1:1.0: ttyACM0: USB ACM device
[61189.657704] usb 3-1: USB disconnect, device number 127
[61189.657819] cdc_acm 3-1:1.0: failed to set dtr/rts
[61190.207822] usb 3-1: new full-speed USB device number 7 using xhci_hcd
[61190.337083] usb 3-1: New USB device found, idVendor=1209, idProduct=abd1
[61190.337086] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[61190.337088] usb 3-1: Product: OpenMV Virtual Comm Port in FS Mode
[61190.337089] usb 3-1: Manufacturer: OpenMV
[61190.337090] usb 3-1: SerialNumber: 000000000011
[61190.337619] cdc_acm 3-1:1.0: ttyACM0: USB ACM device
[61190.337866] usb-storage 3-1:1.2: USB Mass Storage device detected
[61190.338019] scsi host17: usb-storage 3-1:1.2
[61191.336206] scsi 17:0:0:0: Direct-Access     uPy      microSD Flash    1.00 PQ: 0 ANSI: 2
[61191.336497] sd 17:0:0:0: Attached scsi generic sg2 type 0
[61191.336653] sd 17:0:0:0: [sdb] 97 512-byte logical blocks: (49.7 kB/48.5 KiB)
[61191.336780] sd 17:0:0:0: [sdb] Write Protect is off
[61191.336782] sd 17:0:0:0: [sdb] Mode Sense: 00 00 00 00
[61191.336948] sd 17:0:0:0: [sdb] Asking for cache data failed
[61191.336950] sd 17:0:0:0: [sdb] Assuming drive cache: write through
[61191.342311]  sdb: sdb1
[61191.343314] sd 17:0:0:0: [sdb] Attached SCSI removable disk
[61191.478740] FAT-fs (sdb1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
should I be worrying about the failed to set dtr/rts?
Last edited by iplayfast on Thu Sep 22, 2016 1:59 pm, edited 1 time in total.
User avatar
kwagyeman
Posts: 4430
Joined: Sun May 24, 2015 2:10 pm

Re: connect as serial or sd card

Postby kwagyeman » Thu Sep 22, 2016 1:53 pm

You should see a USB can serial port appear. It also comes up as an SD card too.
Nyamekye,
User avatar
kwagyeman
Posts: 4430
Joined: Sun May 24, 2015 2:10 pm

Re: connect as serial or sd card

Postby kwagyeman » Thu Sep 22, 2016 1:54 pm

Ibrahim, any thoughts?
Nyamekye,
User avatar
iabdalkader
Posts: 1214
Joined: Sun May 24, 2015 3:53 pm

Re: connect as serial or sd card

Postby iabdalkader » Thu Sep 22, 2016 2:59 pm

You should see both, a mass storage device and CDC. Here's my dmesg:

Code: Select all

[  498.774299] usb 1-1.2: new full-speed USB device number 6 using ehci-pci
[  498.877266] cdc_acm 1-1.2:1.0: ttyACM0: USB ACM device
[  498.878393] usbcore: registered new interface driver cdc_acm
[  498.878398] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[  499.098643] usb 1-1.2: USB disconnect, device number 6
[  499.540975] usb 1-1.2: new full-speed USB device number 7 using ehci-pci
[  499.631728] cdc_acm 1-1.2:1.0: ttyACM0: USB ACM device
[  499.653973] usb-storage 1-1.2:1.2: USB Mass Storage device detected
[  499.654353] scsi host6: usb-storage 1-1.2:1.2
[  499.654475] usbcore: registered new interface driver usb-storage
[  499.656115] usbcore: registered new interface driver uas
[  500.659555] scsi 6:0:0:0: Direct-Access     uPy      microSD Flash    1.00 PQ: 0 ANSI: 2
[  500.662247] sd 6:0:0:0: [sdb] 352 512-byte logical blocks: (180 kB/176 KiB)
[  500.663142] sd 6:0:0:0: [sdb] Write Protect is off
[  500.663152] sd 6:0:0:0: [sdb] Mode Sense: 00 00 00 00
[  500.664043] sd 6:0:0:0: [sdb] Asking for cache data failed
[  500.664052] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[  500.675948]  sdb: sdb1
[  500.681509] sd 6:0:0:0: [sdb] Attached SCSI removable disk
[  500.872983] FAT-fs (sdb1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
User avatar
iplayfast
Posts: 18
Joined: Thu Sep 22, 2016 1:38 pm

Re: connect as serial or sd card

Postby iplayfast » Thu Sep 22, 2016 3:02 pm

Thanks, I do get both. Was getting confused by the ide not connecting.
I can connect with arduino and type some python commands. ide want's to update firmware but can't seem to do it, so I'm stuck at that point.
User avatar
kwagyeman
Posts: 4430
Joined: Sun May 24, 2015 2:10 pm

Re: connect as serial or sd card

Postby kwagyeman » Thu Sep 22, 2016 4:11 pm

Just install the firmware development environment. Then you can use the dfu script to flash the device:

https://github.com/openmv/openmv/wiki/F ... evelopment
Nyamekye,
User avatar
kwagyeman
Posts: 4430
Joined: Sun May 24, 2015 2:10 pm

Re: connect as serial or sd card

Postby kwagyeman » Thu Sep 22, 2016 4:11 pm

Note: Skip installing the udev rules. The new IDE doesn't need them.
Nyamekye,

Return to “Technical Discussion”

Who is online

Users browsing this forum: No registered users and 8 guests