Page 1 of 2

Raspberry Pi 2, broken

Posted: 11 Jun 2015, 18:33
by admin
Image

Bought a new computer 8-)
Got some trouble getting it working with already owned microSD cards.

All the following mentioned MicroSD cards were formatted with the SDFormatter from https://www.sdcard.org/downloads/formatter_4/
With the options: 'OverWrite ERASE' and "FORMAT SIZE ADJUSTMENT" to "ON".

--
Raspberry default NOOBS install won't work on:

MicroSDHC 32GB Class 10 (whitelabel?, it never boots from several of these same cards, i tried 3).
And they all (3) work fine in prof video equipment, simple cam gadget or phones.
---------------------------
Image

The only MicroSDHC card which DOES work:
Kodak MicroSDHC 4GB Class 4.
---------------------------
Image
(It looks a 1GB card, but thats optical, it's a 4GB card, missing part of the '4'.)
But this has only 200MB free after complete Rasbian setup.

PNY MicroSDHC 32GB Class 10
---------------------------
Image

It will boot, but failes to install.
On RPi2:

- Clearing existing EBR
- Raspbian: Creating partition entry

Followed by:
Image

Found out that reformatting the card with the mentioned SDFormatter, does NOT work correctly within Windows XP, as after this the card seems still NOT formatted? And needs a Windows XP format before files can be copied to the card.

Bought this card especially for the Raspberry for 20 euro's and still not working?
This cost me more on SD cards then the Raspberry itself?

Tried once again, but getting other error messages:
Image

Used a working SD-adapter and other cardreader, still same messages came up, even the writing of the card goes during 'Clearing existing EBR'?
Image

Next used the HP-SD formatting tool, which (in my opinion) does a cleaner format as the setup went 1 time succesfully, however the 1st reboot showed too much errors and files not found, it did not boot at all.

Tried a (non quick) format with the HP tool and start all over again ...
Image

All different tries result in different error messages like: Not able to write to FAT, or reserved sector, mounting errors, etc.

Anyway: I did mention to fix all of these errors!

Used a special program (RMPREPUSB v2.1.722) to remove the MBR from the card. (http://www.rmprepusb.com/tutorials/raspberry-pi-rpi)
Quick format the card and write noobs files to the card.
Next insert de card into RPi2 and start it up.
Raspberry tells it does not see a MBR and asks to write one. Do so!
It creates new MBR and ask to re-copy the noobs files to the card.
Power off RPi2, take card out and copy the noobs files (again) to the card and boot RPi2 again with that card.
Now it does not fail anywhere! (although copying goes slow, but could be card-manufacture related)

So it looks like the (most) issues with microSD cards are MBR related!
Windows XP and the desired format program SDFormatter does not (re)set the MBR the right way!
Remove MBR from microSD card, insert it in RPi2 and let it (re)write new MBR fix this.

--

Re: Raspberry Pi 2

Posted: 24 Jun 2015, 09:36
by admin
As the above process only worked 'some' times, it looks alot like NOOBS does NOT correctly (re)format any microSD card!

Even when i remove the MBR (i.e. FAT table), NOOBS does recognize that and rewrites a new FAT, but even then all OS'es installed by NOOBS do NOT work.
Maybe they do work, but try a reboot or power down and up again, most OS'es (Raspbian & OpenELEC) will crash on mounting issues.

I've seen this on PNY 32GB Class10, Samsung 16GB Class10 (HC1), or unlabeled 32GB Class10 cards.
Best way to boot RPi2, take a good .img file of any OS and write them with RMPrepUSB, 'File to Drive' option.

It won't give you the NOOBS multiboot functionality, but this works best!

Re: Raspberry Pi 2

Posted: 25 Dec 2015, 00:41
by admin
Only use GOOD microSD cards...
Found out that some 'cheap' ones only writes about 2.9GB but says 32GB :)
'What else ...' for about $5

DG.

Re: Raspberry Pi 2 +3.5inch touch LCD

Posted: 25 Dec 2015, 00:59
by admin
RPI with Raspbian 4.1.13 + LCD 3.5inch with touch (WaveShare Spotpear)

After reading a lot about getting my 3.5inch LCD working on my RPi2 (again, as my older HDD crashed during it's last backup, pitty a bit).
I've found a way without installing additional driver firmware, as most is already in kernel 4.1.13
Just some linear libraries I've installed to get all working nicely.

Also a minor physical 'error' could occure.
If there is too much space between LCD screen & PCB (should be glued?)
I just pressed around, but not too hard, you could break the glass!
PCB & LCD looked 'sitting' better, as i already checked the flat-cable connection several times before.

Used:
- Raspberry Pi 2 Model B (Seen above), with latest Raspbian image (4.1.13) from http://www.raspberrypi.org
- 3.5inch LCD WaveShare Spotpear
Image Image

Adjusting the code:

Added:

Code: Select all

fbcon=map:1 fbcon=font:ProFont6x11 logo.nologo fbtft_device.custom fbtft_device.name=flexfb fbtft_device.gpios=dc:24,reset:25 fbtft_device.bgr=1 fbtft_device.speed=16000000 
to /boot/cmdline.txt

..

Last part of /boot/config.txt is now:

Code: Select all

# Enable audio (loads snd_bcm2835)
dtparam=audio=on
dtparam=spi=on
dtparam=i2c_arm=on

# DG added:
device_tree=bcm2709-rpi-2-b.dtb
device_tree_param=i2s=on
dtoverlay=ads7846,speed=500000,penirq=17,speed=500000,swapxy=1
device_tree_overlay=piscreen,fbtft_device.debug=3,speed=16000000,rotate=90
And screen activate normally during next boot ;)
(If not, some other parameters should be tested / checked, for example flexfb instead of piscreen )

To get 'startx' on LCD, only change 'fb0' to 'fb1' in the file: /usr/share/X11/xorg.conf.d/99-fbturbo.conf


Rotate screen
Change in /boot/config.txt:
device_tree_overlay=piscreen,fbtft_device.debug=3,speed=16000000,rotate=90
to
device_tree_overlay=piscreen,fbtft_device.debug=3,speed=16000000,rotate=270


Rotate touch functionality
Now only to swap left right on touch ...

Installed libts-bin (sudo apt-get install libts-bin)

Every time to use ts_calibrate, use first next 2 lines before use on CLI:

Code: Select all

export TSLIB_TSDEVICE=/dev/input/event0
export TSLIB_FBDEVICE=/dev/fb1
NOTE: event0 could be also event1 or event2


This works, adding

Code: Select all

Section "InputClass"
        Identifier      "evdev touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver          "evdev
        Option          "InvertY" "true"
        Option          "InvertX" "true"
        Option          "GrabDevice" "True"
EndSection

to file: /usr/share/X11/xorg.conf.d/99-fbturbo.conf

Even better adjustment ( & added Option “InvertX” “true”, above), add following to end of same file:

Code: Select all

Section "InputClass"
        Identifier      "calibration"
        MatchProduct    "ADS7846 Touchscreen"
        Option          "Calibration" "3900 240 240 3900"
EndSection

Alignment doesn't not work nicely on 3.18.13 WaveShave LCD.
Have to investigate further (touxh xy is ok after reboot though)

!!!!

To test:

Can we combine last 2 sections of /usr/share/X11/xorg.conf.d/99-fbturbo.conf
Ie. 2 Identifiers in 1 InputClass?

!!!!

Mainly used articles / sites:
- https://github.com/notro
- http://www.circuitbasics.com/setup-lcd- ... pberry-pi/
- http://www.raspberrypi.org/forums
- http://futurice.com/blog/id-like-to-hav ... d-on-my-pi


DG.

Re: Raspberry Pi 2 + wlan adapter

Posted: 25 Dec 2015, 18:42
by admin
Getting the (cheap & already 1 year old) wlan usb adapter working on the RPi was more easy.

Image
Took about 1 hour reading and testing and got it working on Raspbian 4.1.13

At least you need to install (some) mt760x drivers...

On the standard Rasbian 4.1.13 it runs quit easily as the used HW drivers are already there.
The WaveShare 3.18.13 version was some more trouble due to Linux version levels, but found a site with most versions available. (2nd on the list below) The link goes directly to page 14 on with in the first article there is a link to version 3.18.13-784, which i used.

Used info:
- http://blog.wenzlaff.de/?p=4805
- https://www.raspberrypi.org/forums/view ... &start=325

DG.

Re: Raspberry Pi 2

Posted: 25 Sep 2016, 22:06
by admin
Now this is funny ...

I've bought -last year- 3 small photo / video-camera's from ebay @ such a low prize i even cant get their real names, but i can get their brand code.
Image
However, there's 1 button on those camera's (and a MicroSD slot with 32GB) to turn them on, 1 press on button is a photo, 1 'long' press should start video (and audio?) recording.
So far so good! First i used 32GB 'very el cheapo' MicroSD's from ebay, they only hold around 4GB and not very stable tho...
Anyway i want 2 or 3 of those cams as USBcam, and i plugged 1 into my raspberry 2B, and see with 'lsusb':
--
Bus 001 Device 005: ID 1b3f:0c52 Generalplus Technology Inc. 808 Camera #9 (mass storage mode)
--

Hmm, that is not what i want ... Oh, wait their's a button on those small things, let's press it!
And next 'lsusb' command shows:
--
Bus 001 Device 006: ID 1b3f:2002 Generalplus Technology Inc. 808 Camera #9 (web-cam mode)
--

Hahaha, found it!
But wait, whats that? Another manuafactor?

http://dumb-looks-free.blogspot.nl/2014 ... lplus.html
Explains alot ...
We go on :)

