Package com.pi4j.system.impl
Class RaspiSystemInfoProvider
- java.lang.Object
- 
- com.pi4j.system.impl.SystemInfoProviderBase
- 
- com.pi4j.system.impl.DefaultSystemInfoProvider
- 
- com.pi4j.system.impl.RaspiSystemInfoProvider
 
 
 
- 
- All Implemented Interfaces:
- SystemInfoProvider
 
 public class RaspiSystemInfoProvider extends DefaultSystemInfoProvider implements SystemInfoProvider Raspberry Pi platform specific implementation of the SystemInfoProvider interface.
- 
- 
Field SummaryFields Modifier and Type Field Description static shortRPI_MFG_EGOMANstatic shortRPI_MFG_EMBESTstatic shortRPI_MFG_EMBEST2static shortRPI_MFG_SONYstatic shortRPI_MFG_UNKNOWNstatic shortRPI_MODEL_2Bstatic shortRPI_MODEL_3A_PLUSstatic shortRPI_MODEL_3Bstatic shortRPI_MODEL_3B_PLUSstatic shortRPI_MODEL_400static shortRPI_MODEL_4Bstatic shortRPI_MODEL_Astatic shortRPI_MODEL_A_PLUSstatic shortRPI_MODEL_ALPHAstatic shortRPI_MODEL_Bstatic shortRPI_MODEL_B_PLUSstatic shortRPI_MODEL_CMstatic shortRPI_MODEL_CM3static shortRPI_MODEL_CM3_PLUSstatic shortRPI_MODEL_CM4static shortRPI_MODEL_UNKNOWNstatic shortRPI_MODEL_ZEROstatic shortRPI_MODEL_ZERO_Wstatic shortRPI_PROC_BCM2835static shortRPI_PROC_BCM2836static shortRPI_PROC_BCM2837static shortRPI_RAM_1024static shortRPI_RAM_256static shortRPI_RAM_512
 - 
Constructor SummaryConstructors Constructor Description RaspiSystemInfoProvider()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description SystemInfo.BoardTypegetBoardType()longgetClockFrequencyArm()longgetClockFrequencyCore()longgetClockFrequencyDPI()longgetClockFrequencyEMMC()longgetClockFrequencyH264()longgetClockFrequencyHDMI()longgetClockFrequencyISP()longgetClockFrequencyPixel()longgetClockFrequencyPWM()longgetClockFrequencyUART()longgetClockFrequencyV3D()longgetClockFrequencyVEC()booleangetCodecH264Enabled()booleangetCodecMPG2Enabled()booleangetCodecWVC1Enabled()floatgetCpuTemperature()floatgetCpuVoltage()floatgetMemoryVoltageSDRam_C()floatgetMemoryVoltageSDRam_I()floatgetMemoryVoltageSDRam_P()StringgetModelName()StringgetOsFirmwareBuild()StringgetOsFirmwareDate()- 
Methods inherited from class com.pi4j.system.impl.DefaultSystemInfoProvidergetBashVersionInfo, getBogoMIPS, getCpuArchitecture, getCpuFeatures, getCpuImplementer, getCpuInfo, getCpuPart, getCpuRevision, getCpuVariant, getHardware, getJavaRuntime, getJavaVendor, getJavaVendorUrl, getJavaVersion, getJavaVirtualMachine, getMemory, getMemoryBuffers, getMemoryCached, getMemoryFree, getMemoryShared, getMemoryTotal, getMemoryUsed, getOsArch, getOsName, getOsVersion, getProcessor, getReadElfTag, getRevision, getSerial, hasReadElfTag, isHardFloatAbi
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.pi4j.system.SystemInfoProvidergetBogoMIPS, getCpuArchitecture, getCpuFeatures, getCpuImplementer, getCpuPart, getCpuRevision, getCpuVariant, getHardware, getJavaRuntime, getJavaVendor, getJavaVendorUrl, getJavaVersion, getJavaVirtualMachine, getMemoryBuffers, getMemoryCached, getMemoryFree, getMemoryShared, getMemoryTotal, getMemoryUsed, getOsArch, getOsName, getOsVersion, getProcessor, getRevision, getSerial, isHardFloatAbi
 
- 
 
- 
- 
- 
Field Detail- 
RPI_MODEL_Apublic static final short RPI_MODEL_A - See Also:
- Constant Field Values
 
 - 
