simon13
Posts: 9
Joined: Sun Sep 04, 2016 2:40 pm

RPi2 Fronius serialport converter not mapped to /dev/ttyUSBx

Sun Sep 04, 2016 2:45 pm

Hi All,

I am using Fronius usb serial conveter (should be standard USB to RS422 converter with FTDI driver I think) but it doesnt connect to any /dev/ttyUSB so I cant use it.
Here are the logs:

uname -a:

Code: Select all

Linux RaspberryPi 4.4.19-v7+ #906 SMP Tue Aug 23 15:53:06 BST 2016 armv7l GNU/Linux 
dmesg

Code: Select all

     [    2.027747] Freeing unused kernel memory: 476K (807e9000 - 80860000)                                                     
    [    2.123316] usb 1-1: new high-speed USB device number 2 using dwc_otg                                                    
    [    2.126342] Indeed it is in host mode hprt0 = 00001101                                                                   
    [    2.323664] usb 1-1: New USB device found, idVendor=0424, idProduct=9514                                                 
    [    2.326619] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0                                            
    [    2.330573] hub 1-1:1.0: USB hub found                                                                                   
    [    2.333620] hub 1-1:1.0: 5 ports detected                                                                                
    [    2.613333] usb 1-1.1: new high-speed USB device number 3 using dwc_otg                                                  
    [    2.713814] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00                                               
    [    2.716977] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0                                          
    [    2.724119] smsc95xx v1.0.4                                                                                              
    [    2.789935] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:11:
    60:6c                                                                                                                       
    [    2.893362] usb 1-1.4: new full-speed USB device number 4 using dwc_otg                                                  
    [    3.024330] usb 1-1.4: New USB device found, idVendor=101e, idProduct=000a                                               
    [    3.027821] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3                                          
    [    3.031254] usb 1-1.4: Product: Fronius Converter USB                                                                    
    [    3.034423] usb 1-1.4: Manufacturer: Fronius                                                                             
    [    3.037608] usb 1-1.4: SerialNumber: A6XEHVTU                                                                            
    [    3.075968] udevd[201]: starting version 175                                                                             
    [    3.356391] Driver for 1-wire Dallas network protocol.                                                                   
    [    3.424611] w1-gpio onewire@0: gpio pin 4, external pullup pin -1, parasitic power 0                                     
    [    3.432051] w1_add_master_device: set_pullup requires write_byte or touch_bit, disabling                                 
    [    3.513667] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer                                               
    [    3.553503] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000                                       
    [    3.584049] bcm2708_i2c 3f804000.i2c: BSC1 Controller at 0x3f804000 (irq 83) (baudrate 100000)                           
    [    3.922205] rtc-pcf8563 1-0051: chip found, driver version 0.4.4                                                         
    [    3.936258] rtc-pcf8563 1-0051: rtc core: registered rtc-pcf8563 as rtc0                                                 
    [    4.958579] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)                                                                
    [    6.026100] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)                                                                
    [    6.549231] i2c /dev entries driver                                                                                      
    [   10.070529] random: dd: uninitialized urandom read (512 bytes read, 94 bits of entropy available)                        
    [   10.656065] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup                                             
    [   12.188171] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x4DE1                                           
    [   16.866533] random: nonblocking pool is initialized                                                                      
    [   20.902374] Adding 102396k swap on /var/swap.  Priority:-1 extents:1 across:102396k SSFS                                 
    [   23.845184] watchdog watchdog0: Watchdog timer stopped                                                                   
    [   35.353421] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup                                             
    [   35.450847] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup                                             
    [   35.477331] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup                                             
    [   35.821141] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup                                             
    [   37.248387] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x4DE1                                           
    [ 2177.288978] usb 1-1.4: USB disconnect, device number 4                                                                   
    [ 2179.318622] usb 1-1.4: new full-speed USB device number 5 using dwc_otg                                                  
    [ 2179.449058] usb 1-1.4: New USB device found, idVendor=101e, idProduct=000a                                               
    [ 2179.449087] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3                                          
    [ 2179.449104] usb 1-1.4: Product: Fronius Converter USB                                                                    
    [ 2179.449120] usb 1-1.4: Manufacturer: Fronius                                                                             
    [ 2179.449135] usb 1-1.4: SerialNumber: A6XEHVTU  

 