http://blog.danielkerris.com/?p=225
This we did not get yet working, so WIP (Work In Progress)
...
DG.

Re: Raspberry Pi 2

Posted: 26 Sep 2016, 21:10
by admin
What the idea is:

Code: Select all

HOME                                           CAR
Zoneminder with several cams                   Raspberry with 1 or several cams
Pass CAR data to HOME (ZoneMinder) data, when CAR is in Wifi range and engine shuts down.

I already have ZoneMinder running locally @ home, with several cams.
Now the raspberry is in my car and, let's persume, i'm driving outside my Wifi range (most probably :) )
The raspberry collects 2 (or more) USB (or direct) connected cams.
This data is being transferred to ZoneMinders DB, and kept their as long is needed, when i park my car within my Wifi range ;)
ZoneMinder has alot of features to delete data after xxx days etc (as long as they are not archived).

So when i park my car, turn off the engine, raspberry stays on & checks Wifi.
When in range, it transfer its data to ZoneMinder / NAS.
After check if data is excepted & ok, raspberry clears its buffer and shuts down 4 next drive ;)

Q's
---
- Should motion detect be enabled on a car-cam?
When drive then record.

- Should the rasbperry 'stream' data to ZoneMinder, so that ZoneMinder can do motion detection when data comes in?

- Is CAR data only long streams?

