IRC log of #cubox of Mon 29 Aug 2016. All times are in CEST < Back to index

08:18 topi` rabeeh: was it you who designed the HB hardware?
09:08 rabeeh topi`: yes
09:09 topi` rabeeh: then you surely will understand how the component controlled by gpio 32 (1,0) is going to react to 0/1?
09:09 rabeeh which component exaclty?
09:09 topi` I checked the cmponents's spec sheet, but did not fully understand how it limits current when the _EN gets 0 or 1
09:10 rabeeh U22? or U9?
09:10 topi` I can't remember. It's the current limiter chip hooked to the USB in HB
09:10 topi` let me check
09:10 rabeeh the USB current limiters; right?
09:10 rabeeh we use MIC2026 (Micrel) current limiters
09:11 rabeeh those are just outputs from the chip to enable/disable the port
09:11 rabeeh once enabled then there is a current measurement inside MIC2026 that if exceeds 0.5A (in theory) it shuts down
09:11 rabeeh in practice this 0.5A becomes 0.6A or 0.7A
09:12 rabeeh the main idea behind USB current limiters is to prevent shorts and big current withdraw from a port
09:12 topi` I just wonder why the device I'm trying to control with it (a stupid power socket) refuses to shut down
09:12 topi` maybe there is a trickle of mA's
09:12 topi` that is enough to keep the VBUS at +5v
09:12 topi` or even close
09:13 rabeeh is that device self powered?
09:13 rabeeh or it's get all it's power from the HB VBUS?
09:13 topi` it's a power socket, so you connect it to 230V socket.
09:14 rabeeh maybe it's back powering the VBUS?
09:14 rabeeh in that case it will never shut down
09:14 topi` and you're supopposed to control it via a PC that, when shut down, will shut VBUS and that way (via a USB cable) signals the power socket sto shut down slave sockets
09:14 topi` it works OK with a Windows laptop...
09:14 rabeeh can you take measurements?
09:14 rabeeh fluke?
09:15 topi` I should measure it, but my measurement devices are crap
09:15 rabeeh just the voltage out of the VBUS
09:15 topi` next trick I'll try, is to make HB suspend and then use a timer interrupt to bring it back to life after like 1 hour
09:15 topi` I'll ask jnettlet how to create such a timer interrupt
09:16 topi` in case you're wondering, our house has hot water heating via an electrical socket and I want to time it so that during the cheapest hours, water is warmed
09:16 topi` so I needed a 16A socket that can be USB controlled
09:16 topi` 230V 16A
09:17 topi` I realize a relay is what I need, but if I can just use bulk stuff you can buy from Amazon, and won't kill my house insurance, then I'm happy
09:17 topi` and a HB is just the right device for home IoT :)
09:18 topi` If I can get it to work, I can write a piece for hackaday.com :)
09:20 jnettlet topi`, you can use rtcwake with the second rtc device.
09:21 jnettlet in the current tree there are issues with controller the USB voltage regulators. I have a complete rework of that in my tree that I will actually be pushing later today.
09:22 topi` jnettlet: i thought it was just a simple thing of issuing the right GPIOs, based on the schematics
09:22 jnettlet topi`, not that simple because those GPIOs are assigned to regulators so the kernel won't let userspace have access to them.
09:23 jnettlet I have included a patch that allows you to control the regulators themselves from userspace.
09:23 topi` rabeeh: good luck with the 8040 board, I cannot wait to get mine :)
09:23 topi` jnettlet: aha, that explains
09:23 jnettlet or you need to remove the pin assignment from the regulator in the device-tree
09:23 topi` I noticed that I was not able to control one of them (gpio86) at all
09:23 topi` I'll try your patch when I get back home :)
09:24 topi` that has to wait some, I'm now in a business trip to Helsinki
09:24 rabeeh topi`: thx.
09:24 topi` rabeeh: what's your experience of working with Marvell so far?
09:25 rabeeh i'v worked for Marvell for 14 years :)
09:25 rabeeh in general very good devices; really good devices mainly for networking and storage
09:25 topi` hope it's not that same hate relationship we (Nokia) had with Texas Instruments :)
09:25 rabeeh the performance you can squeeze from those device (again for networking and storage) is simply brilliant
09:25 topi` well, TI did some good designs, and the docs were quite nice
09:26 rabeeh but there are issues (as usual); especially in lead times
09:26 topi` we don't live in a perfect world :)
09:26 rabeeh robustness is really good; i have Clearfog devices up and running from the beginning of the year
09:30 Exaga rabeeh: RESPECT! the clearfog has no equal in terms of technology <3
09:31 rabeeh hey Exaga
09:31 Exaga good day :>
09:31 Exaga hows things?
09:31 rabeeh things are great
09:32 Exaga excellent
09:32 rabeeh i have now two kittens
09:32 Exaga rabeeh: did you hear about the release of the Slackware ARM -current hard flot port?
09:32 Exaga float*
09:32 Exag 09:32 * Exaga purrrrrrrrs like a kitten for rabeeh :P
09:33 Exaga i am a real cat lover
09:33 rabeeh i haven't seen that link; have link?
09:33 rabeeh i got the two kittens where they were 2 weeks old
09:33 rabeeh and only in time they started to purr
09:33 Exaga awwww
09:33 Exaga link to the ftp site?
09:34 Exaga ftp://ftp.arm.slackware.com/slackwarearm/slackwarearm-current/
09:34 Exaga the current version is the hard float, 14.2 is the soft float version
09:34 Exaga it's all in the changelog ;)
09:34 Exaga they are so cute when they're young
09:34 rabeeh i was wondering if cats purr is something they are born with? or they do learn in time
09:35 Exaga not sure but i guess it's like anything, you learn as you grow
09:35 Exaga or your body changes
09:46 Exaga it's a bank holiday in england today rabeeh, so i have the day off work :>
09:46 Exaga weather is good (for a change) so I'm just going to take it easy
20:26 vpeter Anyone maybe knows how to use curl to download translations from transifex?