一、linux 往/dev/kmsg 里面写数据在串口里面会打印出来,效果如下。
二、应用层cpp如何输出串口打印信息,这里简单的分析电池监测的打印信息。
1、\system\core\healthd\BatteryMonitor.cpp
2、\system\core\libcutils\include\cutils\klog.h
3、\system\core\libcutils\klog.cpp
4、查看串口log
一、linux 往/dev/kmsg 里面写数据在串口里面会打印出来,效果如下。
二、应用层cpp如何输出串口打印信息,这里简单的分析电池监测的打印信息。
1、\system\core\healthd\BatteryMonitor.cpp
2、\system\core\libcutils\include\cutils\klog.h
3、\system\core\libcutils\klog.cpp
4、查看串口log