RPI_MODEL_Bpublic static final short RPI_MODEL_B - See Also:
- Constant Field Values
 
 - 
RPI_MODEL_A_PLUSpublic static final short RPI_MODEL_A_PLUS - See Also:
- Constant Field Values
 
 - 
RPI_MODEL_B_PLUSpublic static final short RPI_MODEL_B_PLUS - See Also:
- Constant Field Values
 
 - 
RPI_MODEL_2Bpublic static final short RPI_MODEL_2B - See Also:
- Constant Field Values
 
 - 
RPI_MODEL_ALPHApublic static final short RPI_MODEL_ALPHA - See Also:
- Constant Field Values
 
 - 
RPI_MODEL_CMpublic static final short RPI_MODEL_CM - See Also:
- Constant Field Values
 
 - 
RPI_MODEL_UNKNOWNpublic static final short RPI_MODEL_UNKNOWN - See Also:
- Constant Field Values
 
 - 
RPI_MODEL_3Bpublic static final short RPI_MODEL_3B - See Also:
- Constant Field Values
 
 - 
RPI_MODEL_ZEROpublic static final short RPI_MODEL_ZERO - See Also:
- Constant Field Values
 
 - 
RPI_MODEL_CM3public static final short RPI_MODEL_CM3 - See Also:
- Constant Field Values
 
 - 
RPI_MODEL_ZERO_Wpublic static final short RPI_MODEL_ZERO_W - See Also:
- Constant Field Values
 
 - 
RPI_MODEL_3B_PLUSpublic static final short RPI_MODEL_3B_PLUS - See Also:
- Constant Field Values
 
 - 
RPI_MODEL_3A_PLUSpublic static final short RPI_MODEL_3A_PLUS - See Also:
- Constant Field Values
 
 - 
RPI_MODEL_CM3_PLUSpublic static final short RPI_MODEL_CM3_PLUS - See Also:
- Constant Field Values
 
 - 
RPI_MODEL_4Bpublic static final short RPI_MODEL_4B - See Also:
- Constant Field Values
 
 - 
RPI_MODEL_400public static final short RPI_MODEL_400 - See Also:
- Constant Field Values
 
 - 
RPI_MODEL_CM4public static final short RPI_MODEL_CM4 - See Also:
- Constant Field Values
 
 - 
RPI_RAM_256public static final short RPI_RAM_256 - See Also:
- Constant Field Values
 
 - 
RPI_RAM_512public static final short RPI_RAM_512 - See Also:
- Constant Field Values
 
 - 
RPI_RAM_1024public static final short RPI_RAM_1024 - See Also:
- Constant Field Values
 
 - 
RPI_MFG_SONYpublic static final short RPI_MFG_SONY - See Also:
- Constant Field Values
 
 - 
RPI_MFG_EGOMANpublic static final short RPI_MFG_EGOMAN - See Also:
- Constant Field Values
 
 - 
RPI_MFG_EMBESTpublic static final short RPI_MFG_EMBEST - See Also:
- Constant Field Values
 
 - 
RPI_MFG_UNKNOWNpublic static final short RPI_MFG_UNKNOWN - See Also:
- Constant Field Values
 
 - 
RPI_MFG_EMBEST2public static final short RPI_MFG_EMBEST2 - See Also:
- Constant Field Values
 
 - 
RPI_PROC_BCM2835public static final short RPI_PROC_BCM2835 - See Also:
- Constant Field Values
 
 - 
RPI_PROC_BCM2836public static final short RPI_PROC_BCM2836 - See Also:
- Constant Field Values
 
 - 
RPI_PROC_BCM2837public static final short RPI_PROC_BCM2837 - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getModelNamepublic String getModelName() throws IOException, InterruptedException, UnsupportedOperationException - Specified by:
- getModelNamein interface- SystemInfoProvider
- Overrides:
- getModelNamein class- SystemInfoProviderBase
- Throws:
- IOException
- InterruptedException
- UnsupportedOperationException
 
 - 
getOsFirmwareBuildpublic String getOsFirmwareBuild() throws IOException, InterruptedException, UnsupportedOperationException - Specified by:
- getOsFirmwareBuildin interface- SystemInfoProvider
- Overrides:
- getOsFirmwareBuildin class- SystemInfoProviderBase
- Throws:
- IOException
- InterruptedException
- UnsupportedOperationException
 
 - 