- Could the raspberry stay on, functioning as Wireless WebCams (on street)?

- Can the button-press (to make the cam a usbcam) be overruled?

----
As stated here: http://dumb-looks-free.blogspot.nl/2014 ... lplus.html
Playing around with this cam, it needs 'quirks=2' to get it working, otherwise the following dmesg log:

Code: Select all

[  201.042329] usb 1-1.5: USB disconnect, device number 5
[  201.790729] usb 1-1.5: new high-speed USB device number 6 using dwc_otg
[  201.892125] usb 1-1.5: New USB device found, idVendor=1b3f, idProduct=2002
[  201.892149] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  201.892160] usb 1-1.5: Product: GENERAL - UVC
[  201.892171] usb 1-1.5: Manufacturer: GENERAL
[  201.928765] media: Linux media interface: v0.10
[  201.953419] Linux video capture interface: v2.00
[  201.971800] usbcore: registered new interface driver snd-usb-audio
[  201.987791] uvcvideo: Found UVC 1.00 device GENERAL - UVC  (1b3f:2002)
[  201.988447] uvcvideo: UVC non compliance - GET_DEF(PROBE) not supported. Enabling workaround.
[  201.989300] input: GENERAL - UVC  as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/input/input1
[  201.989794] usbcore: registered new interface driver uvcvideo
[  201.989811] USB Video Class driver (1.1.1)
[  208.252149] uvcvideo: Failed to query (130) UVC probe control : -32 (exp. 26).
[  208.252703] uvcvideo: Failed to query (130) UVC probe control : -32 (exp. 26).
[  211.899851] uvcvideo: Failed to query (130) UVC probe control : -32 (exp. 26).
[  211.900174] uvcvideo: Failed to query (130) UVC probe control : -32 (exp. 26).
[  281.481017] uvcvideo: Failed to query (130) UVC probe control : -32 (exp. 26).
[  281.481336] uvcvideo: Failed to query (130) UVC probe control : -32 (exp. 26).
[  281.481608] uvcvideo: Failed to query (130) UVC probe control : -32 (exp. 26).
[  281.481881] uvcvideo: Failed to query (130) UVC probe control : -32 (exp. 26).
[  281.482149] uvcvideo: Failed to query (130) UVC probe control : -32 (exp. 26).
[  281.482404] uvcvideo: Failed to query (130) UVC probe control : -32 (exp. 26).
[  281.482673] uvcvideo: Failed to query (130) UVC probe control : -32 (exp. 26).
[  281.482958] uvcvideo: Failed to query (130) UVC probe control : -32 (exp. 26).
[  281.483232] uvcvideo: Failed to query (130) UVC probe control : -32 (exp. 26).
[  285.548521] uvcvideo: Failed to query (130) UVC probe control : -32 (exp. 26).
[  285.549259] uvcvideo: Failed to query (130) UVC probe control : -32 (exp. 26).
[  285.549583] uvcvideo: Failed to query (130) UVC probe control : -32 (exp. 26).
After Unload driver and reload to fix quirks (as in the article above), we see the following log:

