Wince camera driver post highlights

Source: Internet
Author: User

Http://www.wince.com.tw/bbs/index.asp
Could you tell me how to set the dwstartingframe parameter when kshuang and other experts use the issueisochtransfer function to drive a USB camera? What other functions do I need to implement for a USB camera )? Thank you.

Bytes ------------------------------------------------------------------------------------

 

--------------------------------------------------------------------------------
2017100002005/05/19 10:15:31 IP Address: configured to keep the password
 

 
 
Yyjscrew


General Staff


Prestige: + 0
From: Confidentiality
Set: Set the password.
Total number of output tables: 25
Note: Date of renewal: 2005/03/21

View Message Reference callback

--------------------------------------------------------------------------------
Nobody knows? Please give me some advice. Thank you first.

Bytes ------------------------------------------------------------------------------------

 

--------------------------------------------------------------------------------
2017100002005/05/30 11:43:23 IP Address: configured to keep the password
 

 
 
Kshuang


Long Term


Prestige: + 0
From: Confidentiality
Set: Set the password.
Total number of output tables: 841
Note: Date of renewal: 2002/07/16

View the callback referenced by the message master Region

--------------------------------------------------------------------------------
Transfer is required unless you specify a specific frame number.
Otherwise, don't care.
Then specify the flag usb_start_isoch_asap.

You can use lpget_frame_number to obtain the current USB frame number.

Bytes ------------------------------------------------------------------------------------

 

--------------------------------------------------------------------------------
2017100002005/05/31 11:27:35 IP Address: configured to keep the password
 

 
 
Yyjscrew


General Staff


Prestige: + 0
From: Confidentiality
Set: Set the password.
Total number of output tables: 25
Note: Date of renewal: 2005/03/21

View Message Reference callback

--------------------------------------------------------------------------------
Thank you, kshuang. Could you ask another question: Is the lpvbuffer parameter the buffer for storing video data?

Is lpdwlengths the buffer length value for storing video data? Does "an array of lengths" in the help document mean that the buffer should be an array?

Is dwframes the maximum record value of a frame? That is to say, if dwstartingframe is set to 0, the USB is transmitted from frame 0 to the value specified by dwframes,
Then start counting from 0 again?

I don't know if I understand this, do I? Troubleshooting

Bytes ------------------------------------------------------------------------------------

 

--------------------------------------------------------------------------------
2017100002005/06/20 11:21:28 IP Address: configured to keep the password
 

 
 
Kshuang


Long Term


Prestige: + 0
From: Confidentiality
Set: Set the password.
Total number of output tables: 841
Note: Date of renewal: 2002/07/16

View the callback referenced by the message master Region

--------------------------------------------------------------------------------
Basically, this is the case.

Bytes ------------------------------------------------------------------------------------

 

--------------------------------------------------------------------------------
2017100002005/06/21 11:13:13 IP Address: configured to keep the password
 

 
 
Yyjscrew


General Staff


Prestige: + 0
From: Confidentiality
Set: Set the password.
Total number of output tables: 25
Note: Date of renewal: 2005/03/21

View Message Reference callback

--------------------------------------------------------------------------------
Thank you, kshuang. Another question: I have read the source code of the printer driver that comes with wince. For this driver, the get_device_id, get_port_status, and soft_reset requests for the specified class-specific are implemented, what kind of requests do cameras need to implement? Can we not implement them? It's really complicated to look at the USB video protocol.
Thank you!

Bytes ------------------------------------------------------------------------------------

 

--------------------------------------------------------------------------------
2017100002005/06/21 04:06:07 IP Address: configured to keep the password
 

 
 
Kshuang


Long Term


Prestige: + 0
From: Confidentiality
Set: Set the password.
Total number of output tables: 841
Note: Date of renewal: 2002/07/16

View the callback referenced by the message master Region

--------------------------------------------------------------------------------
That's because the printer driver needs implement of IOCTL.
But camera is another thing.
Because Windows CE to 5.0 does not support the camera interface, you can do whatever you like.
However, the next version may be 5.10. Anyway, if the replacement is bowmore (whisky again) or the magneto of PPC Aku, there will be a camera interface.
Now it's another thing.
But for NDA, you can only stop it.

Bytes ------------------------------------------------------------------------------------

 

--------------------------------------------------------------------------------
2017100002005/06/22 10:32:38 IP Address: configured to keep the password
 

 
 
Yyjscrew


General Staff


Prestige: + 0
From: Confidentiality
Set: Set the password.
Total number of output tables: 25
Note: Date of renewal: 2005/03/21

View Message Reference callback