getOsFirmwareDatepublic String getOsFirmwareDate() throws IOException, InterruptedException, ParseException, UnsupportedOperationException - Specified by:
- getOsFirmwareDatein interface- SystemInfoProvider
- Overrides:
- getOsFirmwareDatein class- SystemInfoProviderBase
- Throws:
- IOException
- InterruptedException
- ParseException
- UnsupportedOperationException
 
 - 
getBoardTypepublic SystemInfo.BoardType getBoardType() throws IOException, InterruptedException, UnsupportedOperationException - Specified by:
- getBoardTypein interface- SystemInfoProvider
- Overrides:
- getBoardTypein class- SystemInfoProviderBase
- Throws:
- IOException
- InterruptedException
- UnsupportedOperationException
 
 - 
getCpuTemperaturepublic float getCpuTemperature() throws IOException, InterruptedException, NumberFormatException, UnsupportedOperationException- Specified by:
- getCpuTemperaturein interface- SystemInfoProvider
- Overrides:
- getCpuTemperaturein class- SystemInfoProviderBase
- Throws:
- IOException
- InterruptedException
- NumberFormatException
- UnsupportedOperationException
 
 - 
getCpuVoltagepublic float getCpuVoltage() throws IOException, InterruptedException, NumberFormatException, UnsupportedOperationException- Specified by:
- getCpuVoltagein interface- SystemInfoProvider
- Overrides:
- getCpuVoltagein class- SystemInfoProviderBase
- Throws:
- IOException
- InterruptedException
- NumberFormatException
- UnsupportedOperationException
 
 - 
getMemoryVoltageSDRam_Cpublic float getMemoryVoltageSDRam_C() throws IOException, InterruptedException, NumberFormatException, UnsupportedOperationException- Specified by:
- getMemoryVoltageSDRam_Cin interface- SystemInfoProvider
- Overrides:
- getMemoryVoltageSDRam_Cin class- SystemInfoProviderBase
- Throws:
- IOException
- InterruptedException
- NumberFormatException
- UnsupportedOperationException
 
 - 
getMemoryVoltageSDRam_Ipublic float getMemoryVoltageSDRam_I() throws IOException, InterruptedException, NumberFormatException, UnsupportedOperationException- Specified by:
- getMemoryVoltageSDRam_Iin interface- SystemInfoProvider
- Overrides:
- getMemoryVoltageSDRam_Iin class- SystemInfoProviderBase
- Throws:
- IOException
- InterruptedException
- NumberFormatException
- UnsupportedOperationException
 
 - 
getMemoryVoltageSDRam_Ppublic float getMemoryVoltageSDRam_P() throws IOException, InterruptedException, NumberFormatException, UnsupportedOperationException- Specified by:
- getMemoryVoltageSDRam_Pin interface- SystemInfoProvider
- Overrides:
- getMemoryVoltageSDRam_Pin class- SystemInfoProviderBase
- Throws:
- IOException
- InterruptedException
- NumberFormatException
- UnsupportedOperationException
 
 - 
getCodecH264Enabledpublic boolean getCodecH264Enabled() throws IOException, InterruptedException, UnsupportedOperationException- Specified by:
- getCodecH264Enabledin interface- SystemInfoProvider
- Overrides:
- getCodecH264Enabledin class- SystemInfoProviderBase
- Throws:
- IOException
- InterruptedException
- UnsupportedOperationException
 
 - 
getCodecMPG2Enabledpublic boolean getCodecMPG2Enabled() throws IOException, InterruptedException, UnsupportedOperationException- Specified by:
- getCodecMPG2Enabledin interface- SystemInfoProvider
- Overrides:
- getCodecMPG2Enabledin class- SystemInfoProviderBase
- Throws:
- IOException
- InterruptedException
- UnsupportedOperationException
 
 - 
getCodecWVC1Enabledpublic boolean getCodecWVC1Enabled() throws IOException, InterruptedException, UnsupportedOperationException- Specified by:
- getCodecWVC1Enabledin interface- SystemInfoProvider
- Overrides:
- getCodecWVC1Enabledin class- SystemInfoProviderBase
- Throws:
- IOException
- InterruptedException
- UnsupportedOperationException
 
 - 
getClockFrequencyArmpublic long getClockFrequencyArm() throws IOException, InterruptedException, UnsupportedOperationException- Specified by:
- getClockFrequencyArmin interface- SystemInfoProvider
- Overrides:
- getClockFrequencyArmin class- SystemInfoProviderBase
- Throws:
- IOException
- InterruptedException
- UnsupportedOperationException
 
 - 
