473,806 Members | 2,321 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SMBus find devices

Hi,

What I would like to do is to read all kind of sensor data out of the
BMC (Baseboard Management Controller), lets take for example the
processor temperature.

I'm developing with C on a FreeBSD kernel. It's an Intel SE7210TP1-E
TPS motherboard. It supports IPMI 2.0. And the mBMC chip on the
motherboard is from National Semiconductor PC87431 interated
management controller.

As far as I've found in the documentation the BMC can be accessed
through two interfaces on this motherboard:
- SMBus
- LOM (Lan On Motherboard)

I would like to accomplish this using the SMBus, and can be found on
/dev/smb0. This is working, but then find the BMC. So I scan through
the addresses 0x20 till 0x4f and send the command 0x03 (Get UDID = get
Unique Device Identifier) for this I take an SMB frame as in the
machine/smb.h is defined. Looking in the documentation it explains
that the Device capabilitities field within the UDID frame which is
returned in the smb frame should have the value 38(dec). When trying
this with the folowing code I don't get an result that make any
sense????

[code sample]
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <machine/smb.h>
#include <stdlib.h>
#include <err.h>

/* scan */
int fd;
struct smbcmd s;
int i;
short n;
char data[32];

if ((fd = open("/dev/smb0", O_RDWR)) < 0)
warn("unable to open smb");

for (n = 0x20; n < 0x4f; n++) {
s.slave = n;
s.cmd = 3;
s.count = 17;
s.data.byte_ptr = data;
memset(s.data.b yte_ptr, 0, s.count);
if (ioctl(fd, SMB_BREAD, &s) < 0)
continue;

printf("slave = 0x%02X data = ", n);
for (i = 0; i < s.count; i++) {
printf("%02X ",
((unsigned int)s.data.byte _ptr[i] & 0x00ff));
} putchar('\n');
}
close(fd);
[/code sample]

I just got 4 responses from devices, and from the data returned I
can't make up what devices they are?
It looks more if the data returned is incorrect, and have nothing to
do with the request.

And now I got really stuck, any help or ideas will be appreciated!

Thanks,

Charl
Nov 14 '05 #1
3 8081
RedLion <ch****@tunix.n l> scribbled the following:
Hi, What I would like to do is to read all kind of sensor data out of the
BMC (Baseboard Management Controller), lets take for example the
processor temperature. I'm developing with C on a FreeBSD kernel. It's an Intel SE7210TP1-E
TPS motherboard. It supports IPMI 2.0. And the mBMC chip on the
motherboard is from National Semiconductor PC87431 interated
management controller.


You'll want comp.unix.progr ammer or a FreeBSD-specific newsgroup.

--
/-- Joona Palaste (pa*****@cc.hel sinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"I said 'play as you've never played before', not 'play as IF you've never
played before'!"
- Andy Capp
Nov 14 '05 #2
Isn't ther anyone who can help me with this?

I've posted to a couple of groups now, but haven't had any responses...
Nov 14 '05 #3
RedLion wrote:

Isn't ther anyone who can help me with this?

I've posted to a couple of groups now, but haven't had any responses...


Not here, as you were already told.

--
Chuck F (cb********@yah oo.com) (cb********@wor ldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home .att.net> USE worldnet address!
Nov 14 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
6259
by: A. Fuentes | last post by:
Fellow Oracle Netters: I have the following problem: Enviroment: Oracle9i/AIX5.2/Veritas vxvm I am trying to create an Oracle database using RAW devices UNDER the Veritas vxvm.(Veritas Volume Manager). Brief Antecedents:
2
767
by: Wolfgang | last post by:
Dear all, I'm using GPIO (general purpose IO) of a motherboard. Accessing SMBus Components directly by the Registers of the SMBus Controller. Has anybody a more elegant way not to bind the software to much to the specific motherboard ? Thanks in advance for any hint, Wolfgang
0
2847
by: Sagaert Johan | last post by:
Hi How can i read cpu temperature, fanspeed ,etc from SMBus ? Is there a standard in reading motherboard temperature, fanspeed, etc ? Johan
0
2092
by: andrew | last post by:
We are currently writing a utility to audit software and hardware within computers on a network. We need to be able to access the the memory SPD data via the SMBus. This will tell us the manufacturer, serial number, speed, size, etc. We have the full spec for the SPD data, but cannot find anywhere the address within the SMBus that the SPD data is held, nor how to access the SMBus (preferably from C#). There are a number of utilities that...
0
1856
by: gewe | last post by:
I am using the following code to enumerate devices on the local computer: ManagementObjectSearcher searcher = new ManagementObjectSearcher("SELECT * from Win32_PnPEntity"); ManagementObjectCollection devices = searcher.Get(); foreach (ManagementObject device in devices) Console.WriteLine(device.Properties.Value.ToString());
2
8801
by: Shoveler | last post by:
I need to find out the MAC Address of my devices on the net work. I can send a ping command in my app, and Windows will build it's ARP Cache. How can I access this ARP Cache in code? Of is there an easier way to access MAC address of devices on the LAN?
3
2037
by: stacy | last post by:
I am developing an application that must look out over TCP on an ethernet connection to locate our proprietary devices. The Web application and the devices are communicating over ethernet with TCP using known IP addresses at present. We would like to design a method to discover devices in the system without knowing their IP addresses. Is there a recommended protocol for this type of problem or do most develop their own protocol? Any...
7
3260
by: cj2 | last post by:
I saw a MS demo a few years back where they developed a web page and the software automatically rendered it for different devices. Is this what I'm looking for? http://www.asp.net/mobile/ Much of the info looks old. I have a MSDN account where can I download it or is it already in VS 2008 and I just don't know how to find it? I'm mainly interested in having simple pages render in Internet Explorer
25
3019
by: p byers | last post by:
Good Morning Folks I have a LAN Among the several connections to it are the following four devices: A MAXSTOR network Storage Device A PC running Microsoft Windows 2000 Server 5.0.2195 (SP4) A PC running Microsoft Windows XP Professional 5.1.2600 (SP2) A PC running Microsoft Windows XP Professional 5.1.2600 (SP2) All of the PCs are running IIS
0
10366
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10371
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10110
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9187
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6877
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4329
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3850
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.