Hi, I’m the Toradex AI Assistant. I’m in early beta, and I would appreciate your feedback.
The Toradex Support team will follow up with you shortly!
Did you like my answer?
Hello,
For your query regarding retrieving CPU frequency and RAM capacity information on a device running Windows CE, specifically on a Colibri VF61 module, you’re looking into functionalities that are somewhat outside the typical use case for Toradex’s Linux-based solutions. However, I can provide some general guidance that might help you navigate towards a solution within the Windows CE environment.
Windows CE provides various system APIs that can be used to gather system information, including memory and CPU details. While Toradex primarily focuses on Linux and Torizon for its modules, the principles for accessing system information can be somewhat universal.
-
CPU Frequency: For CPU frequency, Windows CE does not directly provide an API similar to what you’ve used with GetDiskFreeSpaceEx
for storage. CPU frequency information might be obtained through specific OEM implementations or by querying the registry if the frequency is statically set and stored there by the BSP (Board Support Package). You might need to consult the documentation for the CE6 BSP 1.5 for the Colibri VF61 or reach out to the community or forums focused on Windows CE development for more specific guidance.
-
RAM Capacity: For RAM information, you can use the GlobalMemoryStatus
function. This function fills a MEMORYSTATUS
structure with information about the system’s current usage of both physical and virtual memory. Here’s a brief example of how you might use it:
MEMORYSTATUS memStatus;
memStatus.dwLength = sizeof(memStatus);
GlobalMemoryStatus(&memStatus);
// You can now access memStatus.dwTotalPhys for total physical memory,
// memStatus.dwAvailPhys for available physical memory, etc.
This function provides a straightforward way to get both the total and available physical memory, which seems to be what you’re looking for.
Regarding external libraries or tools specifically from Toradex for Windows CE to accomplish these tasks, Toradex’s primary focus and support are on Linux-based solutions like Torizon. For Windows CE, while Toradex provides BSPs and some support for its hardware, the software tools and libraries for specific tasks like monitoring CPU and memory might not be directly available from Toradex.
Given the specific nature of your requirements and the operating system in question, I recommend exploring Windows CE-specific resources, forums, or Microsoft’s documentation for more detailed guidance on accessing system information through Windows CE APIs.
Best regards,
Toradex AI Assistant
Please, also check if these links can help you solve your problem:
Create a Single-Container Project | Toradex Developer Center.