getClockFrequencyCorepublic long getClockFrequencyCore() throws IOException, InterruptedException, UnsupportedOperationException- Specified by:
- getClockFrequencyCorein interface- SystemInfoProvider
- Overrides:
- getClockFrequencyCorein class- SystemInfoProviderBase
- Throws:
- IOException
- InterruptedException
- UnsupportedOperationException
 
 - 
getClockFrequencyH264public long getClockFrequencyH264() throws IOException, InterruptedException, UnsupportedOperationException- Specified by:
- getClockFrequencyH264in interface- SystemInfoProvider
- Overrides:
- getClockFrequencyH264in class- SystemInfoProviderBase
- Throws:
- IOException
- InterruptedException
- UnsupportedOperationException
 
 - 
getClockFrequencyISPpublic long getClockFrequencyISP() throws IOException, InterruptedException, UnsupportedOperationException- Specified by:
- getClockFrequencyISPin interface- SystemInfoProvider
- Overrides:
- getClockFrequencyISPin class- SystemInfoProviderBase
- Throws:
- IOException
- InterruptedException
- UnsupportedOperationException
 
 - 
getClockFrequencyV3Dpublic long getClockFrequencyV3D() throws IOException, InterruptedException, UnsupportedOperationException- Specified by:
- getClockFrequencyV3Din interface- SystemInfoProvider
- Overrides:
- getClockFrequencyV3Din class- SystemInfoProviderBase
- Throws:
- IOException
- InterruptedException
- UnsupportedOperationException
 
 - 
getClockFrequencyUARTpublic long getClockFrequencyUART() throws IOException, InterruptedException, UnsupportedOperationException- Specified by:
- getClockFrequencyUARTin interface- SystemInfoProvider
- Overrides:
- getClockFrequencyUARTin class- SystemInfoProviderBase
- Throws:
- IOException
- InterruptedException
- UnsupportedOperationException
 
 - 
getClockFrequencyPWMpublic long getClockFrequencyPWM() throws IOException, InterruptedException, UnsupportedOperationException- Specified by:
- getClockFrequencyPWMin interface- SystemInfoProvider
- Overrides:
- getClockFrequencyPWMin class- SystemInfoProviderBase
- Throws:
- IOException
- InterruptedException
- UnsupportedOperationException
 
 - 
getClockFrequencyEMMCpublic long getClockFrequencyEMMC() throws IOException, InterruptedException, UnsupportedOperationException- Specified by:
- getClockFrequencyEMMCin interface- SystemInfoProvider
- Overrides:
- getClockFrequencyEMMCin class- SystemInfoProviderBase
- Throws:
- IOException
- InterruptedException
- UnsupportedOperationException
 
 - 
getClockFrequencyPixelpublic long getClockFrequencyPixel() throws IOException, InterruptedException, UnsupportedOperationException- Specified by:
- getClockFrequencyPixelin interface- SystemInfoProvider
- Overrides:
- getClockFrequencyPixelin class- SystemInfoProviderBase
- Throws:
- IOException
- InterruptedException
- UnsupportedOperationException
 
 - 
getClockFrequencyVECpublic long getClockFrequencyVEC() throws IOException, InterruptedException, UnsupportedOperationException- Specified by:
- getClockFrequencyVECin interface- SystemInfoProvider
- Overrides:
- getClockFrequencyVECin class- SystemInfoProviderBase
- Throws:
- IOException
- InterruptedException
- UnsupportedOperationException
 
 - 
getClockFrequencyHDMIpublic long getClockFrequencyHDMI() throws IOException, InterruptedException, UnsupportedOperationException- Specified by:
- getClockFrequencyHDMIin interface- SystemInfoProvider
- Overrides:
- getClockFrequencyHDMIin class- SystemInfoProviderBase
- Throws:
- IOException
- InterruptedException
- UnsupportedOperationException
 
 - 
getClockFrequencyDPIpublic long getClockFrequencyDPI() throws IOException, InterruptedException, UnsupportedOperationException- Specified by:
- getClockFrequencyDPIin interface- SystemInfoProvider
- Overrides:
- getClockFrequencyDPIin class- SystemInfoProviderBase
- Throws:
- IOException
- InterruptedException
- UnsupportedOperationException
 
 
- 
 
-