[SailfishDevel] No QSerialPort

christopher.lamb at thurweb.ch christopher.lamb at thurweb.ch
Thu Mar 27 09:51:53 UTC 2014


Hi Wim

Sailfisch made me smile ...

Grüsse

Chris

Zitat von "Wim de Vries" <wsvries at xs4all.nl>:

> Thanks Chris and others,
> Indeed I need to use an external USB GPS and some other USB sensors.
>
> All communicate via serial ports.
> I gave the dmesg output txt as it is on other linux/MeeGo devices to  
> show that I am not talking rocket science (simply plug in and use  
> ttyUSB0 for (qt)serial communication).
> Never heard about OTG, and never had to use it for my app.
> Don't know why is there a difference between Sailfisch and MeeGo.
>
> My questions are now:
>
> Can I enable power on the USB port? (escape would be a battery  
> powered USB hub)
> Will Sailfish automatically set a up a /dev/ttyUSBsomething when the  
> device (like an external GPS) is plugged in?
>
> I will rephrase my question about adding the Qtserialport as a more  
> general question on howto add Qt modules (also in the final package).
>
>
> Thanks.
> r
> wim
>
>
>
>
>
>
> On 03/27/2014 07:06 AM, christopher.lamb at thurweb.ch wrote:
>> Hi Philippe
>>
>> From this and other threads going back to the very early days of  
>> this mailing list it is very clear that Wim wants to connect an  
>> external GPS unit to his Jolla via cable (usb / serial) for use in  
>> the cockpit of a glider.
>>
>> HtH
>>
>> Chris
>>
>>
>> Zitat von "Philippe De Swert" <philippe.deswert at jolla.com>:
>>
>>> Hi,
>>>
>>> As this is getting very confused and we are mixing connecting  
>>> devices to the Jolla and connecting the Jolla to the pc.
>>>
>>> So which one is it?
>>>
>>> On 26/03/14 22:11, Wim de Vries wrote:
>>>> Thank you guys.
>>>> Indeed devel-su works.
>>>> I have attached the devices, but the first problem is that the
>>>> connection does not supply power (the devices stay dead).
>>>
>>> So you connected some device to your Jolla?
>>>
>>>> As far as I know, a usb connection should always have power, but it is a
>>>> bit beyond my kowledge. Do I need another plug?
>>>
>>> This is not true. All depends on context, what you plug into what etc...
>>>
>>> In general if you plug in a device into a USB host (like your  
>>> average USB port on your pc/laptop) you should be able to expect  
>>> power from it.
>>>
>>> In the case of a phone this is usually a USB device, so it expects power.
>>>
>>> And in the OTG case it gets complicated. Here the device is able  
>>> to switch between host and device mode. And will supply power if  
>>> it is playing host.
>>>
>>>> On other linux/MeeGo systems there was always power...
>>>> and dmesg would give:
>>>>
>>>> [   31.959468] usb 3-2.1.4: new full-speed USB device number 7 using
>>>> xhci_hcd
>>>> [   31.977423] usb 3-2.1.4: New USB device found, idVendor=10c4,
>>>> idProduct=ea60
>>>> [   31.977434] usb 3-2.1.4: New USB device strings: Mfr=1, Product=2,
>>>> SerialNumber=3
>>>> [   31.977440] usb 3-2.1.4: Product: CP2102 USB to UART Bridge Controller
>>>> [   31.977445] usb 3-2.1.4: Manufacturer: Silicon Labs
>>>> [   31.977450] usb 3-2.1.4: SerialNumber: 0001
>>>> [   31.992330] usbcore: registered new interface driver usbserial
>>>> [   31.992343] usbcore: registered new interface driver usbserial_generic
>>>> [   31.992355] USB Serial support registered for generic
>>>> [   31.992361] usbserial: USB Serial Driver core
>>>> [   31.992942] usbcore: registered new interface driver cp210x
>>>> [   31.992955] USB Serial support registered for cp210x
>>>> [   31.992991] cp210x 3-2.1.4:1.0: cp210x converter detected
>>>> [   32.063473] usb 3-2.1.4: reset full-speed USB device number 7 using
>>>> xhci_hcd
>>>> [   32.079934] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called
>>>> with disabled ep ffff8801debc38c0
>>>> [   32.079947] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called
>>>> with disabled ep ffff8801debc3880
>>>> [   32.080450] usb 3-2.1.4: cp210x converter now attached to ttyUSB0
>>>>
>>>> Use Qserialport on ttyUSB0 and ready you are.
>>>
>>> This looks like plugging in a serial device into a PC. Do you want  
>>> your Jolla to expose a serial port? That is definitely possible  
>>> and easy.
>>>
>>> Do you want your Jolla to read data from some serial port with a  
>>> serial to USB adapter then you're getting in a very complicated  
>>> world.
>>>
>>> Unless you can explain what you actually want there is little we  
>>> can do to help.
>>>
>>> Regards,
>>>
>>> Philippe
>>>
>>>
>>> _______________________________________________
>>> SailfishOS.org Devel mailing list
>>>
>>
>>
>>
>> _______________________________________________
>> SailfishOS.org Devel mailing list
>>
>
> _______________________________________________
> SailfishOS.org Devel mailing list
>





More information about the Devel mailing list