lsusb

Code: Select all

  Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.                                                                
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub                                                              
    Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.                                                                
    Bus 001 Device 005: ID 101e:000a  
cat /proc/modules

Code: Select all

    binfmt_misc 6388 1 - Live 0x7f09b000                                                                                        
    rtc_ds1307 9521 0 - Live 0x7f094000                                                                                         
    i2c_dev 5859 0 - Live 0x7f08f000                                                                                            
    snd_bcm2835 20447 0 - Live 0x7f085000                                                                                       
    snd_pcm 75762 1 snd_bcm2835, Live 0x7f066000                                                                                
    snd_timer 19224 1 snd_pcm, Live 0x7f05c000                                                                                  
    snd 51908 3 snd_bcm2835,snd_pcm,snd_timer, Live 0x7f045000                                                                  
    rtc_pcf8563 6264 0 - Live 0x7f040000                                                                                        
    i2c_bcm2708 4770 0 - Live 0x7f03b000                                                                                        
    bcm2835_gpiomem 3040 0 - Live 0x7f037000                                                                                    
    w1_therm 3584 0 - Live 0x7f033000                                                                                           
    spi_bcm2835 6678 0 - Live 0x7f02e000                                                                                        
    bcm2835_wdt 3225 1 - Live 0x7f02a000                                                                                        
    w1_gpio 3657 0 - Live 0x7f026000                                                                                            
    wire 25219 2 w1_therm,w1_gpio, Live 0x7f019000                                                                              
    cn 4374 1 wire, Live 0x7f014000                                                                                             
    uio_pdrv_genirq 3164 0 - Live 0x7f00c000                                                                                    
    uio 8000 1 uio_pdrv_genirq, Live 0x7f000000 
ls /dev/

Code: Select all

                                                                                    
    autofs           gpiomem  loop-control        pts    ram7       stdout  tty2   tty32  tty45  tty58      urandom  vcsa2      
    block            hwrng    MAKEDEV             ram0   ram8       tty     tty20  tty33  tty46  tty59      vc-cma   vcsa3      
    btrfs-control    i2c-1    mapper              ram1   ram9       tty0    tty21  tty34  tty47  tty6       vchiq    vcsa4      
    bus              input    mem                 ram10  random     tty1    tty22  tty35  tty48  tty60      vcio     vcsa5      
    cachefiles       kmsg     memory_bandwidth    ram11  raw        tty10   tty23  tty36  tty49  tty61      vc-mem   vcsa6      
    char             log      mmcblk0             ram12  root       tty11   tty24  tty37  tty5   tty62      vcs      vcsm       
    console          loop0    mmcblk0p1           ram13  rtc0       tty12   tty25  tty38  tty50  tty63      vcs1     vhci       
    cpu_dma_latency  loop1    mmcblk0p2           ram14  shm        tty13   tty26  tty39  tty51  tty7       vcs2     watchdog   
    cuse             loop2    net                 ram15  snd        tty14   tty27  tty4   tty52  tty8       vcs3     watchdog0  
    disk             loop3    network_latency     ram2   sndstat    tty15   tty28  tty40  tty53  tty9       vcs4     xconsole   
    fb0              loop4    network_throughput  ram3   spidev0.0  tty16   tty29  tty41  tty54  ttyAMA0    vcs5     zero       
    fd               loop5    null                ram4   spidev0.1  tty17   tty3   tty42  tty55  ttyprintk  vcs6                
    full             loop6    ppp                 ram5   stderr     tty18   tty30  tty43  tty56  uhid       vcsa                
    fuse             loop7    ptmx                ram6   stdin      tty19   tty31  tty44  tty57  uinput     vcsa1               
                
