|
SunSPOT host API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IBootloaderTarget
IBootloaderTarget allows data to be sent to and from the bootloader executing on a SPOT connected locally.
It should be used in the context of executing an ISpotClientCommand
and obtained via
ISpotManager.getBootloaderTarget()
Method Summary | |
---|---|
void |
flashBootloader(Flashable flashable,
int minHardwareRev,
int maxHardwareRev)
Flash the bootloader. |
void |
flashBootstrap(Flashable flashable)
Flash a bootstrap suite. |
void |
flashConfig(Flashable configPageData)
Flash the config page |
void |
flashLib(Flashable flashable,
int hash)
Flash a library suite. |
void |
flashManufacturingImage(Flashable imageContents)
Flash a manufacturing image. |
void |
flashVM(Flashable flashable)
Flash the VM executable |
byte[] |
getConfigPageContents()
Answer the raw data of the config page. |
byte[] |
readSector(int sectorNumber)
Return the contents of the given sector in the target's flash memory. |
void |
reset()
Restart the SPOT's processor. |
String |
startAdminVM()
Start the VM in admin mode: that is, running only the admin processor to deal with commands received via a local connection. |
void |
startVM()
Start the VM in normal mode (that is, running an application or the basestation or whatever else has been configured). |
String |
synchronize()
Synchronise with the SPOT. |
void |
upgradePrePurpleBootloader(Flashable bootloaderContents)
Flash the bootloader of a SPOT whose current bootloader predates the purple release. |
String |
waitForExit()
Wait for the VM to exit. |
Method Detail |
---|
void flashBootstrap(Flashable flashable) throws IOException
flashable
- the suite contents
IOException
void flashVM(Flashable flashable) throws IOException
flashable
- the executable
IOException
byte[] readSector(int sectorNumber) throws IOException
sectorNumber
-
IOException
void flashConfig(Flashable configPageData) throws IOException
configPageData
-
IOException
byte[] getConfigPageContents() throws IOException
ConfigPage
is via ISpotClientCommandHelper.getConfigPage()
.
IOException
String synchronize() throws IOException
IOException
void flashBootloader(Flashable flashable, int minHardwareRev, int maxHardwareRev) throws IOException
flashable
- the bootloader contentsminHardwareRev
- the lowest hardware revision applicable for this version of the SDKmaxHardwareRev
- the highest hardware revision applicable for this version of the SDK
IOException
void reset() throws IOException
IOException
void flashManufacturingImage(Flashable imageContents) throws IOException
imageContents
- the image contents
IOException
void startVM() throws IOException
IOException
String startAdminVM() throws IOException
IOException
String waitForExit() throws IOException
IOException
void flashLib(Flashable flashable, int hash) throws IOException
flashable
- the suite contentshash
- the hash of the library suite in canonical form (see Suite.getHash()
).
IOException
void upgradePrePurpleBootloader(Flashable bootloaderContents) throws IOException
bootloaderContents
-
IOException
|
SunSPOT host API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |