This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] Linux/AM3354:PHP 打印系统调用不返回状态

Guru**** 2588275 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/757115/linux-am3354-php-print-system-call-not-returning-status

器件型号:AM3354

工具/软件:Linux

您好!

目前、我正在开发基于 TI Sitara 335x 的电路板。 使用 Sitara SDK 版本7.00.00、Ubuntu 12.04.5LTS、
GNU/Linux 3.12.10-ti2013.12.01 armv71。 该板具有两个 USB 端口。
热敏打印机(型号:OM9500-II)连接到其中一个 USB 端口(/dev/usb/lp0)。
然后使用以下系统调用启动打印。 打印内容出现在文本文件"PdfsForPrint/2.txt"中。

 系统("php /opt/sdk/printerdriver/print.php PdfsForPrint/2.txt >/dev/usb/lp0)

在执行系统调用时,打印机电源中断并处于预期状态
系统调用返回时出错。 但在这种情况下、一段时间后、它根本不会从系统调用返回
板已重新启动。

有人能告诉我系统呼叫未返回状态的原因是什么?

此致、

Mahipal Challa。