I can see that the converter is detected but it is not mapped to /dev/ttyUSB (I have another one which is not from Fronius and it works perfectly but I need to use the one from Fronius.) Also can see that in lsusb the conveter is device 5 but it doesnt have a name, this might be the issue? I tried several times to disconnect the converter and no luck. I tried differetn RPI and no luck.
I also see many /dev/tty (which I actually understand why there is so many) and they disapeary when I connect my other working converter, how this is releated?

Should I write some udev rule? why is this not detected automatically? How the rule should look like?

Thanks in advance

asavah
Posts: 384
Joined: Thu Aug 14, 2014 12:49 am

Re: RPi2 Fronius serialport converter not mapped to /dev/tty

Sun Sep 04, 2016 5:04 pm

Code: Select all

ID 101e:000a 
is not known to the linux kernel,
it's not in in usb.ids or pci.ids database,
101e is AMI (American Megatrends Inc), but what's 000a is unknown.

You think it's detected due dmesg output, but it actually isn't.
You may have a fake device with some random ids burned in.
Contact the manufacturer and ask them about linux support.
Or at least figure out the exact chip (FTDI or whatever) it has, this way you could force loading right kernel module for wrong usb ids.

simon13
Posts: 9
Joined: Sun Sep 04, 2016 2:40 pm

Re: RPi2 Fronius serialport converter not mapped to /dev/tty

Sun Sep 04, 2016 10:39 pm

it is this usb conveter: http://www.fronius.com/cps/rde/xchg/SID ... G_HTML.htm
but I cant find more info about the chip it uses. Only info I have from windows where it looks like FTDI. Will contact vendor but it will take a while and they dont have to reply.
Any idea which modules should I load? i can try more of then and maybe will get lucky.

User avatar
scruss
Posts: 4911
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON

Re: RPi2 Fronius serialport converter not mapped to /dev/tty

Mon Sep 05, 2016 12:51 am

That sure looks like an FTDI device serial number. The system isn't picking it up, as it has a different vendor ID from FTDI's 0403. The kernel module for FTDI serial is ftdi_sio
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.
Pronouns: he/him

simon13
Posts: 9
Joined: Sun Sep 04, 2016 2:40 pm

Re: RPi2 Fronius serialport converter not mapped to /dev/tty

Mon Sep 05, 2016 6:01 am

i did /sbin/modprobe ftdi_sio is it enough to load the module or something else needs to be done?
is it possible to write some udev rule to force system to use this module for this device even thought the vendor id is wrong? i dont know how because i am new to this :/ thanks

simon13
Posts: 9
Joined: Sun Sep 04, 2016 2:40 pm

Re: RPi2 Fronius serialport converter not mapped to /dev/tty

Mon Sep 05, 2016 9:07 am

So I loaded ftdi_sio and also added it to /etc/rc.local so it is loaded after start, now in dmesg I can see that the module is loaded but the usb to RS422 is still not loaded. Is there any way how to make the system to use this module for this converter and be mapped as ttyUSB0? or should I do something else? here is the dmesg output I have now:

Code: Select all

