Click Here
home features news forums classifieds faqs links search
6071 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
0 crawler(s) on-line.
 101 guest(s) on-line.
 3 member(s) on-line.


 kolla,  Hammer,  MagicSN

You are an anonymous user.
Register Now!
 Hammer:  1 secs ago
 MagicSN:  2 mins ago
 kolla:  4 mins ago
 DWolfman:  22 mins ago
 bhabbott:  32 mins ago
 AmigaPapst:  53 mins ago
 amigakit:  1 hr 1 min ago
 Beajar:  1 hr 15 mins ago
 VooDoo:  1 hr 45 mins ago
 amigang:  2 hrs 18 mins ago

/  Forum Index
   /  Amiga OS4 Hardware
      /  Auto Power-Off for SAM440-based Systems
Register To Post

PosterThread
fingus 
Auto Power-Off for SAM440-based Systems
Posted on 22-May-2012 8:23:07
#1 ]
Cult Member
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
Profile     Report this post  
AmigaOneProductions 
Re: Auto Power-Off for SAM440-based Systems
Posted on 22-May-2012 14:33:52
#2 ]
Cult Member
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

Last edited by AmigaOneProductions on 22-May-2012 at 02:44 PM.

_________________
Glass coffins, a success?
Remains to be seen.

 Status: Offline
Profile     Report this post  
padrino 
Re: Auto Power-Off for SAM440-based Systems
Posted on 22-May-2012 15:02:42
#3 ]
Regular Member
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
Profile     Report this post  
KimmoK 
Re: Auto Power-Off for SAM440-based Systems
Posted on 22-May-2012 16:56:23
#4 ]
Elite Member
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.

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
Profile     Report this post  
ChrisH 
Re: Auto Power-Off for SAM440-based Systems
Posted on 22-May-2012 18:44:10
#5 ]
Elite Member
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
Profile     Report this post  
Daedalus 
Re: Auto Power-Off for SAM440-based Systems
Posted on 22-May-2012 18:47:49
#6 ]
Super Member
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
Profile     Report this post  
Chris_Y 
Re: Auto Power-Off for SAM440-based Systems
Posted on 22-May-2012 23:02:52
#7 ]
Elite Member
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
Profile     Report this post  
fingus 
Re: Auto Power-Off for SAM440-based Systems
Posted on 23-May-2012 8:25:13
#8 ]
Cult Member
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:



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
Profile     Report this post  
Templario 
Re: Auto Power-Off for SAM440-based Systems
Posted on 23-May-2012 10:01:21
#9 ]
Elite Member
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
Profile     Report this post  
Hypex 
Re: Auto Power-Off for SAM440-based Systems
Posted on 23-May-2012 12:44:36
#10 ]
Elite Member
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?



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
Profile     Report this post  
TrevorDick 
Re: Auto Power-Off for SAM440-based Systems
Posted on 23-May-2012 12:50:50
#11 ]
Elite Member
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!

Yes, you wll be able to perform a software power down on your AMIGA1-X1000

TrevorD

_________________
No, I don't need no reason, I'm just breezin'

 Status: Offline
Profile     Report this post  
Hypex 
Re: Auto Power-Off for SAM440-based Systems
Posted on 23-May-2012 16:06:37
#12 ]
Elite Member
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.

 Status: Offline
Profile     Report this post  
padrino 
Re: Auto Power-Off for SAM440-based Systems
Posted on 23-May-2012 23:44:10
#13 ]
Regular Member
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.

CU,
Mario

_________________
********** AMIGA - More Than Just Standard **********

 Status: Offline
Profile     Report this post  
AmigaOneProductions 
Re: Auto Power-Off for SAM440-based Systems
Posted on 24-May-2012 10:46:54
#14 ]
Cult Member
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
Profile     Report this post  
m3x 
Re: Auto Power-Off for SAM440-based Systems
Posted on 24-May-2012 11:12:24
#15 ]
Regular Member
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
Profile     Report this post  
Templario 
Re: Auto Power-Off for SAM440-based Systems
Posted on 24-May-2012 22:42:39
#16 ]
Elite Member
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
Profile     Report this post  
padrino 
Re: Auto Power-Off for SAM440-based Systems
Posted on 31-May-2012 21:58:30
#17 ]
Regular Member
Joined: 26-Jun-2004
Posts: 486
From: Germany

@Templario

What?

The post was from "yesterday" (that day ).
As you state 22nd May 2012.

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
Profile     Report this post  
Templario 
Re: Auto Power-Off for SAM440-based Systems
Posted on 3-Jun-2012 8:43:26
#18 ]
Elite Member
Joined: 22-Jun-2004
Posts: 3665
From: Unknown

@padrino

Ok, we don't argue with you, +1 or more.

 Status: Offline
Profile     Report this post  

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle