Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

Sleeping mode - CarPC Project

43

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
43
Posted at 3/11/2015 17:45:09      1#
Hello,

It is better if you shut your device completely otherwise I can drain your battery. I suggest you to build a circuit with 555 TIMER then use some electronics to sense ignition over GPIOS.

Logic should be in this way:
1- When the ignition gets off, computer should show you a warning that it will shutdown in a defined time. If the computer doesnt shutdown in 7 minutes for example, 555 TIMER will cut the power completely.

2- When the ignition on 555 timer will be resetted so system will start to power again it will cause to start up of firefly.

OR

1- If you really trust the stability of your software and hardware you can just sense ignition through GPIOs. And everytime computer shuts itself down in defined time after ignition off mode.

NOTE: Please be careful with the ignition cable, don't run anything on it. It is just for sensing the car equipments you can easily burn it. I suggest you to use optocoupler.

Regards.
Reply

Use props Report

43

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
43
Posted at 3/12/2015 17:39:58      2#
Hi,

Well, I heard some stories about battery drain but I have never faced this kind of issue. I also heard one guy that who let his ipod plugged in his car through Arduino, and the battery was dead after few days. Just to let you know however I am not really experienced as you in this field. Have you already measured how much power does firefly uses during sleep?

Actually, I think you don’t need to use Arduino or microcontroller to send sleeping code. As you are software developer you can simply listen GPIOs with a small script when it sense ignition is of you can go to halt. When It comes to wake it up normal power button or GPIOs which are responsible from power off has to wake the board up. Unfortunately, I haven’t got a board yet that’s why I cannot check it out, and I couldn’t find any doc on this website. Lastly, I think you don’t have to supply a voltage just bring two pins together with the help of optocoupler, in this way you wont risk your ignition line and it will be isolated from your board to have more clear sound.

Regards
Reply

Use props Report

43

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
43
Posted at 3/12/2015 20:09:33      3#
Last edited by mbt28 In 3/12/2015 20:23 Editor

Hi,

Have you ever tried to use power button to waking it from halt?

Also if it appearent could you please check the circuit of power button where it goes.

Edit:


After confirming all the connections are OK, plug the power adapter into the socket to power up the board. The board will boot automatically at the first power on.

Select "Shutdown" in Android system, keeping the board's power. Then we can boot Firefly-RK3288 by two ways:

Long press power button for more than 3 seconds
Press "power" button on the infrared remote control
During booting, the blue LED will light up, and four cute penguins will be shown on display, which indicates the quad-core CPU.



Probably, it is programmed in firmware. I think easiest solution for you to make an parallel line to power button. You can do it simply solder 2 cables (do not drill it as it is a multilayer pcb). However you have to make a circuit to arrange timing, probably with 555 but it would be a very easy if you cannot I can help you. For now, I cannot find out a simplier solution.

Regards.
Reply

Use props Report

43

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
43
Posted at 3/12/2015 21:46:04      4#
Hello,

If you use microcontroller like attiny something else I suggest you to use a optocoupler. You can definitely almost do everything that you wish to do in this way.

If you ask me I prefer to create a small logic circuit to provide push button alternative. Let me think about this circuit, it has to be easy but I couldn't find out a way now.

NOTE: Please don't use power switch directly, probably there is resistor inside this switch. First try to understand the specs then make parallel connection.

Regards.
Reply

Use props Report

43

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
43
Posted at 3/13/2015 18:07:44      5#
Hello,

I do not know which car are you working on but if you get a CAN tranceiver microchip you can combine it with regular microchip. Then you can control the board as you like. You can MCP series of microchips, for the programmable microchip you can have an attiny and install arduino software. You can burn the arduino bootloader simply by using usb to ttl card which is like 2usd in aliexpress.

These CAN transceivers they have on-board regulated voltage output. They wakes up immediately with the any can signal in the car, and provide regulated voltage. With that voltage you can easily drive your microchip and this microchip can manage the power.

It is going to be even cheaper, safer and simplier I think. Because in any case you should use a can receiver in your car pc.

Regards.
Reply

Use props Report

43

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
43
Posted at 3/16/2015 17:01:30      6#
I see, as far as I check on the internet you might have something similar can bus not bus but a network line which uses it.

Do you have illumination on your button light during the night and day?
Reply

Use props Report

43

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
43
Posted at 3/17/2015 16:53:38      7#
Hello,

This has to be working through a network, It is similar to odb 2 standard. If you want to build fully functional head unit you should be able to decode this line and inject bytes as well.
Reply

Use props Report

43

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
43
Posted at 3/17/2015 19:06:56      8#
Last edited by mbt28 In 3/17/2015 19:12 Editor

Hi,

Well also I discovered that I can read battery voltage over ibus. Maybe you can do the same over your network, in this case no need to shutdown the board until the battery voltage downs on a defined level.

Regards,
Mehmet
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list