[    0.000000] Booting Linux on physical CPU 0xf00
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.1.19-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3                                                                                         (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #858 SMP Tue Mar 15 15:56:00 GM                                                                                        T 2016
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instructio                                                                                        n cache
[    0.000000] Machine model: Raspberry Pi 2 Model B Rev 1.1
[    0.000000] cma: Reserved 8 MiB at 0x3a400000
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 241664
[    0.000000] free_area_init_node: node 0, pgdat 80880fc0, node_mem_map b9bb400                                                                                        0
[    0.000000]   Normal zone: 2124 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 241664 pages, LIFO batch:31
[    0.000000] [bcm2709_smp_init_cpus] enter (9420->f3003010)
[    0.000000] [bcm2709_smp_init_cpus] ncores=4
[    0.000000] PERCPU: Embedded 12 pages/cpu @bafb0000 s20416 r8192 d20544 u4915                                                                                        2
[    0.000000] pcpu-alloc: s20416 r8192 d20544 u49152 alloc=12*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pag                                                                                        es: 239540
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 b                                                                                        cm2708_fb.fbheight=416 bcm2709.boardrev=0xa01041 bcm2709.serial=0x1b3718c1 smsc9                                                                                        5xx.macaddr=B8:27:EB:37:18:C1 bcm2708_fb.fbswap=1 bcm2709.uart_clock=3000000 bcm                                                                                        2709.disk_led_gpio=47 bcm2709.disk_led_active_low=0 vc_mem.mem_base=0x3dc00000 v                                                                                        c_mem.mem_size=0x3f000000  dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2                                                                                         rootfstype=ext4 elevator=deadline rootwait
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 939376K/966656K available (6064K kernel code, 534K rwdata                                                                                        , 1664K rodata, 444K init, 757K bss, 19088K reserved, 8192K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xbb800000 - 0xff000000   (1080 MB)
[    0.000000]     lowmem  : 0x80000000 - 0xbb000000   ( 944 MB)
[    0.000000]     modules : 0x7f000000 - 0x80000000   (  16 MB)
[    0.000000]       .text : 0x80008000 - 0x807945f0   (7730 kB)
[    0.000000]       .init : 0x80795000 - 0x80804000   ( 444 kB)
[    0.000000]       .data : 0x80804000 - 0x80889b10   ( 535 kB)
[    0.000000]        .bss : 0x8088c000 - 0x809497dc   ( 758 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  Additional per-CPU info printed with stalls.
[    0.000000] NR_IRQS:608
[    0.000000] Architected cp15 timer(s) running at 19.20MHz (phys).
[    0.000000] clocksource arch_sys_counter: mask: 0xffffffffffffff max_cycles:                                                                                         0x46d987e47, max_idle_ns: 440795202767 ns
[    0.000011] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 43980                                                                                        46511078ns
[    0.000033] Switching to timer-based delay loop, resolution 52ns
[    0.000319] Console: colour dummy device 80x30
[    0.001551] console [tty1] enabled
[    0.001612] Calibrating delay loop (skipped), value calculated using timer fr                                                                                        equency.. 38.40 BogoMIPS (lpj=192000)
[    0.001689] pid_max: default: 32768 minimum: 301
[    0.002083] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.002134] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.003412] Initializing cgroup subsys blkio
[    0.003486] Initializing cgroup subsys memory
[    0.003544] Initializing cgroup subsys devices
[    0.003596] Initializing cgroup subsys freezer
[    0.003660] Initializing cgroup subsys net_cls
[    0.003758] CPU: Testing write buffer coherency: ok
[    0.003869] ftrace: allocating 20313 entries in 60 pages
[    0.053064] CPU0: update cpu_capacity 1024
[    0.053140] CPU0: thread -1, cpu 0, socket 15, mpidr 80000f00
[    0.053181] [bcm2709_smp_prepare_cpus] enter
[    0.053340] Setting up static identity map for 0x8240 - 0x8274
[    0.055903] [bcm2709_boot_secondary] cpu:1 started (0) 18
[    0.056350] [bcm2709_secondary_init] enter cpu:1
[    0.056408] CPU1: update cpu_capacity 1024
[    0.056417] CPU1: thread -1, cpu 1, socket 15, mpidr 80000f01
[    0.056996] [bcm2709_boot_secondary] cpu:2 started (0) 16
[    0.057353] [bcm2709_secondary_init] enter cpu:2
[    0.057386] CPU2: update cpu_capacity 1024
[    0.057394] CPU2: thread -1, cpu 2, socket 15, mpidr 80000f02
[    0.057938] [bcm2709_boot_secondary] cpu:3 started (0) 16
[    0.058194] [bcm2709_secondary_init] enter cpu:3
[    0.058224] CPU3: update cpu_capacity 1024
[    0.058232] CPU3: thread -1, cpu 3, socket 15, mpidr 80000f03
[    0.058324] Brought up 4 CPUs
[    0.058435] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[    0.058468] CPU: All CPU(s) started in HYP mode.
[    0.058498] CPU: Virtualization extensions available.
[    0.059500] devtmpfs: initialized
[    0.083546] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7                                                                                         rev 5
[    0.083900] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max                                                                                        _idle_ns: 19112604462750000 ns
[    0.085109] pinctrl core: initialized pinctrl subsystem
[    0.085920] NET: Registered protocol family 16
[    0.091537] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[    0.092721] bcm2709.uart_clock = 3000000
[    0.098568] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint                                                                                         registers.
[    0.098628] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.098859] Serial: AMBA PL011 UART driver
[    0.099079] 3f201000.uart: ttyAMA0 at MMIO 0x3f201000 (irq = 83, base_baud =                                                                                         0) is a PL011 rev2
[    0.099714] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[    0.174287] bcm2708-dmaengine 3f007000.dma: DMA legacy API manager at f300700                                                                                        0, dmachans=0xf35
[    0.174377] bcm2708-dmaengine 3f007000.dma: Initialized 7 DMA channels (+ 1 l                                                                                        egacy)
[    0.175142] bcm2708-dmaengine 3f007000.dma: Load BCM2835 DMA engine driver
[    0.175186] bcm2708-dmaengine 3f007000.dma: dma_debug:0
[    0.175959] SCSI subsystem initialized
[    0.176240] usbcore: registered new interface driver usbfs
[    0.176380] usbcore: registered new interface driver hub
[    0.176560] usbcore: registered new device driver usb
[    0.177322] raspberrypi-firmware soc:firmware: Attached to firmware from 2016                                                                                        -03-15 14:47
[    0.204638] Switched to clocksource arch_sys_counter
[    0.253452] FS-Cache: Loaded
[    0.253883] CacheFiles: Loaded
[    0.266978] NET: Registered protocol family 2
[    0.268378] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.268552] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.268770] TCP: Hash tables configured (established 8192 bind 8192)
[    0.268917] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.269006] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.269505] NET: Registered protocol family 1
[    0.269996] RPC: Registered named UNIX socket transport module.
[    0.270039] RPC: Registered udp transport module.
[    0.270071] RPC: Registered tcp transport module.
[    0.270102] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.271198] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counter                                                                                        s available
[    0.272649] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.289088] VFS: Disk quotas dquot_6.6.0
[    0.289490] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.291928] FS-Cache: Netfs 'nfs' registered for caching
[    0.293146] NFS: Registering the id_resolver key type
[    0.293249] Key type id_resolver registered
[    0.293282] Key type id_legacy registered
[    0.296265] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 2                                                                                        52)
[    0.296524] io scheduler noop registered
[    0.296572] io scheduler deadline registered (default)
[    0.296944] io scheduler cfq registered
[    0.299554] BCM2708FB: allocated DMA memory fa800000
[    0.299627] BCM2708FB: allocated DMA channel 0 @ f3007000
[    0.305337] Console: switching to colour frame buffer device 82x26
[    0.310541] Serial: 8250/16550 driver, 0 ports, IRQ sharing disabled
[    0.313471] vc-cma: Videocore CMA driver
[    0.315186] vc-cma: vc_cma_base      = 0x00000000
[    0.316845] vc-cma: vc_cma_size      = 0x00000000 (0 MiB)
[    0.318440] vc-cma: vc_cma_initial   = 0x00000000 (0 MiB)
[    0.320240] vc-mem: phys_addr:0x00000000 mem_base=0x3dc00000 mem_size:0x3f000                                                                                        000(1008 MiB)
[    0.339239] brd: module loaded
[    0.349715] loop: module loaded
[    0.352181] vchiq: vchiq_init_state: slot_zero = 0xba880000, is_master = 0
[    0.355447] Loading iSCSI transport class v2.0-870.
[    0.357902] usbcore: registered new interface driver smsc95xx
[    0.359520] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    0.561411] Core Release: 2.80a
[    0.562870] Setting default values for core params
[    0.564370] Finished setting default values for core params
[    0.766348] Using Buffer DMA mode
[    0.767849] Periodic Transfer Interrupt Enhancement - disabled
[    0.769391] Multiprocessor Interrupt Enhancement - disabled
[    0.770968] OTG VER PARAM: 0, OTG VER FLAG: 0
[    0.772521] Dedicated Tx FIFOs mode
[    0.774424] WARN::dwc_otg_hcd_init:1047: FIQ DMA bounce buffers: virt = 0xba8                                                                                        14000 dma = 0xfa814000 len=9024
[    0.777632] FIQ FSM acceleration enabled for :
[    0.777632] Non-periodic Split Transactions
[    0.777632] Periodic Split Transactions
[    0.777632] High-Speed Isochronous Endpoints
[    0.784052] dwc_otg: Microframe scheduler enabled
[    0.784121] WARN::hcd_init_fiq:412: FIQ on core 1 at 0x80417288
[    0.785745] WARN::hcd_init_fiq:413: FIQ ASM at 0x804175f8 length 36
[    0.787382] WARN::hcd_init_fiq:438: MPHI regs_base at 0xbb89a000
[    0.789032] dwc_otg 3f980000.usb: DWC OTG Controller
[    0.790632] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number                                                                                         1
[    0.792260] dwc_otg 3f980000.usb: irq 32, io mem 0x00000000
[    0.793864] Init: Port Power? op_state=1
[    0.795419] Init: Power Port (0)
[    0.797185] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    0.798770] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=                                                                                        1
[    0.800338] usb usb1: Product: DWC OTG Controller
[    0.801875] usb usb1: Manufacturer: Linux 4.1.19-v7+ dwc_otg_hcd
[    0.803423] usb usb1: SerialNumber: 3f980000.usb
[    0.805843] hub 1-0:1.0: USB hub found
[    0.807406] hub 1-0:1.0: 1 port detected
[    0.809336] dwc_otg: FIQ enabled
[    0.809350] dwc_otg: NAK holdoff enabled
[    0.809360] dwc_otg: FIQ split-transaction FSM enabled
[    0.809401] Module dwc_common_port init
[    0.809806] usbcore: registered new interface driver usb-storage
[    0.811513] mousedev: PS/2 mouse device common for all mice
[    0.813801] bcm2835-cpufreq: min=600000 max=700000
[    0.815661] sdhci: Secure Digital Host Controller Interface driver
[    0.817175] sdhci: Copyright(c) Pierre Ossman
[    0.819032] sdhost: log_buf @ ba813000 (fa813000)
[    0.894723] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[    0.916848] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.919035] ledtrig-cpu: registered to indicate activity on CPUs
[    0.920833] hidraw: raw HID events driver (C) Jiri Kosina
[    0.922728] usbcore: registered new interface driver usbhid
[    0.924286] usbhid: USB HID core driver
[    0.926362] Initializing XFRM netlink socket
[    0.927945] NET: Registered protocol family 17
[    0.929617] Key type dns_resolver registered
[    0.931490] Registering SWP/SWPB emulation handler
[    0.933901] registered taskstats version 1
[    0.935690] vc-sm: Videocore shared memory driver
[    0.937171] [vc_sm_connected_init]: start
[    0.939338] [vc_sm_connected_init]: end - returning 0
[    0.942418] Waiting for root device /dev/mmcblk0p2...
[    0.993397] mmc0: host does not support reading read-only switch, assuming wr                                                                                        ite-enable
[    1.000113] mmc0: new high speed SDHC card at address aaaa
[    1.002312] mmcblk0: mmc0:aaaa SL16G 14.8 GiB
[    1.005362]  mmcblk0: p1 p2
[    1.024806] Indeed it is in host mode hprt0 = 00021501
[    1.059507] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. O                                                                                        pts: (null)
[    1.062659] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.072602] devtmpfs: mounted
[    1.074969] Freeing unused kernel memory: 444K (80795000 - 80804000)
[    1.204705] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    1.206683] Indeed it is in host mode hprt0 = 00001101
[    1.405154] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[    1.407036] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    1.409953] hub 1-1:1.0: USB hub found
[    1.412024] hub 1-1:1.0: 5 ports detected
[    1.694764] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    1.795203] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    1.797438] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber                                                                                        =0
[    1.802736] smsc95xx v1.0.4
[    1.869072] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-                                                                                        1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:37:18:c1
[    1.964753] usb 1-1.5: new full-speed USB device number 4 using dwc_otg
[    2.094276] usb 1-1.5: New USB device found, idVendor=101e, idProduct=000a
[    2.098303] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber                                                                                        =3
[    2.098323] usb 1-1.5: Product: Fronius Converter USB
[    2.098332] usb 1-1.5: Manufacturer: Fronius
[    2.098340] usb 1-1.5: SerialNumber: A6XEHW1S
[    2.108804] udevd[174]: starting version 175
[    2.437782] Driver for 1-wire Dallas network protocol.
[    2.452801] w1-gpio onewire@0: gpio pin 4, external pullup pin -1, parasitic                                                                                         power 0
[    2.489738] w1_add_master_device: set_pullup requires write_byte or touch_bit                                                                                        , disabling
[    3.303687] bcm2835-rng 3f104000.rng: hwrng registered
[    3.308684] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f2                                                                                        00000
[    3.315930] spi spi0.0: setting up native-CS0 as GPIO 8
[    3.320237] spi spi0.1: setting up native-CS1 as GPIO 7
[    3.323691] bcm2708_i2c 3f804000.i2c: BSC1 Controller at 0x3f804000 (irq 79)                                                                                         (baudrate 100000)
[    3.349861] rtc-pcf8563 1-0051: chip found, driver version 0.4.3
[    3.358536] rtc-pcf8563 1-0051: rtc core: registered rtc-pcf8563 as rtc0
[    4.615879] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    4.905994] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    5.353495] bcm2708 watchdog, heartbeat=14 sec (nowayout=1)
[    5.440871] i2c /dev entries driver
[    8.840312] random: dd urandom read with 102 bits of entropy available
[    9.247677] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   10.787352] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x4DE                                                                                        1
[   13.587387] random: nonblocking pool is initialized
[   19.207997] Adding 102396k swap on /var/swap.  Priority:-1 extents:1 across:1                                                                                        02396k SSFS
[   23.071961] wdt: WDT device closed unexpectedly.  WDT will not stop!
[   23.217578] usbcore: registered new interface driver usbserial
[   23.217696] usbcore: registered new interface driver usbserial_generic
[   23.217813] usbserial: USB Serial support registered for generic
[   23.228112] usbcore: registered new interface driver ftdi_sio
[   23.228244] usbserial: USB Serial support registered for FTDI USB Serial Devi                                                                                        ce
[   33.235143] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   33.672894] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   35.204078] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x4DE   



