关于项目的建议 [英] Advice on Project

查看:58
本文介绍了关于项目的建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

这不是一个C编程问题,但我认为经验丰富的

C程序员会提供最佳回复。

我的老板想要一个程序开发,可以通过串口/ usb / tin罐/等读取任何设备(外围设备)。连接。我已经尝试说服他需要更具体一点(为一台设备开发一个驱动器

并从那里开始)但是无济于事,我想

别人对于为什么这是不可行的专业意见,或者

只是评论/说服论证。

谢谢

Hello,
This isn''t exactly a C programming question, but i figured experienced
C programmers would offer the best response.
My boss wants a program developed that reads from ANY
device(peripheral) over a serial/usb/tin can/etc. connection. I''ve
tried convincing him it needs to be more specific (develop a driver
for ONE device and go from there) but to no avail, I would like
somebody else''s professional opinion of why this is not attainable, or
just comments/convincing arguments.
Thank You

推荐答案



" Milton" < FO ******* @ hotmail.com>写了

"Milton" <fo*******@hotmail.com> wrote

这不是一个C编程问题,但我认为经验丰富的C程序员会提供最好的响应。
我的老板想要开发一个程序通过串口/ usb / tin罐/等从任何设备(外围设备)读取。连接。我已经尝试说服他需要更具体一些(为一台设备开发一个驱动程序并从那里开始)但是无济于事,我想
其他人的专业意见,为什么这是不可实现的,或只是评论/令人信服的论点。

This isn''t exactly a C programming question, but i figured experienced
C programmers would offer the best response.
My boss wants a program developed that reads from ANY
device(peripheral) over a serial/usb/tin can/etc. connection. I''ve
tried convincing him it needs to be more specific (develop a driver
for ONE device and go from there) but to no avail, I would like
somebody else''s professional opinion of why this is not attainable, or
just comments/convincing arguments.



这个问题是特定于平台的。如果你的平台抽象设备,那么让我们把它们作为文件来处理,然后你就可以编写一个可以从任何设备读取
的程序。然而,这可能不是太有用,例如视频相机会提供大量固有二维数据的数据,这将是一个涓涓细流。基本上是类似的数据,虽然为计算机数字化,但是b $ b。您可以将数据以十六进制格式转储到屏幕上,但实际上写一个会执行一些有用的例程

这两个来源非常棘手。


如果平台没有抽象设备,你需要一个单独的

接口。由于程序必须处理任何设备,你将需要为摄像机加载视频设备驱动程序的设施,以及用于摩尔斯密码密钥的m $ b莫尔斯驱动程序,等等上。这本身并不是不可能的(操作系统可以做到这一点),但这是一个非常棘手的问题,需要深入了解平台内部结构。


This question is very platform-specific. If your platform abstracts devices,
let''s say handles them as files, then you can write a program that can read
from any device. However this may not be too useful, for instance a video
camera will give a huge amount of data that is inherently two dimensional, a
morse key will just give a trickle of data that is essentially analogue,
though digitised for the computer. You can dump the data in hex format to
the screen, but actually writing one routine that will do something useful
with these two sources is very tricky.

If the platform doesn''t abstract devices, the you will need a separate
interface to each one. Since the program must handle any device, you will
need facilities for loading a video device driver for the video camera, a
morse driver for the morse code key, and so on. This is not inherently
impossible (operating systems do just that) but it is a very tricky bit of
programming requiring deep knowledge of the platform internals.


fo*******@hotmail.com (弥尔顿)在消息新闻中写道:< 9d ************************** @ posting.google。 com> ...
fo*******@hotmail.com (Milton) wrote in message news:<9d**************************@posting.google. com>...
你好,
这不是一个C编程问题,但我认为经验丰富的C程序员会提供最好的响应。
我的老板想要一个开发的程序,可以通过串口/ usb / tin can / etc从任何设备(外围设备)读取。连接。我已经尝试说服他需要更具体一些(为一台设备开发一个驱动程序并从那里开始)但是无济于事,我想
其他人的专业意见,为什么这是不可实现的,或只是评论/令人信服的论点。
谢谢你
Hello,
This isn''t exactly a C programming question, but i figured experienced
C programmers would offer the best response.
My boss wants a program developed that reads from ANY
device(peripheral) over a serial/usb/tin can/etc. connection. I''ve
tried convincing him it needs to be more specific (develop a driver
for ONE device and go from there) but to no avail, I would like
somebody else''s professional opinion of why this is not attainable, or
just comments/convincing arguments.
Thank You




你是在解读老板告诉你的事情。你已经省略了

手头问题的实质性但相关细节。


下面给出的程序可以从任何外围设备读取。

实际上它从所有设备读取。它还可以读取连接到百码内其他计算机的

设备。


#include< assert.h>

#include< complex.h>

#include< ctype.h>

#include< errno.h>

#include < fenv.h>

#include< float.h>

#include< inttypes.h>

#include< iso646.h>

#include< limits.h>

#include< locale.h>

#include< math。 h>

#include< setjmp.h>

#include< signal.h>

#include< stdarg.h>

#include< stdbool.h>

#include< stddef.h>

#include< stdint.h>

#include< stdio.h>

#include< stdlib.h>

#include< string.h>

#include< tgmath.h>

#include< time.h>

#include< wchar.h>

#include< wctype.h>


int main(){for(;;)fgetc(stdin); return 0;}



You are paraphrasing what your boss told you. you have omitted
substantial but relevant details of the problem at hand.

The program given below reads from ANY peripheral device.
In fact it reads from ALL the devices. It also reads from
devices attached to other computers within a hundred yards.

#include <assert.h>
#include <complex.h>
#include <ctype.h>
#include <errno.h>
#include <fenv.h>
#include <float.h>
#include <inttypes.h>
#include <iso646.h>
#include <limits.h>
#include <locale.h>
#include <math.h>
#include <setjmp.h>
#include <signal.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <tgmath.h>
#include <time.h>
#include <wchar.h>
#include <wctype.h>

int main(){for(;;)fgetc(stdin);return 0;}


kal写道:

.. ..剪辑...
下面给出的程序从任何外围设备读取。
实际上它从所有设备读取。它还可以读取连接到一百码内其他计算机的设备。
.... snip ...
The program given below reads from ANY peripheral device.
In fact it reads from ALL the devices. It also reads from
devices attached to other computers within a hundred yards.




....剪断愚蠢的代码...


如果没有清楚地表明它是开玩笑的话,不要给出如此愚蠢的建议。一些戴着眼镜的新手可能会认真对待你。


-

Chuck F(cb********@yahoo.com)(cb ********@worldnet.att.net)

可用于咨询/临时嵌入式和系统。

< http://cbfalconer.home。 att.net>使用worldnet地址!



.... snip foolish code ...

Don''t give such silly advice without clearly indicating it is
meant in jest. Some dewey eyed newbie might take you seriously.

--
Chuck F (cb********@yahoo.com) (cb********@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!


这篇关于关于项目的建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