Code: Select all

[   25.194620] usbcore: deregistering interface driver uvcvideo
[   32.737766] media: Linux media interface: v0.10
[   32.754210] Linux video capture interface: v2.00
[   32.834018] uvcvideo: Found UVC 1.00 device GENERAL - UVC  (1b3f:2002)
[   32.834045] uvcvideo: Forcing device quirks to 0x2 by module parameter for testing purpose.
[   32.834055] uvcvideo: Please report required quirks to the linux-uvc-devel mailing list.
[   32.834731] uvcvideo: UVC non compliance - GET_DEF(PROBE) not supported. Enabling workaround.
[   32.835886] input: GENERAL - UVC  as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/input/input2
[   32.836593] usbcore: registered new interface driver uvcvideo
[   32.836612] USB Video Class driver (1.1.1)
And the full options log of this working cam:

Code: Select all

lsusb -s 001:006 -v

Bus 001 Device 006: ID 1b3f:2002 Generalplus Technology Inc. 808 Camera #9 (web-cam mode)
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass          239 Miscellaneous Device
  bDeviceSubClass         2 ?
  bDeviceProtocol         1 Interface Association
  bMaxPacketSize0        64
  idVendor           0x1b3f Generalplus Technology Inc.
  idProduct          0x2002 808 Camera #9 (web-cam mode)
  bcdDevice            1.00
  iManufacturer           1
  iProduct                2
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          306
    bNumInterfaces          4
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xc0
      Self Powered
    MaxPower              200mA
    Interface Association:
      bLength                 8
      bDescriptorType        11
      bFirstInterface         0
      bInterfaceCount         2
      bFunctionClass         14 Video
      bFunctionSubClass       3 Video Interface Collection
      bFunctionProtocol       0
      iFunction               2
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      1 Video Control
      bInterfaceProtocol      0
      iInterface              2
      VideoControl Interface Descriptor:
        bLength                13
        bDescriptorType        36
        bDescriptorSubtype      1 (HEADER)
        bcdUVC               1.00
        wTotalLength           57
        dwClockFrequency        6.000000MHz
        bInCollection           1
        baInterfaceNr( 0)       1
      VideoControl Interface Descriptor:
        bLength                17
        bDescriptorType        36
        bDescriptorSubtype      2 (INPUT_TERMINAL)
        bTerminalID             1
        wTerminalType      0x0201 Camera Sensor
        bAssocTerminal          0
        iTerminal               0
        wObjectiveFocalLengthMin      0
        wObjectiveFocalLengthMax      0
        wOcularFocalLength            0
        bControlSize                  2
        bmControls           0x00000000
      VideoControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      3 (OUTPUT_TERMINAL)
        bTerminalID             3
        wTerminalType      0x0101 USB Streaming
        bAssocTerminal          0
        bSourceID               5
        iTerminal               4
      VideoControl Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      4 (SELECTOR_UNIT)
        bUnitID                 4
        bNrInPins               1
        baSource( 0)            1
        iSelector               0
      VideoControl Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      5 (PROCESSING_UNIT)
      Warning: Descriptor too short
        bUnitID                 5
        bSourceID               4
        wMaxMultiplier          0
        bControlSize            2
        bmControls     0x00000001
          Brightness
        iProcessing             0
        bmVideoStandards     0x a
          NTSC - 525/60
          SECAM - 625/50
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval              10
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0
      iInterface              0
      VideoStreaming Interface Descriptor:
        bLength                            14
        bDescriptorType                    36
        bDescriptorSubtype                  1 (INPUT_HEADER)
        bNumFormats                         1
        wTotalLength                       79
        bEndPointAddress                  135
        bmInfo                              0
        bTerminalLink                       3
        bStillCaptureMethod                 2
        bTriggerSupport                     1
        bTriggerUsage                       0
        bControlSize                        1
        bmaControls( 0)                    11
      VideoStreaming Interface Descriptor:
        bLength                            11
        bDescriptorType                    36
        bDescriptorSubtype                  6 (FORMAT_MJPEG)
        bFormatIndex                        1
        bNumFrameDescriptors                1
        bFlags                              1
          Fixed-size samples: Yes
        bDefaultFrameIndex                  1
        bAspectRatioX                       0
        bAspectRatioY                       0
        bmInterlaceFlags                 0x00
          Interlaced stream or variable: No
          Fields per frame: 1 fields
          Field 1 first: No
          Field pattern: Field 1 only
          bCopyProtect                      0
      VideoStreaming Interface Descriptor:
        bLength                            38
        bDescriptorType                    36
        bDescriptorSubtype                  7 (FRAME_MJPEG)
        bFrameIndex                         1
        bmCapabilities                   0x02
          Still image unsupported
          Fixed frame-rate
        wWidth                            640
        wHeight                           480
        dwMinBitRate                   912384
        dwMaxBitRate                   912384
        dwMaxVideoFrameBufferSize      614400
        dwDefaultFrameInterval         333333
        bFrameIntervalType                  0
        dwMinFrameInterval             333333
        dwMaxFrameInterval             333333
        dwFrameIntervalStep                 0
      VideoStreaming Interface Descriptor:
        bLength                            10
        bDescriptorType                    36
        bDescriptorSubtype                  3 (STILL_IMAGE_FRAME)
        bEndpointAddress                    0
        bNumImageSizePatterns               1
        wWidth( 0)                        640
        wHeight( 0)                       480
        bNumCompressionPatterns             1
      VideoStreaming Interface Descriptor:
        bLength                             6
        bDescriptorType                    36
        bDescriptorSubtype                 13 (COLORFORMAT)
        bColorPrimaries                     0 (Unspecified)
        bTransferCharacteristics            0 (Unspecified)
        bMatrixCoefficients                 0 (Unspecified)
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       1
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x87  EP 7 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               1
    Interface Association:
      bLength                 8
      bDescriptorType        11
      bFirstInterface         2
      bInterfaceCount         2
      bFunctionClass          1 Audio
      bFunctionSubClass       0
      bFunctionProtocol       0
      iFunction               4
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass         1 Audio
      bInterfaceSubClass      1 Control Device
      bInterfaceProtocol      0
      iInterface              4
      AudioControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      1 (HEADER)
        bcdADC               1.00
        wTotalLength           38
        bInCollection           1
        baInterfaceNr( 0)       3
      AudioControl Interface Descriptor:
        bLength                12
        bDescriptorType        36
        bDescriptorSubtype      2 (INPUT_TERMINAL)
        bTerminalID             3
        wTerminalType      0x0201 Microphone
        bAssocTerminal          0
        bNrChannels             1
        wChannelConfig     0x0000
        iChannelNames           0
        iTerminal               0
      AudioControl Interface Descriptor:
        bLength                 8
        bDescriptorType        36
        bDescriptorSubtype      6 (FEATURE_UNIT)
        bUnitID                 5
        bSourceID               3
        bControlSize            1
        bmaControls( 0)      0x03
          Mute Control
          Volume Control
        iFeature                0
      AudioControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      3 (OUTPUT_TERMINAL)
        bTerminalID             4
        wTerminalType      0x0101 USB Streaming
        bAssocTerminal          0
        bSourceID               5
        iTerminal               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        3
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0
      iInterface              0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        3
      bAlternateSetting       1
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0
      iInterface              0
      AudioStreaming Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           4
        bDelay                  1 frames
        wFormatTag              1 PCM
      AudioStreaming Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             1
        bSubframeSize           2
        bBitResolution         16
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        22050
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x86  EP 6 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x00c0  1x 192 bytes
        bInterval               4
        bRefresh                0
        bSynchAddress           0
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         0 Undefined
          wLockDelay              0 Undefined