User avatar
scruss
Posts: 4911
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON

Re: RPi2 Fronius serialport converter not mapped to /dev/tty

Mon Sep 05, 2016 11:37 am

This is a long shot, as I'm pretty much out of my depth with this:

Code: Select all

sudo modprobe usbserial vendor=0x101e product=0x000a
Ask Fronius or your solar dealer if you can't get further. They're a really solid company, and they've got to have some Linux nerd somewhere. Alternatively, one of the feral solar geeks on the homepower.com forum might have tried this. I'm a (far too) old renewables nerd, but I haven't worked directly with this kit.

To anyone here saying this is counterfeit, Fronius are approximately the BMW of the solar world. They make very nice power electronics. Shame they didn't just use an FTDI or CP interface.
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.
Pronouns: he/him

simon13
Posts: 9
Joined: Sun Sep 04, 2016 2:40 pm

Re: RPi2 Fronius serialport converter not mapped to /dev/tty

Mon Sep 05, 2016 12:31 pm

Thanks scruss, I tried your command but no luck :( the converter is original one from Fronius and it works under windows. There I can see that it is FTDI (in the attachment) but I have no idea why it is not showing in raspbian. I wrote to Fronius and hope they will answer. The problem is that I need this to work asap because of my customer is waiting for working solar monitoring.

any more ideas? thanks a lot
Attachments
froniuswin.PNG
froniuswin.PNG (23.31 KiB) Viewed 6881 times

User avatar
scruss
Posts: 4911
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON

Re: RPi2 Fronius serialport converter not mapped to /dev/tty

Mon Sep 05, 2016 1:05 pm

I don't think it will work without a custom kernel module, sorry.
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.
Pronouns: he/him

simon13
Posts: 9
Joined: Sun Sep 04, 2016 2:40 pm

Re: RPi2 Fronius serialport converter not mapped to /dev/tty

Mon Sep 05, 2016 1:29 pm

ok thanks, hope Fronius support will reply..maybe they have custom module. Thanks for your time.

simon13
Posts: 9
Joined: Sun Sep 04, 2016 2:40 pm

Re: RPi2 Fronius serialport converter not mapped to /dev/tty

Mon Sep 05, 2016 1:44 pm

@scruss: just a quick question, do you think that something like descibed in this post might work?
viewtopic.php?f=44&t=55609
in the last reply...but I am not sure how to rewrite it for my needs and if it might work or if it is complete nonsense.
thanks

User avatar
scruss
Posts: 4911
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON

Re: RPi2 Fronius serialport converter not mapped to /dev/tty

Mon Sep 05, 2016 2:36 pm

It might; maybe try it?

This may fail if the kernel module checks for FTDI's own vendor ID.

If Fronius can't help (apart from trying to ell you an expensive Windows-based monitoring system), the FTDI kernel module author seems to be on Twitter.
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.
Pronouns: he/him

simon13
Posts: 9
Joined: Sun Sep 04, 2016 2:40 pm

Re: RPi2 Fronius serialport converter not mapped to /dev/tty

Mon Sep 05, 2016 2:43 pm

Well, I tried this:

Code: Select all

sudo modprobe ftdi-sio && echo 101e 000a > /sys/bus/usb-serial/drivers/ftdi_sio/new_id
but not sure if ti is correct and it didnt do anything...

Thanks for the tip, do you know his twitter? :)
Last edited by simon13 on Sun Sep 11, 2016 1:02 am, edited 1 time in total.

