On 23 Feb 2016 20:54, "Gerardo Di Iorio" <[email protected]> wrote:
>
> Hi,you can share hw and SW on usb-serial-power device

Here is a picture of the setup:

http://pic.twitter.com/2RvI8cjCkD

I had to mod the cp2102 dongle to have 2 gnd pins instead of one, I had to
cut the trace of the RTS pin, and solder it with its neighbour gnd pin.

The DTR pin is enough to control the relay, which is intercepting the red
wire from the USB cable.

I put some basic code to toggle the DTR pin here:

https://github.com/zoobab/toggledtr

Right now it does a while loop, I will have to modify it a bit to get/set
the DTR pin.

During my tests, I only noticed that some programs such as minicom tends to
set the DTR when they are launched, which is interfering with the purpose
of this setup.

Also, I noticed that the TX pin of the bananapi was still leaking enough
current to keep the board on, and to prevent proper power cycling.
Apparently, Kevin from kernelci had the same issue with some boards, and
solved the problem by adding a small resistor in between.

Best,

>
> Regards
>
> Il 02/feb/2016 10:32, "Benjamin Henrion" <[email protected]> ha scritto:
>>
>> Hi,
>>
>> We have some 40EUR left too much from the sunxi dinner, it was decided
>> to buy a Pine64 and donate it for the kernelci lab.
>>
>> There is also a need to have an H3 board on there, I have a second
>> Orangepi PC that I will donate as well.
>>
>> If you have contacts with manufacturers (Olimex, Orangepi, others on
>> this list), we should seek to have more boards on the kernelci lab.
>>
>> The kernelci fosdem talk was recorded, most of the technical questions
>> regarding the lab setup (sd card swap, jtag access, etc...) were
>> mostly left unanswered.
>>
>> I am working on a simple usbserial+usbpower controller which could be
>> the start for actually adding some boards you have at home to the CI
>> infrastructure. Most of the boards are powered via 5V, so cp2102 usb
>> dongle can expose the serial console, and it can also control a cheap
>> 5V relay via its exposed DTRpin. I am making a
>> microUSBfemale-USBfemale adaptor, so that the power can be cut. Now
>> all of this is connected to a tplink 703n router, which can act as a
>> VPN/network/shell gateway.
>>
>> Best,
>>
>> --
>> Benjamin Henrion <bhenrion at ffii.org>
>> FFII Brussels - +32-484-566109 - +32-2-3500762
>> "In July 2005, after several failed attempts to legalise software
>> patents in Europe, the patent establishment changed its strategy.
>> Instead of explicitly seeking to sanction the patentability of
>> software, they are now seeking to create a central European patent
>> court, which would establish and enforce patentability rules in their
>> favor, without any possibility of correction by competing courts or
>> democratically elected legislators."
>>
>> --
>> You received this message because you are subscribed to the Google
Groups "linux-sunxi" group.
>> To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to