tag:blogger.com,1999:blog-213091325940153577.post853248480021952132..comments2023-08-22T14:10:22.598+00:00Comments on CE4ALL Windows CE Team Blog: CE6.0 CETK using ActiveSync failes on ARM devicesGraemeWhttp://www.blogger.com/profile/06099386774748956811noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-213091325940153577.post-56489409869481230542009-12-27T04:49:35.435+00:002009-12-27T04:49:35.435+00:00Thanks Graeme for your prompt reply.
Yes, I've...Thanks Graeme for your prompt reply.<br />Yes, I've found quite a few samples about DeviceIoControl but not so many about the BT driver (BTD0). On those I found, it was usually in CPP (how do I convert this: WCHAR *argPtr = L"card";<br />DeviceIoControl (hDev, dwctl, argPtr, sizeof(WCHAR) * (wcslen (argPtr) <br />+ 1), NULL, 0, NULL, NULL);<br />to .Net?)<br />And on the one I found in .Net - it didn’t work... that sample used for calculating the IOCTL_SERVICE_START the function CTL_CODE(0x00000104, 1, 0,0). How can I find out the correct values of the parameters DeviceType, Function, Method, Access ?<br /><br />About the sample you pointed out for me – I’ve implemented it (by taking part of what I already found and the DeviceIoControl part from that sample and still not working…<br />Is it possible somehow DeviceIoControl was blocked in my PND??!<br /><br />Thanks,<br />AlonAlonnoreply@blogger.comtag:blogger.com,1999:blog-213091325940153577.post-67484763738744425762009-12-25T21:16:21.570+00:002009-12-25T21:16:21.570+00:00There seems to be a reasonable example of calling ...There seems to be a reasonable example of calling DeviceIOControl :<br /><br />http://stackoverflow.com/questions/1067216/calling-deviceiocontrol-from-c-with-ioctldvd-control-codes<br /><br />But you will need to find out the values for IOCTL_SERVICE_START and IOCTL_SERVICE_STOP.<br /><br />Hope that helps!GraemeWhttps://www.blogger.com/profile/06099386774748956811noreply@blogger.comtag:blogger.com,1999:blog-213091325940153577.post-56634702855439713442009-12-25T04:27:10.680+00:002009-12-25T04:27:10.680+00:00Hi Graeme,
Is a bit off-topic (let me know where ...Hi Graeme,<br /><br />Is a bit off-topic (let me know where should I post it if here is 'too' wrong...)<br /><br />A while ago you posted an answer about starting the Bluetooth by using CreateFile and DeviceIoControl (http://www.tech-archive.net/Archive/WindowsCE/microsoft.public.windowsce.embedded/2008-02/msg00164.html)<br /><br />I'm trying to translate it to .Net but it keep on failing on the DeviceIoControl. Any chance you can help me with that?<br /><br />Thanks a lot,<br /><br />Alon<br /><br />(let me know how can I/you contact you/me)Alonnoreply@blogger.comtag:blogger.com,1999:blog-213091325940153577.post-75781149840525197972009-11-18T11:50:42.180+00:002009-11-18T11:50:42.180+00:00Actually this happens with Remote Tools as well. W...Actually this happens with Remote Tools as well. When you launch from Platform Builder 6.0 using platman (Platform Manager) over ActiveSync. To connect your device, when platman starts, it asks Windows CE to return the processor type, through a KernelIoControl, to download the right binary file to the device (client side of the tool). In the case of the ARM processor, Platform Manager do not seem to identify correctly the ARMV4i processor type, but identify as ARMv4 instead. Therefore the tool cannot copy the right files to your device. Your documented fix of copying the folder would correct this issue also.Nigel Goodyearnoreply@blogger.com