simon13
Posts: 9
Joined: Sun Sep 04, 2016 2:40 pm

Re: RPi2 Fronius serialport converter not mapped to /dev/tty

Wed Sep 07, 2016 11:23 am

So I finally figured it out, basically it is just about registering new device under the unknown (non standard FTDI) vendor ID and product ID
Put this into /etc/rc.local and it works like charm:

Code: Select all

sudo modprobe usbserial
sudo modprobe ftdi-sio
sudo echo 101e 000a > /sys/bus/usb-serial/drivers/ftdi_sio/new_id
Maybe loading usbserial is not necessary but I have it there just in case.
I wrote also to Fronius to let them know that they have issue with this converter. Will see if they fix it.
Thanks everyone for help here.
I got the idea from: https://ubuntuforums.org/showthread.php?t=2259068
Last edited by simon13 on Sun Sep 11, 2016 1:01 am, edited 1 time in total.

User avatar
scruss
Posts: 4911
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON

Re: RPi2 Fronius serialport converter not mapped to /dev/tty

Wed Sep 07, 2016 1:27 pm

That's really cool. Very happy you got it working.
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.
Pronouns: he/him

0d0a
Posts: 14
Joined: Sun Feb 15, 2015 1:55 pm

Re: RPi2 Fronius serialport converter not mapped to /dev/tty

Sat Sep 17, 2016 1:30 am

thumb up! nice detective work! thx for sharing.

I found this looking for a watchdog solution that will not keep my pi booting@!

Return to “Beginners”