|
|
We're getting close to being finished with this program I've been writing. Now it's almost time to go to production. For production we need to copy my program and database to a USB stick, pull the next available serial number from an Excel spreadsheet (or another database), open the database on the USB stick and record the serial number there and in the Excel spreadsheet.
Simple, simple code, right? Yeah... until we think about the fact that we're going to be mass producing these USB sticks several at a time. I know the first order is for like several hundred so there's definitely not time for someone to sit there and do this one stick at a time.
However, I can't imagine that this is something new. There has to be some combination of hardware/software out there that will not only copy the files to the USB stick (we've found several of those) but also allow us to put a unique identifier on each stick. Ideally I'd like to be able to put the serial number in the database but if it's a text file or some other file format that would probably work too as long as I can figure out how to access the number because it has to be something that my program can show the user.
Help? Ideas? Thanks!!!
Denise "Hypermommy" Duggan
|
|
|
|
|
Hi,
two remarks for you:
1.
when manufacturing USB sticks with code on them, I gather you buy the USB sticks and somehow put your code on them, so you have to insert them in a PC at some time (unless you are ordering really large quantities and can have the stick manufacturer do this for you). So that is also the time you do your specialization stuff.
2.
You should be aware that most, if not all, USB sticks contain a unique ID that is (a) easily accessible from code (WMI), without requiring admin rights, and (b) is unique within each vendor, and very likely to be globally unique. So maybe a better idea is to keep the content of all the sticks identical, and tell them apart by the ID number they already have.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
We ended up finding a company called NexCopy and according to their salesman they can do what we need to do. They copy stuff over in two stages, apparently. The first stage is the same for every stick that's plugged into the unit and that's when we'd copy over our program. Then they pull information from separate staging files for separate sticks. So stick number 1 would pull additional data from folder #1, stick #2 from folder #2, etc. That's where we'll put our serial number.
Thanks all!
Denise "Hypermommy" Duggan
|
|
|
|
|
Hi,
I'm developing a kernel mode driver to handle a USB device. The device is
always sending packets of data.
That data, after 16 packets becomes 1 entire frame. That frame will then be
delivered for a next phase processing. This frame is kept on the device
context structure.
However, I also would like to retrieve that data from the user space. I want
to create an application to visualize that frame.
The question is... what are the mechanisms to communicate from the kernel
side to the user side? How can I access device context in order to get this
piece of data from the kernel side in the user side?
I hope to be clear enough,
Thanks,
With my best regards,
Nuno
|
|
|
|
|
Thanks for clearing this up for me. I never understood how to access the data like this. I appreciate it!
|
|
|
|
|
i reantly heared VisualDDk tool.
i have tried to install viaualDDk but i can't do that.
please tell me how to install visualDDk~
have a good day!!
hi
my english is a little.
anyway, nice to meet you~~
and give me your advice anytime~
|
|
|
|
|
What's the problem you're having?? What are the error messages??
|
|
|
|
|
i means that i can't instal that visualDDk
so i want to know install way very detail.
can you tell me how am i can instal it?
hi
My english is a little.
anyway, nice to meet you~~
and give me your advice anytime~
|
|
|
|
|
|
Dave Kreskowiak wrote: I have no choice but to point you at the documentation
You could have copied your earlier reply
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Yeah, but I hate repeating myself. I don't think his answer would have changed either.
|
|
|
|
|
LOL
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Hi everyone,
I am exploring the possibility of plugging webcams/cameras (preferrably any webcam/camera - so I don't get tied to a particular hardware vendor) into a Windows Mobile 5 or 6 device, and write a piece of software app that allows user to click a button in that software app to get the plugged-in webcam/camera to take pictures or video streams.
So, I will need to know if this is possible to write a software app to do so on Windows Mobile 5 or 6 platforms? .NET is preferred but not essential.
What exactly do the webcam need to adhere to (for example, TWAIN)? USB Video Class 1.1? Bluetooth?
I had a look on the internet but no luck so far.
Any pointers will be welcome.
Thanks
p.s. I also posted the same message on Stackoverflow...
|
|
|
|
|
Hi I have a fair knowledge of electronics and have decided to under take my self a small project and build a multi function foot switch for controlling media players on stage for when im singing. I have made my prototype from an old usb keyboard and buttons removed from a old serial mouse. I may change this later date to use a usb game pad or even build a whole new board based on the PIC18F4550
Now here's the tricky bit I have a small app called RM-X media edition which allows me to assign any received input as a control, currently
SPACE - PLAY/PAUSE
1 - BACK
2 FORWARD
I picked these because they where easy and used the same common ground on the keyboard controller.
What im hopping todo is edit the standard driver files that windows uses for this device to allow it to show as its own device i.g "Soundshark foot switch"
The second part is to rename the commands as it is windows see the inputs as keyboard strokes I want to edit these again to read as there respective functions in the RM-X software.
I hope this is enough information and makes sense Any help at all on this matter would be fantastic.
Thanks Anthony
|
|
|
|
|
Hi,
I don't know enough to give you definitive answers, however here are some thoughts:
- as you are using a (modified) keyboard without any special driver, it is using the standard USB keyboard driver and I don't expect you can't do anything related to its name or its character table; it will show as whatever device the manufacturer decided it was (unless you can reprogram the microcontroller they used).
- as an alternative way to personalize it, you would need to create your own driver.
- I've done some PIC-to-PC interfacing in the past, using RS232C, not USB; I would be interested in learning how to do similar things with USB.
- rather than using normal keys, I would choose some of the function keys. That would much less disrupt your other programs. Or you could try and figure a way to get a key combination, say a modifier key (CTRL/ALT/SHIFT) and some other key; problem is you have to hold down one, press the other, release the first. You can't hold down the modifier key, that would really upset everything.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
yeah may be the best option was just hoping to try and make it a stand aloan device, Only way i though about getting a round it using a standared driver was to install manually or selct update drive and selct my driver rarther then the installed one to superseed it
other option is to use a cheap usb gaming pad or as i said befor build my own controller from scratch if i can find a basic design 3 buttons would be plenty. Thanks for the help ill keep digging anything i find i shall post
|
|
|
|
|
I am trying to create an image of a Dell Poweredge 2950 server that uses a RAID 5 configuration. Is it possible to create an image from a bootable media that will recognize a RAID array? If so what are some software application that will do this? I can image the logical drive once the OS is running but I cannot re-image over the existing partition.
|
|
|
|
|
i am student who study device driver.
i don't understand blow source so i search DDK document but i can't understand.
can you explain line by line?
sorry to ask whole thing
HANDLE GetDeviceViaInterface( GUID* pGuid, DWORD instance)
{
// Get handle to relevant device information set
HDEVINFO info = SetupDiGetClassDevs(pGuid, NULL, NULL, DIGCF_PRESENT | DIGCF_INTERFACEDEVICE);
if(info==INVALID_HANDLE_VALUE)
{
printf("No HDEVINFO available for this GUID\n");
return NULL;
}
// Get interface data for the requested instance
SP_INTERFACE_DEVICE_DATA ifdata;
ifdata.cbSize = sizeof(ifdata);
if(!SetupDiEnumDeviceInterfaces(info, NULL, pGuid, instance, ifdata))
{
printf("No SP_INTERFACE_DEVICE_DATA available for this GUID instance\n");
SetupDiDestroyDeviceInfoList(info);
return NULL;
}
// Get size of symbolic link name
DWORD ReqLen;
SetupDiGetDeviceInterfaceDetail(info, ifdata, NULL, 0, ReqLen, NULL);
PSP_INTERFACE_DEVICE_DETAIL_DATA ifDetail = (PSP_INTERFACE_DEVICE_DETAIL_DATA)(new char[ReqLen]);
if( ifDetail==NULL)
{
SetupDiDestroyDeviceInfoList(info);
return NULL;
}
// Get symbolic link name
ifDetail->cbSize = sizeof(SP_INTERFACE_DEVICE_DETAIL_DATA);
if( !SetupDiGetDeviceInterfaceDetail(info, ifdata, ifDetail, ReqLen, NULL, NULL))
{
SetupDiDestroyDeviceInfoList(info);
delete ifDetail;
return NULL;
}
printf("Symbolic link is %s\n",ifDetail;DevicePath);
// Open file
HANDLE rv = CreateFile( ifDetail;DevicePath,
GENERIC_READ | GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE,
NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
if( rv==INVALID_HANDLE_VALUE) rv = NULL;
delete ifDetail;
SetupDiDestroyDeviceInfoList(info);
return rv;
}
hi
i am student.
My english is a little.
anyway, nice to meet you~~
and give me your advice anytime~
|
|
|
|
|
I'm looking for resources on programming in machine/binary language so far I've only found resources on coding in ML on atari archives.So if anyone written any tutorials or found any ebooks on the subject please email them to alien.fx_fiend@yahoo.com.What I'm looking for is cutting edge and in depth analysis into the fundamental workings of a system and ML coding.
~When The Demons Arrive The Survivors Will Envy The Dead~
|
|
|
|
|
how about x86 assembly[^] ?
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Try for
IBM PC Assembly language and programming
Peter Abel.
|
|
|
|
|
I don't know much about networking..
I can see a port in the back of my motherboard for connecting the LAN cable.
Isn't it enough for setting up a LAN??
What is an NIC card?
What is the use of it when the motherboard comes with the cable port.
I think the RJ45 is in the back of the board...
Is there any special use for using an NIC??
|
|
|
|
|
|
During development of a USB device, I temporarily used Vendor ID=547 and Device Id=1002, since those were the defaults for the development kit I was using. I have since switched to using properly-registered IDs.
Unfortunately, a product I have purchased and would like to use (a chip programmer) uses the same IDs, and any time I plug it in Windows wants to attach my drivers rather than the proper drivers for the device. I can easily enough see what devices are 'installed' and uninstall them, but the next time I plug in the device it installs it with my drivers rather than prompting for the right ones.
What must I do to tell windows that 0547/1002 is NOT my device and I would like it to prompt for a .INF file (which could then load the proper drivers)?
|
|
|
|