Another cam, Logitech, added gives next log:

Code: Select all

[ 7201.783756] usb 1-1.4: new full-speed USB device number 7 using dwc_otg
[ 7201.890238] usb 1-1.4: New USB device found, idVendor=046d, idProduct=08f6
[ 7201.890267] usb 1-1.4: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 7201.890278] usb 1-1.4: Product: Camera
[ 7201.944573] gspca_main: v2.14.0 registered
[ 7201.951766] gspca_main: STV06xx-2.14.0 probing 046d:08f6
[ 7201.951802] gspca_stv06xx: st6422 sensor detected
[ 7202.224530] input: STV06xx as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/input/input3
[ 7202.225390] usbcore: registered new interface driver STV06xx
..
DG

Re: Raspberry Pi 2

Posted: 02 Oct 2016, 22:15
by admin
So far so good,
Only with 2 same camera's it does work -ASCII video- with putty & mplayer command,
But on 3.5LCD with SMplayer only /dev/video0 is shown, also when using /dev/video1.

Logs from putty working session:
commands: lsusb, mplayer tv:// -tv driver=v4l2:device=/dev/video0, mplayer tv:// -tv driver=v4l2:device=/dev/video1

Code: Select all

pi@DG-Raspberrypi:~ $ lsusb
Bus 001 Device 008: ID 1b3f:2002 Generalplus Technology Inc. 808 Camera #9 (web-cam mode)
Bus 001 Device 007: ID 1b3f:2002 Generalplus Technology Inc. 808 Camera #9 (web-cam mode)
Bus 001 Device 004: ID 148f:760b Ralink Technology, Corp.
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

