Poster | Thread |
fingus
![](https://amigaworld.net/images/supportertags/bronze.gif) | ![](https://amigaworld.net/images/subject/icon41.gif) |
Auto Power-Off for SAM440-based Systems Posted on 22-May-2012 8:23:07
| | [ #1 ] |
|
|
![](https://amigaworld.net/images/avatar/users/5829.jpg) |
Cult Member ![](https://amigaworld.net/images/ranks/3blocks.gif) |
Joined: 20-Oct-2006 Posts: 747
From: Havixbeck / Germany | | |
|
| I´m planning to build a little hardware-adapter to power off your sam by just pressing a button e.g. in amidock. A little commodity will first lock all drives and then waiting for finished disk activities and then turn off the computer by sending a "power off signal" to my small circuit. Basicly its a simple relay-circuit that is parallel-connected to the power on/off-button.
It´s planned that is connected to the serial-Port of the sam but i have to know is there a simple way to sending a command to serial by console? Last edited by fingus on 22-May-2012 at 08:23 AM.
_________________ I´m back in 2023 on Classic Amiga with my A1200/Blizzard1230IB@50Mhz, 32MB RAM, AmigaOS3.2 and ROMs, Indivision AGA MK3, Author of Amiga-Flipclock (OS4) |
|
Status: Offline |
|
|
AmigaOneProductions
| ![](https://amigaworld.net/images/icons/posticon.gif) |
Re: Auto Power-Off for SAM440-based Systems Posted on 22-May-2012 14:33:52
| | [ #2 ] |
|
|
![](https://amigaworld.net/images/avatar/users/5273.jpg) |
Cult Member ![](https://amigaworld.net/images/ranks/3blocks.gif) |
Joined: 11-Jan-2006 Posts: 717
From: Ingle land | | |
|
| @fingus
I have been thinking of something along similar lines, my idea was to connect to one of the internal connectors and then sending a signal to one of the data lines, ACube released some info on that some time ago if I remember, but I never got as far as making an interface.
The circuit to switch on and off looks simple enough, a relay controlled by a transisitor connected to a data line would do the trick if you want to open and close the power switch.
To take this further, you could have something watching for activity on another data line, which is controlled by a program running on startup, if that activity stops, the amiga has froze and needs a reset. so we have another relay pressing the reset button for us. (A Watchdog Timer)
Edit: Seems the info from Acube is for programming the FPGA, so might not be quite as helpful as I first thought ![](https://amigaworld.net/images/smilies/icon_frown.gif) Last edited by AmigaOneProductions on 22-May-2012 at 02:44 PM.
_________________ Glass coffins, a success? Remains to be seen. |
|
Status: Offline |
|
|
padrino
| ![](https://amigaworld.net/images/icons/posticon.gif) |
Re: Auto Power-Off for SAM440-based Systems Posted on 22-May-2012 15:02:42
| | [ #3 ] |
|
|
![](https://amigaworld.net/images/avatar/users/3073.gif) |
Regular Member ![](https://amigaworld.net/images/ranks/2blocks.gif) |
Joined: 26-Jun-2004 Posts: 486
From: Germany | | |
|
| @fingus
Is command just a string? Then maybe you could use
- SerialEcho or - echo2debug
CU, Mario _________________ ********** AMIGA - More Than Just Standard ********** |
|
Status: Offline |
|
|
KimmoK
| ![](https://amigaworld.net/images/icons/posticon.gif) |
Re: Auto Power-Off for SAM440-based Systems Posted on 22-May-2012 16:56:23
| | [ #4 ] |
|
|
![](https://amigaworld.net/images/avatar/users/554.jpg) |
Elite Member ![](https://amigaworld.net/images/ranks/5blocks.gif) |
Joined: 14-Mar-2003 Posts: 5211
From: Ylikiiminki, Finland | | |
|
| Once a friend of mine had a system how he could control A1200 power on/off from the (separate, modded from A500) keyboard. IIRC it also had SW poweroff, but after one power on-off loop error, he removed the SW part of it. ![](https://amigaworld.net/images/smilies/icon_wink.gif)
His solution was to leave the keyboard power on and with some key combination he powered PSU on and off. IMHO, it was cool solution. You could have a computer case with no buttons on the case at all. (in real life his diy case was full of buttons (amplifier control, video switch box etc), just not the power button ) Last edited by KimmoK on 22-May-2012 at 05:00 PM. Last edited by KimmoK on 22-May-2012 at 04:58 PM.
_________________ - KimmoK // For freedom, for honor, for AMIGA // // Thing that I should find more time for: CC64 - 64bit Community Computer? |
|
Status: Offline |
|
|
ChrisH
![](https://amigaworld.net/images/supportertags/silver.gif) | ![](https://amigaworld.net/images/icons/posticon.gif) |
Re: Auto Power-Off for SAM440-based Systems Posted on 22-May-2012 18:44:10
| | [ #5 ] |
|
|
![](https://amigaworld.net/images/avatar/users/4108.gif) |
Elite Member ![](https://amigaworld.net/images/ranks/5blocks.gif) |
Joined: 30-Jan-2005 Posts: 6679
From: Unknown | | |
|
| @fingus Why bother using the big external serial port, when you could use the Sam's small internal I2C serial bus? ACube even released AmigaOS support for it, IIRC. Just an idea anyway. _________________ Author of the PortablE programming language. It is pitch black. You are likely to be eaten by a grue... |
|
Status: Offline |
|
|
Daedalus
| ![](https://amigaworld.net/images/icons/posticon.gif) |
Re: Auto Power-Off for SAM440-based Systems Posted on 22-May-2012 18:47:49
| | [ #6 ] |
|
|
![](https://amigaworld.net/images/avatar/users/1257.jpg) |
Super Member ![](https://amigaworld.net/images/ranks/4blocks.gif) |
Joined: 14-Jul-2003 Posts: 1680
From: Glasgow - UK, Irish born | | |
|
| @ChrisH
Seconded. If you're using actual message decoding (rather than just using the level of one of the serial lines), then it would be just as easy to use the I2C bus, leaving the serial port free for things like debugging, connecting old Amigas, running case LCD modules etc... _________________ RobTheNerd.com | InstallerGen | SMBMounter | Atoms-X |
|
Status: Offline |
|
|
Chris_Y
| ![](https://amigaworld.net/images/icons/posticon.gif) |
Re: Auto Power-Off for SAM440-based Systems Posted on 22-May-2012 23:02:52
| | [ #7 ] |
|
|
![](https://amigaworld.net/images/avatar/users/1140.jpg) |
Elite Member ![](https://amigaworld.net/images/ranks/5blocks.gif) |
Joined: 21-Jun-2003 Posts: 3205
From: Beds, UK | | |
|
| @fingus
A proper Amiga-style hardware hack for the SAM!
I'd agree with the i2c suggestions. However, if you insist on using serial then sending commands to the serial port using C is dead easy. This is as good a starting point as any: http://wiki.amigaos.net/index.php/Serial_Device#Serial_Device
_________________ "Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion Avatar is Tabitha by Eric W Schwartz |
|
Status: Offline |
|
|
fingus
![](https://amigaworld.net/images/supportertags/bronze.gif) | ![](https://amigaworld.net/images/icons/posticon.gif) |
Re: Auto Power-Off for SAM440-based Systems Posted on 23-May-2012 8:25:13
| | [ #8 ] |
|
|
![](https://amigaworld.net/images/avatar/users/5829.jpg) |
Cult Member ![](https://amigaworld.net/images/ranks/3blocks.gif) |
Joined: 20-Oct-2006 Posts: 747
From: Havixbeck / Germany | | |
|
| @KimmoK
Quote:
but after one power on-off loop error, he removed the SW part of it. |
That should not be happen with this circuit:
![](http://www.insane-software.de/poweroff.gif)
Now i have to collect Informations how to send signals to the I2C Bus._________________ I´m back in 2023 on Classic Amiga with my A1200/Blizzard1230IB@50Mhz, 32MB RAM, AmigaOS3.2 and ROMs, Indivision AGA MK3, Author of Amiga-Flipclock (OS4) |
|
Status: Offline |
|
|
Templario
![](https://amigaworld.net/images/supportertags/gold.gif) | ![](https://amigaworld.net/images/subject/icon1.gif) |
Re: Auto Power-Off for SAM440-based Systems Posted on 23-May-2012 10:01:21
| | [ #9 ] |
|
|
![](https://amigaworld.net/images/avatar/users/3060.jpg) |
Elite Member ![](https://amigaworld.net/images/ranks/5blocks.gif) |
Joined: 22-Jun-2004 Posts: 3665
From: Unknown | | |
|
| @fingus The big forgot from Acube, the PowerOff via software as other systems, instead of nostalgic system from Amiga 500. At least turn off via software the hard disk would suffer less..... |
|
Status: Offline |
|
|
Hypex
![](https://amigaworld.net/images/supportertags/bronze.gif) | ![](https://amigaworld.net/images/icons/posticon.gif) |
Re: Auto Power-Off for SAM440-based Systems Posted on 23-May-2012 12:44:36
| | [ #10 ] |
|
|
![](https://amigaworld.net/images/avatar/users/6241.jpeg) |
Elite Member ![](https://amigaworld.net/images/ranks/5blocks.gif) |
Joined: 6-May-2007 Posts: 11245
From: Greensborough, Australia | | |
|
| @fingus
Why do you need to build a circuit? Doesn't the Sam have proper power off circuitry? I thought since the AmigaOne the Sam series fixed all these faults so we had standard working hardware. Makes me womder what the point is if they can't get a simple standard right. It never ends!
You shoud be able to turn your system off using no more than software. Does that mean even Linux can't turn the system off? ![](https://amigaworld.net/images/smilies/icon_eek.gif)
I hope my X1000 can be turned off via software. Needing to hold down the power button for four seconds is looking a bit backwards right now! |
|
Status: Offline |
|
|
TrevorDick
![](https://amigaworld.net/images/supportertags/silver.gif) | ![](https://amigaworld.net/images/icons/posticon.gif) |
Re: Auto Power-Off for SAM440-based Systems Posted on 23-May-2012 12:50:50
| | [ #11 ] |
|
|
![](https://amigaworld.net/images/avatar/users/3800.gif) |
Elite Member ![](https://amigaworld.net/images/ranks/5blocks.gif) |
Joined: 30-Dec-2004 Posts: 2678
From: Wellington | | |
|
| @Hypex
Quote:
I hope my X1000 can be turned off via software. Needing to hold down the power button for four seconds is looking a bit backwards right now! |
Ah, it looks like someone has been talking! ![](https://amigaworld.net/images/smilies/icon_wink.gif)
Yes, you wll be able to perform a software power down on your AMIGA1-X1000 ![](https://amigaworld.net/images/smilies/icon_smile.gif)
TrevorD_________________ No, I don't need no reason, I'm just breezin' |
|
Status: Offline |
|
|
Hypex
![](https://amigaworld.net/images/supportertags/bronze.gif) | ![](https://amigaworld.net/images/icons/posticon.gif) |
Re: Auto Power-Off for SAM440-based Systems Posted on 23-May-2012 16:06:37
| | [ #12 ] |
|
|
![](https://amigaworld.net/images/avatar/users/6241.jpeg) |
Elite Member ![](https://amigaworld.net/images/ranks/5blocks.gif) |
Joined: 6-May-2007 Posts: 11245
From: Greensborough, Australia | | |
|
| @TrevorDick
Excellent. Thanks for the news. Oh BTW I was hoping, as I'd never investigated the subject. ![](https://amigaworld.net/images/smilies/icon_wink.gif) |
|
Status: Offline |
|
|
padrino
| ![](https://amigaworld.net/images/icons/posticon.gif) |
Re: Auto Power-Off for SAM440-based Systems Posted on 23-May-2012 23:44:10
| | [ #13 ] |
|
|
![](https://amigaworld.net/images/avatar/users/3073.gif) |
Regular Member ![](https://amigaworld.net/images/ranks/2blocks.gif) |
Joined: 26-Jun-2004 Posts: 486
From: Germany | | |
|
| @Templario
Quote:
At least turn off via software the hard disk would suffer less..... |
Interessting statement.
Especially as I asked a similar/realted question and got a completely differnt answer/opinion. ![](https://amigaworld.net/images/smilies/icon_biggrin.gif)
CU, Mario_________________ ********** AMIGA - More Than Just Standard ********** |
|
Status: Offline |
|
|
AmigaOneProductions
| ![](https://amigaworld.net/images/icons/posticon.gif) |
Re: Auto Power-Off for SAM440-based Systems Posted on 24-May-2012 10:46:54
| | [ #14 ] |
|
|
![](https://amigaworld.net/images/avatar/users/5273.jpg) |
Cult Member ![](https://amigaworld.net/images/ranks/3blocks.gif) |
Joined: 11-Jan-2006 Posts: 717
From: Ingle land | | |
|
| @fingus
Something else I have been looking into to achieve the same result
USB controlled power strip
It would probably need some driver software writing for it, but would probably work quite well
I have not found where to buy it from yet, so have no idea of cost, but might be an easier option
_________________ Glass coffins, a success? Remains to be seen. |
|
Status: Offline |
|
|
m3x
| ![](https://amigaworld.net/images/icons/posticon.gif) |
Re: Auto Power-Off for SAM440-based Systems Posted on 24-May-2012 11:12:24
| | [ #15 ] |
|
|
![](https://amigaworld.net/images/avatar/users/934.gif) |
Regular Member ![](https://amigaworld.net/images/ranks/2blocks.gif) |
Joined: 15-May-2003 Posts: 311
From: Bologna, Italy | | |
|
| @fingus
The Sam440ep may switch-off with some firmware modifications.
On the big sister Sam460ex it's already possible to switch off the board from U-Boot with the "shutdown" command.
This command writes a value into a FPGA register, which modify the state of one of its IO pin connected to the PIC microcontroller responsible for the switch on / off and reset functions (U-Boot source are available on our website)
The Sam440ep board has the same hardware auto switch off function of the Sam460ex but:
- the FPGA firmware is lacking the register to comunicate to the PIC microcontroller to "switch off" - the PIC firmware needs to be modified
Sam440ep FPGA firmware sources, and instructions on how to reflash the FPGA are available on OS4Depot and our web site (sam440ep_latticexp.lha) and we can provide the PIC firmware source code (or provide a compiled hex file)
Hope this helps
_________________ Massimiliano Tretene, ACube Systems, Soft3 |
|
Status: Offline |
|
|
Templario
![](https://amigaworld.net/images/supportertags/gold.gif) | ![](https://amigaworld.net/images/subject/icon18.gif) |
Re: Auto Power-Off for SAM440-based Systems Posted on 24-May-2012 22:42:39
| | [ #16 ] |
|
|
![](https://amigaworld.net/images/avatar/users/3060.jpg) |
Elite Member ![](https://amigaworld.net/images/ranks/5blocks.gif) |
Joined: 22-Jun-2004 Posts: 3665
From: Unknown | | |
|
| @padrino
Hey friend, your post has date of: Posted on 22-May-2012 15:07:35 I that days I hadn't one Sam or two, I have my Sam three years ago, and in 2004 only I have my Amiga 500 and WinUAE, and neither Internet regualr accces to answer you. |
|
Status: Offline |
|
|
padrino
| ![](https://amigaworld.net/images/icons/posticon.gif) |
Re: Auto Power-Off for SAM440-based Systems Posted on 31-May-2012 21:58:30
| | [ #17 ] |
|
|
![](https://amigaworld.net/images/avatar/users/3073.gif) |
Regular Member ![](https://amigaworld.net/images/ranks/2blocks.gif) |
Joined: 26-Jun-2004 Posts: 486
From: Germany | | |
|
| @Templario
What? ![](https://amigaworld.net/images/smilies/icon_cool.gif)
The post was from "yesterday" (that day ). As you state 22nd May 2012. ![](https://amigaworld.net/images/smilies/icon_biggrin.gif)
I just found it interessting, that you opinion was the oposite to BrianK's, which makes a 1:1 and I am as clueless as before... =)
CU, Mario
_________________ ********** AMIGA - More Than Just Standard ********** |
|
Status: Offline |
|
|
Templario
![](https://amigaworld.net/images/supportertags/gold.gif) | ![](https://amigaworld.net/images/subject/icon18.gif) |
Re: Auto Power-Off for SAM440-based Systems Posted on 3-Jun-2012 8:43:26
| | [ #18 ] |
|
|
![](https://amigaworld.net/images/avatar/users/3060.jpg) |
Elite Member ![](https://amigaworld.net/images/ranks/5blocks.gif) |
Joined: 22-Jun-2004 Posts: 3665
From: Unknown | | |
|
| @padrino
Ok, we don't argue with you, +1 or more. |
|
Status: Offline |
|
|