[ Entity Manager - Beaglebone Adc }
tianjingzai at phytium.com.cn
tianjingzai at phytium.com.cn
Mon Jun 13 16:20:41 AEST 2022
Hi,<br/> You can check if the dbus object corresponding to the sensor is associated with the correct entity.<br/> webui-vue will look for all sensors associated with ChassisIDs, so if your sensor needs to be found, it needs to be correctly associated. Check busctl get-property --verbose xyz.openbmc_project.ObjectMapper /xyz/openbmc_project/inventory/system/board/XXX/all_sensors xyz.openbmc_project.Association endpoint to confirm success.<br/> For virtual sensors, you can view the instructions in <a href="https://github.com/openbmc/phosphor-virtual-sensor"><a href="https://github.com/openbmc/phosphor-virtual-sensor">https://github.com/openbmc/phosphor-virtual-sensor</a></a> to configure your own JSON file, which also requires the correct association.<br/> For the FRU display of the power supply, you can check your power supply dbus object for the existence of interfaces such as xyz.openbmc_project.Inventory.Item.PowerSupply, xyz.openbmc_project.Inventory.Decorator.Asset, etc., which are generated by configuring the JSON file. You can also check whether the data you need exists in the PowerSupplies of /redfish/v1/Chassis/${ChassisID}/Power in redfish.<br/> Hope it helps you.<br/><br/><br/><br/><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<a href="https://maas.mail.163.com/dashi-web-extend/html/proSignature.html?ftlId=3&name=Tian+Jingzai&uid=tianjingzai%40phytium.com.cn&iconUrl=https%3A%2F%2Fmail-online.nosdn.127.net%2Fqiyelogo%2FdefaultAvatar.png" width="400" style="display:block; max-width: 400px; _width: 400px; background:#fff;padding:15px 0 10px 0;text-decoration: none; outline:none;-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:none !important;text-size-adjust:none !important;">
<table cellpadding="0" style="width:100%; max-width: 100%; table-layout: fixed; border-collapse: collapse; border-spacing: 0; line-height: 1.3; color: #9b9ea1;font-size: 14px;-webkit-text-size-adjust:none !important;text-size-adjust:none !important;">
<tbody style="font-family: 'PingFang SC', 'Hiragino Sans GB','WenQuanYi Micro Hei', 'Microsoft Yahei', '微软雅黑', verdana !important; word-wrap:break-word; word-break:break-all;-webkit-text-size-adjust:none !important;text-size-adjust:none !important;">
<tr>
<td width="45" style="padding:0 7px 0 0; box-sizing: border-box; width: 45px;">
<img width="38" height="38" style="width: 38px; height: 38px; border-radius:50%;" src="https://mail-online.nosdn.127.net/qiyelogo/defaultAvatar.png" />
</td>
<td style="padding: 0 0 0 7px;">
<div style="max-width: 380px; _width: 380px;">
<div style="box-sizing: border-box; padding-right: 35px; font-size: 16px; margin-bottom: 5px; color:#31353b;font-weight:bold;width: 100%; white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">Tian Jingzai</div>
<div style="font-size:0;line-height: 0;">
</div>
</div>
</td>
</tr>
</tbody>
</table>
</a>
<br/><br/><br/><div class="ntes-mailmaster-quote" style="padding-top: 1px; padding-bottom: 1px" >
<div style=" margin-top: 2em; margin-bottom: 1em; font-size: 14px; line-height: 1.25; color: #78787a; " >---- 回复的原邮件 ----</div>
<div style=" margin-bottom: 1em; font-size: 12px; line-height: 1.25; color: #232324; padding: 0.5em 0.25em; border-radius: 0.67em; background-color: #f0f0f0; " >
<table width="100%" cellpadding="0" cellspacing="9" border="0">
<tr>
<td valign="top" style=" width: 4.25em; font-size: 12px; line-height: 1.25; color: #78787a; " >
发件人
</td>
<td valign="top" style=" font-size: 12px; line-height: 1.25; color: #232324; word-break: break-all; " >
<a class="mail-from" style="text-decoration:none;color:#0886e8;" href="mailto:nikhil.vu at zohocorp.com">Nikhil V<nikhil.vu at zohocorp.com></a>
</td>
</tr>
<tr>
<td valign="top" style=" width: 4.25em; font-size: 12px; line-height: 1.25; color: #78787a; " >
日期
</td>
<td class="mail-date" valign="top" style=" font-size: 12px; line-height: 1.25; color: #232324; word-break: break-all; " >
2022年06月13日 12:57
</td>
</tr>
<tr style="">
<td valign="top" style=" width: 4.25em; font-size: 12px; line-height: 1.25; color: #78787a; " >
收件人
</td>
<td valign="top" style=" font-size: 12px; line-height: 1.25; color: #232324; word-break: break-all; " >
<a class="mail-to" style="text-decoration:none;color:#0886e8;" href="mailto:tianjingzai at phytium.com.cn">tianjingzai<tianjingzai at phytium.com.cn></a>
</td>
</tr>
<tr style="display:none;">
<td valign="top" style=" width: 4.25em; font-size: 12px; line-height: 1.25; color: #78787a; " >
抄送至
</td>
<td valign="top" style=" font-size: 12px; line-height: 1.25; color: #232324; word-break: break-all; " >
</td>
</tr>
<tr>
<td valign="top" style=" width: 4.25em; font-size: 12px; line-height: 1.25; color: #78787a; " >
主题
</td>
<td class="mail-subject" valign="top" style=" font-size: 12px; line-height: 1.25; color: #232324; word-break: break-all; " >
Re: [ Entity Manager - Beaglebone Adc }
</td>
</tr>
</table>
</div>
<div><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><div ><div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;"><div>Hi,<br></div><div> Sorry to disturb you again. Let me know if i am troubling you. <br></div><div> I have successfully integrate PWM on beaglebone black with openBMC. I am able to control/update PWM with respect to temperature.<br></div><div> I am stuck at how to show PWM values on openbmc?<br></div><div> How to add virtual sensor on openbmc?<br></div><div> <br></div><div> I have also interface hp server power supply with pmbus and displaded values on openbmc. but i am unable to show FRU data on openbmc under powersupply section.<br></div><div><br></div><div> If possible can you guide on above all points.<br></div><div><br></div><div>Thanks & Regards,<br></div><div>Nikhil Muley<br></div><br><div id="Zm-_Id_-Sgn" data-zbluepencil-ignore="true" data-sigid="58018000000014003"><div><br></div></div><br><div class="zmail_extra_hr" style="border-top: 1px solid rgb(204, 204, 204); height: 0px; margin-top: 10px; margin-bottom: 10px; line-height: 0px;"><br></div><div class="zmail_extra" data-zbluepencil-ignore="true"><div><br></div><div id="Zm-_Id_-Sgn1">---- On Thu, 02 Jun 2022 18:39:06 +0530 <b>Nikhil V <nikhil.vu at zohocorp.com></b> wrote ----<br></div><div><br></div><blockquote style="margin: 0px;"><div><div style="font-size : 10pt; font-family : Verdana, Arial, Helvetica, sans-serif;"><div id="x_1609076786message"><br></div>Hi<div> As per your guidance i looked into Adcsensor code and found answer. Correct ed my mistake. 👍<br></div><div><br></div><div>Can you suggest any pointer on PWM enable.<br></div><div>I have updated device tree with PWM.<br></div><div>Next I want to generate pwm waveform with respect to temparature.<br></div><div><br></div><div>Thanks & Regards,<br></div><div>Nikhil Muley<br></div><div><br id="x_1609076786br3"><br id="x_1609076786br3"><div id="x_1609076786signature"><div><br></div></div><div id="x_1609076786content"><br>---- On Wed, 01 Jun 2022 20:58:42 +0530<b> <a href="mailto:nikhil.vu at zohocorp.com" target="_blank">nikhil.vu at zohocorp.com</a> </b> wrote ----<br><br><div id="zmail_block"><br></div></div></div></div><br></div><blockquote style="border-left : 1px solid rgb(204, 204, 204); padding-left : 6px; margin-left : 5px;"><div><div style="font-size : 10pt; font-family : Verdana, Arial, Helvetica, sans-serif;"><div id="x_-1842678883message"><br></div>Hi Tian,<div> Thanks for reply i will look into ADC log to solve problem.<br></div><div><br></div><div>To be clear about PWM question.<br></div><div>I want to control external fan with PWM. External fan is without tacho support.<br></div><div>Based on temperature sensor readings I want to generate pwm waveform. On beagebone black. <br></div><div>Most of pwm example are with aspeed controller which has in-built tacho.<br></div><div><br></div><div>Thanks & Regards,<br></div><div>Nikhil Muley<br id="x_-1842678883br3"><br id="x_-1842678883br3"><br id="x_-1842678883br3"><div id="x_-1842678883signature"><div><br></div></div><div id="x_-1842678883content"><br>---- On Wed, 01 Jun 2022 19:16:31 +0530<b> <a href="mailto:tianjingzai at phytium.com.cn" target="_blank">tianjingzai at phytium.com.cn</a> </b> wrote ----<br><br><blockquote style="border-left : 1px solid rgb(204, 204, 204); padding-left : 6px; margin-left : 5px;">The program checks whether the name in hwmon is iio_hwmon to match the correct path. For details you can check the ADCSensor code in dbus-sensors and follow its log to solve the problem.<br><br>For your second question, I don't quite understand what you mean. You can refer to phosphor-fan or phosphor-pid-control, I am also learning.<br><br><br><br><br><br> <div><a href="https://maas.mail.163.com/dashi-web-extend/html/proSignature.html?ftlId=3&name=Tian+Jingzai&uid=tianjingzai%40phytium.com.cn&iconUrl=https%3A%2F%2Fmail-online.nosdn.127.net%2Fqiyelogo%2FdefaultAvatar.png" style="display : block; max-width : 400px; background : #fff; padding : 15px 0 10px 0; text-decoration : none; outline : none;" target="_blank"><table style="width : 100%; max-width : 100%; table-layout : fixed; border-collapse : collapse; border-spacing : 0; line-height : 1.3; color : #9b9ea1; font-size : 14px;" cellpadding="0"><tbody style="font-family : 'PingFang SC', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', 'Microsoft Yahei', verdana;"><tr><td style="padding : 0 7px 0 0; box-sizing : border-box; width : 45px;" width="45"><img style="width : 38px; height : 38px; border-radius : 50%;" width="38" height="38"><br></td><td style="padding : 0 0 0 7px;"><div style="max-width : 380px;"><div style="box-sizing : border-box; padding-right : 35px; font-size : 16px; margin-bottom : 5px; color : #31353b; font-weight : bold; width : 100%; white-space : nowrap; overflow : hidden;">Tian Jingzai<br></div><div style="font-size : 0; line-height : 0;"><br></div></div></td></tr></tbody></table></a><br><br><br><div class="x_1761671153ntes-mailmaster-quote" style="padding-top : 1px; padding-bottom : 1px;"><div style="margin-top : 2em; margin-bottom : 1em; font-size : 14px; line-height : 1.25; color : #78787a;">---- 回复的原邮件 ----<br></div><div style="margin-bottom : 1em; font-size : 12px; line-height : 1.25; color : #232324; padding : 0.5em 0.25em; border-radius : 0.67em; background-color : #f0f0f0;"><table width="100%" cellspacing="9" cellpadding="0" border="0"><tbody><tr><td style="width : 4.25em; font-size : 12px; line-height : 1.25; color : #78787a;" valign="top">发件人<br></td><td style="font-size : 12px; line-height : 1.25; color : #232324;" valign="top"><a class="x_1761671153mail-from" style="text-decoration : none; color : #0886e8;" href="mailto:nikhil.vu at zohocorp.com" target="_blank">Nikhil V<nikhil.vu at zohocorp.com></a><br></td></tr><tr><td style="width : 4.25em; font-size : 12px; line-height : 1.25; color : #78787a;" valign="top">日期<br></td><td class="x_1761671153mail-date" style="font-size : 12px; line-height : 1.25; color : #232324;" valign="top">2022年06月01日 19:55<br></td></tr><tr><td style="width : 4.25em; font-size : 12px; line-height : 1.25; color : #78787a;" valign="top">收件人<br></td><td style="font-size : 12px; line-height : 1.25; color : #232324;" valign="top"><a class="x_1761671153mail-to" style="text-decoration : none; color : #0886e8;" href="mailto:tianjingzai at phytium.com.cn" target="_blank">tianjingzai at phytium.com.cn<tianjingzai at phytium.com.cn></a><br></td></tr><tr style="display : none;"><td style="width : 4.25em; font-size : 12px; line-height : 1.25; color : #78787a;" valign="top">抄送至<br></td><td style="font-size : 12px; line-height : 1.25; color : #232324;" valign="top"><br></td></tr><tr><td style="width : 4.25em; font-size : 12px; line-height : 1.25; color : #78787a;" valign="top">主题<br></td><td class="x_1761671153mail-subject" style="font-size : 12px; line-height : 1.25; color : #232324;" valign="top">Re: [ Entity Manager - Beaglebone Adc }<br></td></tr></tbody></table></div><div><div><div style="font-size : 10pt; font-family : Verdana, Arial, Helvetica, sans-serif;"><div id="x_1761671153message"><br></div>Hi,<div> I tried what you said in mail, but nothing happened.<br></div><div>I have attached image with this mail.<br></div><div>In my system, I have<br></div><div><br id="x_1761671153br3">sys/class/hwmon/hwmon1/in1_input</div><div>sys/class/hwmon/hwmon2/in1_input<br id="x_1761671153br3">sys/class/hwmon/hwmon3/in1_input<br id="x_1761671153br3"><div id="x_1761671153signature"><div><br></div><div>How to differentiate in1_index = 0 for different hwmon*<br></div><div><br></div><div>Also can you guide me on how to control pwm pin and display status on webui if possible.<br></div><div><br></div><div>Thanks and regards<br></div><div>Nikhil<br></div></div><div id="x_1761671153content"><br>---- On Wed, 01 Jun 2022 14:52:38 +0530<b> <a href="mailto:tianjingzai at phytium.com.cn" target="_blank">tianjingzai at phytium.com.cn</a> </b> wrote ----<br><br><blockquote style="border-left : 1px solid rgb(204, 204, 204); padding-left : 6px; margin-left : 5px;">Hello, if I remember correctly, the Index needs to correspond one-to-one with the specific device file name in /sys/class/hwmon (for example, the index corresponding to in1_input is 0), I hope it will help you.<br><br><br> <div><a href="https://maas.mail.163.com/dashi-web-extend/html/proSignature.html?ftlId=3&name=Tian+Jingzai&uid=tianjingzai%40phytium.com.cn&iconUrl=https%3A%2F%2Fmail-online.nosdn.127.net%2Fqiyelogo%2FdefaultAvatar.png" style="display : block; max-width : 400px; background : #fff; padding : 15px 0 10px 0; text-decoration : none; outline : none;" target="_blank"><table style="width : 100%; max-width : 100%; table-layout : fixed; border-collapse : collapse; border-spacing : 0; line-height : 1.3; color : #9b9ea1; font-size : 14px;" cellpadding="0"><tbody style="font-family : 'PingFang SC', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', 'Microsoft Yahei', verdana;"><tr><td style="padding : 0 7px 0 0; box-sizing : border-box; width : 45px;" width="45"><img style="width : 38px; height : 38px; border-radius : 50%;" width="38" height="38"><br></td><td style="padding : 0 0 0 7px;"><div style="max-width : 380px;"><div style="box-sizing : border-box; padding-right : 35px; font-size : 16px; margin-bottom : 5px; color : #31353b; font-weight : bold; width : 100%; white-space : nowrap; overflow : hidden;">Tian Jingzai<br></div><div style="font-size : 0; line-height : 0;"><br></div></div></td></tr></tbody></table></a><br><br><br><div class="x_-1162025914ntes-mailmaster-quote" style="padding-top : 1px; padding-bottom : 1px;"><div style="margin-top : 2em; margin-bottom : 1em; font-size : 14px; line-height : 1.25; color : #78787a;">---- 回复的原邮件 ----<br></div><div style="margin-bottom : 1em; font-size : 12px; line-height : 1.25; color : #232324; padding : 0.5em 0.25em; border-radius : 0.67em; background-color : #f0f0f0;"><table width="100%" cellspacing="9" cellpadding="0" border="0"><tbody><tr><td style="width : 4.25em; font-size : 12px; line-height : 1.25; color : #78787a;" valign="top">发件人<br></td><td style="font-size : 12px; line-height : 1.25; color : #232324;" valign="top"><a class="x_-1162025914mail-from" style="text-decoration : none; color : #0886e8;" href="mailto:nikhil.vu at zohocorp.com" target="_blank">Nikhil V<nikhil.vu at zohocorp.com></a><br></td></tr><tr><td style="width : 4.25em; font-size : 12px; line-height : 1.25; color : #78787a;" valign="top">日期<br></td><td class="x_-1162025914mail-date" style="font-size : 12px; line-height : 1.25; color : #232324;" valign="top">2022年06月01日 16:36<br></td></tr><tr><td style="width : 4.25em; font-size : 12px; line-height : 1.25; color : #78787a;" valign="top">收件人<br></td><td style="font-size : 12px; line-height : 1.25; color : #232324;" valign="top"><a class="x_-1162025914mail-to" style="text-decoration : none; color : #0886e8;" href="mailto:openbmc at lists.ozlabs.org" target="_blank">openbmc<openbmc at lists.ozlabs.org></a><br></td></tr><tr style="display : none;"><td style="width : 4.25em; font-size : 12px; line-height : 1.25; color : #78787a;" valign="top">抄送至<br></td><td style="font-size : 12px; line-height : 1.25; color : #232324;" valign="top"><br></td></tr><tr><td style="width : 4.25em; font-size : 12px; line-height : 1.25; color : #78787a;" valign="top">主题<br></td><td class="x_-1162025914mail-subject" style="font-size : 12px; line-height : 1.25; color : #232324;" valign="top">[ Entity Manager - Beaglebone Adc }<br></td></tr></tbody></table></div><div><div><div style="font-family : Verdana, Arial, Helvetica, sans-serif; font-size : 10pt;"><div>Hi ALL,<br></div><div> I have successfully ported openbmc on beaglebone black. I have displayed LM75, and ADC result on webui.<br></div><div> Now I am doing the same with Entity Manager. I have displayed LM75 result successfully, But unable to display ADC result through Entity Manager.<br></div><div> Below is my Config file.<br></div><div>{<br></div><div> "Exposes": [<br></div><div> {<br></div><div> "Index": 0,<br></div><div> "Name": "PSU 12 Volt",<br></div><div> "ScaleFactor": 0.1124,<br></div><div> "Type": "ADC"<br></div><div> },<br></div><div> {<br></div><div> "Index": 1,<br></div><div> "Name": "PSU 5 Volt",<br></div><div> "ScaleFactor": 1,<br></div><div> "Type": "ADC"<br></div><div> },<br></div><div> {<br></div><div> "Address": "0x48",<br></div><div> "Bus": 2,<br></div><div> "Name": "Ambient 0 Temp",<br></div><div> "Type": "TMP75"<br></div><div> }<br></div><div> ],<br></div><div> "Name": "xplode",<br></div><div> "Probe": "True",<br></div><div> "Type": "Board"<br></div><div>}<br></div><div class="x_-1162025914zmail_signature_below"><div id=""><div><br></div><div>1) How to display ADC value through entity manager<br></div><div>2) I would like to control single pwm pin<br></div><div><br></div><div>Any pointer would be helpful or what are the steps to display adc value/PWM control<br></div></div></div><div><br></div><div>Board used : Beaglebone Black<br></div><div><br></div><div>Thanks & Regards,<br></div><div>Nikhil Muley<br></div></div><br></div></div></div></div></blockquote></div></div></div><br></div></div></div></div></blockquote></div></div></div><br></div></blockquote></blockquote></div><div><br></div></div><br></div></html>
</div>
</div>
</body>
</html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20220613/a0a36419/attachment-0001.htm>
More information about the openbmc
mailing list