pi@DG-Raspberrypi:~ $ mplayer tv:// -tv driver=v4l2:device=/dev/video0
MPlayer2 2.0-728-g2c378c7-4+b1 (C) 2000-2012 MPlayer Team
Cannot open file '/home/pi/.mplayer/input.conf': No such file or directory
Failed to open /home/pi/.mplayer/input.conf.
Cannot open file '/etc/mplayer/input.conf': No such file or directory
Failed to open /etc/mplayer/input.conf.

Playing tv://.
Detected file format: TV
Selected driver: v4l2
 name: Video 4 Linux 2 input
 author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
 comment: first try, more to come ;-)
v4l2: your device driver does not support VIDIOC_G_STD ioctl, VIDIOC_G_PARM was used instead.
Selected device: GENERAL - UVC
 Capabilities:  video capture  streaming
 supported norms:
 inputs: 0 = Camera 1;
 Current input: 0
 Current format: MJPEG
tv.c: norm_from_string(pal): Bogus norm parameter, setting default.
v4l2: ioctl enum norm failed: Inappropriate ioctl for device
Error: Cannot set norm!
Selected input hasn't got a tuner!
v4l2: ioctl set mute failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
vo: couldn't open the X11 display ()!
vo: couldn't open the X11 display ()!
vo: couldn't open the X11 display ()!
vo: couldn't open the X11 display ()!
vo: couldn't open the X11 display ()!
[VO_SDL] SDL initialization failed: Unable to open a console terminal.

