我需要帮助,在c#>>> x___X [英] I need help , in c# >>>> x___X

查看:94
本文介绍了我需要帮助,在c#>>> x___X的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我是一名本科生,并且正在与我的团队一起从事一个项目(硬件),我们已经完成了75%的项目,但是现在我们需要制作一个软件模块来与linksprite jpeg相机对接!

这台相机有自己的命令,这是手册
http://www.mediafire.com/view/?ec79xt02620zil5 [

Hi ,

I am an undergraduate student and I am working on a project ( hardware ) with my group , we are finished 75% of our project but now we need to make a software module to interface with linksprite jpeg camera !

this camera has its own commands and this is the manual
http://www.mediafire.com/view/?ec79xt02620zil5[^]

we are trying now to write 2 functions ::

1- TakePicture
2- ReadJpegFileContents ( then store the bytes in memory stream then display the image )

we are finding difficulties in writting the 2 functions because we are a beginners
in c# and we didnt study it in our course .


we will appreciate any help in this feild or any references that might help

thank you

[edit]clickable link[/edit]

推荐答案

要做的第一件事是确保已与摄像机建立通信.
假设您已经可以通过某种方式与之交谈,则该手册非常清楚您必须执行的操作.拍照:

向摄像机发送5个字节的序列:0x56 0x00 0x36 0x01 0x00
它将与您对话并返回5个字节:0x76 0x00 0x36 0x00 0x00

这大概意味着接受".

读取文件似乎也不太困难.
老实说,这本手册并不是我见过的最好的手册,但绝不是最糟糕的手册.

返回JPG文件要复杂一点,因为数据是按块发送的,但并不复杂.您要做的就是依次请求每个块-甚至还有流程图说明如何做!
The first thing to do is to make sure you have established communications with the camera.
Assuming you can talk to it in some way already, the manual is pretty clear about what you have to do. To take a picture:

Send the camera a sequence of 5 bytes: 0x56 0x00 0x36 0x01 0x00
It will talk back to you and return 5 bytes: 0x76 0x00 0x36 0x00 0x00

This presumably means "Taken ok".

To read the file doesn''t look too difficult either.
To be honest, the manual isn''t the best I''ve seen, but it by no means the worst.

It''s a little more complex to return a JPG file, because the data is sent in blocks, but it''s not complex. All you have to do is request each block in turn - there is even a flow chart explaining how to do it!


这篇关于我需要帮助,在c#>>> x___X的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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