--------------------------------------------------------------------------------
Thanks again to kshuang. What does NDA mean? How do I know the number of frames in each transmission )? How many bytes of data does each frame have? When the application uses readfile to access the driver, the driver calls xxx_read to obtain a transmitted data from the USB bus. How can I organize it into an image display? Is it a frame (1 ms) image? Is there any format for this data? If you do not need to implement video requests, how can you set the data format? If this parameter is not set, what is the default format? I don't know what I understand, do I? Please advise again
Thank you.

Bytes ------------------------------------------------------------------------------------

 

--------------------------------------------------------------------------------
2017100002005/06/22 11:16:29 IP Address: configured to keep the password
 

 
 
Kshuang


Long Term


Prestige: + 0
From: Confidentiality
Set: Set the password.
Total number of output tables: 841
Note: Date of renewal: 2002/07/16

View the callback referenced by the message master Region

--------------------------------------------------------------------------------
NDA = non-disclosure agreement servers. Generally, these servers are converted to confidential agreements.
To your other question, this will be depends on your USB camera ASIC.
Each ASIC has a different way.

Output Format: some are RGB, some are YUV, and some are output into a watermark JPEG.

Bytes ------------------------------------------------------------------------------------

 

--------------------------------------------------------------------------------
2017100002005/06/23 01:39:31 IP Address: configured to keep the password
 

 
 
Yyjscrew


General Staff


Prestige: + 0
From: Confidentiality
Set: Set the password.
Total number of output tables: 25
Note: Date of renewal: 2005/03/21

View Message Reference callback

--------------------------------------------------------------------------------
Thank you, kshuang. Do you mean that different types of cameras have different drivers? Isn't it possible to build a universal driver like a PC? I think calling the issueisochtransfer function in wince to read data from USB is not related to hardware. As for the output format and the number of frames, it is related to hardware. Each camera is different, however, I think we can set them in the driver by reading and analyzing some device descriptor information. Is this function and information not provided in firmware? Confused ......
Thank you.

Bytes ------------------------------------------------------------------------------------

 

--------------------------------------------------------------------------------
2017100002005/06/23 05:39:51 IP Address: configured to keep the password
 

 
 
Kshuang


Long Term


Prestige: + 0
From: Confidentiality
Set: Set the password.
Total number of output tables: 841
Note: Date of renewal: 2002/07/16

View the callback referenced by the message master Region

--------------------------------------------------------------------------------
On the PC, it is also the driver of the slave
The USB device is probably like this
If a device with a class rule can be used with a dedicated driver
For the definition of Class, you can go to www.usb.org to find the class without any money.

Bytes ------------------------------------------------------------------------------------

 

--------------------------------------------------------------------------------
2017100002005/06/24 09:59:44 IP Address: configured to keep the password
 

 
 
Yyjscrew


General Staff


Prestige: + 0
From: Confidentiality
Set: Set the password.
Total number of output tables: 25
Note: Date of renewal: 2005/03/21

View Message Reference callback

--------------------------------------------------------------------------------
Thank you very much for kshuang. Your guidance helped me eliminate many questions. Now I want to try it out. Because there is no development board, I want to use a PC as the target board. I have customized a cepc OS Kernel image NK with Pb. bin, I made the USB flash drive into a DOS boot disk, and then I made the NK. bin copy to the USB flash disk, you can start the Ce on the PC, but when I insert a USB camera on another USB port on the PC, there is no unknown device dialog box, what is going on? There is no response when inserting another USB flash drive. This device cannot be found under CE. Check the Registry under CE. It seems that both uhci. dll and usbd. dll have been loaded. I don't know where the problem is? Is it because the OS is not customized, or is it because of PC hardware? Please advise.
Thank you.

Bytes ------------------------------------------------------------------------------------

 

--------------------------------------------------------------------------------
2017100002005/06/24 04:48:05 IP Address: configured to keep the password
 

 
 
Kshuang


Long Term


Prestige: + 0
From: Confidentiality
Set: Set the password.
Total number of output tables: 841
Note: Date of renewal: 2002/07/16

View the callback referenced by the message master Region

--------------------------------------------------------------------------------
You may need to enable the debug mode.
Are there any errors in the uhci and usbd when inserting the device?

 
 
 
Thank you, kshuang. Where can I start CE's debug mode? How can I check whether the uhci and usbd do not go to the enumerate device and whether there is an error?
Thank you.

-

 

--------------------------------------------------------------------------------
2017100002005/06/27 11:10:03 IP Address: configured to keep the password
 

 
 
Kshuang


Long Term


Prestige: + 0
From: Confidentiality
Set: Set the password.
Total number of output tables: 841
Note: Date of renewal: 2002/07/16

View the callback referenced by the message master Region

--------------------------------------------------------------------------------
Select debug mode configuration in Pb to build Image
If there is no enumeration, you will understand the debug message.

Bytes ------------------------------------------------------------------------------------

 
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.