Exiting... (Quit)

pi@DG-Raspberrypi:~ $ mplayer tv:// -tv driver=v4l2:device=/dev/video1
MPlayer2 2.0-728-g2c378c7-4+b1 (C) 2000-2012 MPlayer Team
Cannot open file '/home/pi/.mplayer/input.conf': No such file or directory
Failed to open /home/pi/.mplayer/input.conf.
Cannot open file '/etc/mplayer/input.conf': No such file or directory
Failed to open /etc/mplayer/input.conf.

Playing tv://.
Detected file format: TV
Selected driver: v4l2
 name: Video 4 Linux 2 input
 author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
 comment: first try, more to come ;-)
v4l2: your device driver does not support VIDIOC_G_STD ioctl, VIDIOC_G_PARM was used instead.
Selected device: GENERAL - UVC
 Capabilities:  video capture  streaming
 supported norms:
 inputs: 0 = Camera 1;
 Current input: 0
 Current format: MJPEG
tv.c: norm_from_string(pal): Bogus norm parameter, setting default.
v4l2: ioctl enum norm failed: Inappropriate ioctl for device
Error: Cannot set norm!
Selected input hasn't got a tuner!
v4l2: ioctl set mute failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
vo: couldn't open the X11 display ()!
vo: couldn't open the X11 display ()!
vo: couldn't open the X11 display ()!
vo: couldn't open the X11 display ()!
vo: couldn't open the X11 display ()!
[VO_SDL] SDL initialization failed: Unable to open a console terminal.

Exiting... (Quit)
From within a putty session, use the following:

Code: Select all

DISPLAY=:0 mplayer tv:// -tv driver=v4l2:device=/dev/video0
Then the right video output is sent to the 3.5LCD :)
For even video0 as well as video1, wonder why this does not work within SMplayer GUI.

..
DG

Re: Raspberry Pi 2

Posted: 11 Dec 2016, 22:42
by admin
Working 3.5" touch-screen on youtube:

youtu.be/Fc9Qw-zo7S4

Some pictures below with cases for (touch screen) Raspberry in Lego.
Image

Image

Image

DG.

Re: Raspberry Pi 2

Posted: 21 Dec 2016, 23:02
by admin
Designed on Stud.io:
Image

With render functionality:
Image

DG.