|
Windows 7 already has the feature available to do what you want.
From control panel, select Backup and Restore and the from the left menu select "Create a system image".
You will need a large portable external drive to store the image (preferably a bootable USB Drive). Boot to recovery and select the disk image you want to restore.
Alternatively...
Create a bootable usb stick with toxboot and clonezilla.
Once you boot a PC from the key you can take an Image of the PC and store it in an external HD.
If you connect the bootable drive to another PC and boot it from there, once plugged the external HD you can flash the second PC with the image previously taken.
Here the links for downloads:
CloneZilla
ToxBoot
And procedure:
Save Image to Disk
Restore a Disk Image
I hope this helps. BTW...this is my first CodeProject Reply...so, If I have messed up in any way with my instructions, please cut me some slack.
JP (Gloucester, UK)
|
|
|
|
|
That even helped me a lot Thank you johnathan perry
|
|
|
|
|
Hello,
I am trying to follow this link Simple I/O device driver for RaspberryPi[^]
I tried the same for Pi2 B model but it is not working as it should. I changed the address to 3f000000(for pi2 b) and it is building the kernel module. But when I try to use see the output at 15th port, nothing is there. I tried 3f200000 address, but that module was not loading with insmod command. It throws an error "no such device". I checked the /proc/devices file and saw 3f200000 to 3f2000b3 already mapped with gpio, so maybe cannot use that same address to create this driver. Please help me rectify this.
|
|
|
|
|
You should post your question in the forum at the end of the article, so the author can help you.
|
|
|
|
|
Hi,
In 89C51SND1C-UL digital tube selected, segment are used in P0 mouth. How to write a program. The datasheet of 89C51SND1C-UL is here http://www.kynix.com/Detail/1155480/89C51SND1C-UL.html
This is a buzzer program.The bit-choice is in P2. I want to consult if I want to change bit-choice at P0 mouth, how to change the program. I convert P2 directly into P0 mouth. It doesn't work. I'm still learning single-chip computer.
="quote">Quote: #include<reg52.h>
#define uchar unsigned char
#define uint unsigned int
sbit speak=P3^4;
sbit huang=P3^0;
sbit red=P3^1;
sbit sjia=P3^6;
sbit sji=P3^7;
sbit kai=P3^0;
sbit fuwei=P3^1;
sbit kais=P3^2;
uchar num,temp,shijian,shi,ge,ashi,age,aa,tt,bb,i;
uchar code table[]={0xc0,0xf9,0xa4,0xb0,0x99,
0x92,0x82,0xf8,0x80,0x90,
0x88,0x83,0xc6,0xa1,0x86,0x8e};
void delay(uint z)
{
uchar x,y;
for(x=z;x>0;x--)
for(y=110;y>0;y--);
}
void bj()
{
for(i=0;i<110;i++)
{
speak=~speak; delay(5);
}
for(i=0;i<230;i++)
{
speak=~speak; delay(2);
}
}
void keyscan()
{
if(sjia==0)
{
delay(5);
if(sjia==0)
{
shijian=shijian+1;
if(shijian==99)
{
shijian=0;
}
}
while(!sjia);
}
if(sji==0)
{
delay(5);
if(sji==0)
{
shijian=shijian-1;
if(shijian==0)
{
shijian=30;
}
}
while(!sji);
}
}
void zhuanhuan()
{
shi=shijian/10;
ge=shijian%10;
ashi=num/10;
age=num%10;
}
void sound()
{
speak=0;
}
void main()
{ huang=0;red=0;
EA=1;
TMOD=0x11;
T2CON=0x01;
TH0=(65536-50000)/256;
TL0=(65536-50000)%256;
TH1=(65536-5000)/256;
TL1=(65536-5000)%256;
TH2=(65536-50000)/256;
TL2=(65536-50000)%256;
ET0=1;
TR0=0;
ET1=1;
TR1=1;
ET2=1;
TR2=0;
IT0=1;
EX0=1;
IT1=1;
EX1=1;
aa=0;
bb=0;
shijian=30;
while(1)
{
keyscan();
}
}
void int_0() interrupt 0
{
huang=1;
TR0=1;
TR2=1;
}
void timer_0() interrupt 1
{
TH0=(65536-50000)/256;
TL0=(65536-50000)%256;
aa++;
if(aa==20)
{
aa=0;
shijian--;
if(shijian==6)
{
red=1;
huang=0;
sound();
}
if(shijian==0)
{
TR0=0;
TR2=0;
TF2=0;
}
}
}
void int_1() interrupt 2
{
shijian=30;
num=0;
TR0=0;
TR2=0;
}
void timer_1() interrupt 3
{
TH1=(65536-5000)/256;
TL1=(65536-5000)%256;
tt++;
bb++;
if(tt==5)
tt=1;
zhuanhuan();
switch(tt)
{
case 1:P2=0xf4;P0=table[shi];break;
case 2:P2=0xf8;P0=table[ge];break;
case 3:P2=0xf1;P0=table[ashi];break;
case 4:P2=0xf2;P0=table[age];break;
default : ;
}
if(bb==1)
{
bb=0;
if(shijian==5)
{
speak=~speak;
}
if(shijian==4)
{
speak=~speak;
}
if(shijian==3)
{
speak=~speak;
}
if(shijian==2)
{
speak=~speak;
}
if(shijian==1)
{
speak=~speak;
}
}
}
void timer_2() interrupt 5
{
TH2=(65536-50000)/256;
TL2=(65536-50000)%256;
P1=0xfe;
temp=P1;
temp=temp&0xf0;
while(temp!=0xf0)
{
delay(5);
temp=P1;
temp=temp&0xf0;
while(temp!=0xf0)
{
temp=P1;
TR2=0;
switch(temp)
{
case 0xee:{TR0=0;TF2=0;num=1;bj();}break;
case 0xde:{TR0=0;TF2=0;num=2;bj();}break;
case 0xbe:{TR0=0;TF2=0;num=3;bj();}break;
case 0x7e:{TR0=0;TF2=0;num=4;bj();}break;
}
while(temp!=0xf0)
{
temp=P1;
temp=temp&0xf0;
}
}
}
P1=0xfd;
temp=P1;
temp=temp&0xf0;
while(temp!=0xf0)
{
delay(5);
temp=P1;
temp=temp&0xf0;
while(temp!=0xf0)
{
temp=P1;
TR2=0;
switch(temp)
{
case 0xed:{TR0=0;TF2=0;num=5;bj();}break;
case 0xdd:{TR0=0;TF2=0;num=6;bj();}break;
case 0xbd:{TR0=0;TF2=0;num=7;bj();}break;
case 0x7d:{TR0=0;TF2=0;num=8;bj();}break;
}
while(temp!=0xf0)
{
temp=P1;
temp=temp&0xf0;
}
}
}
}
|
|
|
|
|
What are you asking us?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Few things on "how"
Have a pseudoce about WHAT is the purpose of the code showing inputs / outputs.
Than CHANGING the output would be more visible in code.
Get into habit to comment your code. I do 80% comments and 20% real code ratio.
I realize your construct your code using your native language that write it in English, so that is why there are no (English) comments in your code.
Find a IDE which allows you to set breakpoints or use some other method to track your code.
Good luck
|
|
|
|
|
hi sir,
I am working on SmartCard Chip ,SCOSTA .
I have successfully created file structure in smartcard with ISO7816 specification.
while creating file structure ,i have been set security condition under Tag 8C for files.
It includes MF(Master file),under that EFs but Unable to delete file structure.
please let me know ...
How should i Delete file structure ? How should I set Security Condition for files?
How can I store variable data in smart card ?
|
|
|
|
|
Hi All, I'm trying to expand my development setup. I have a win10 laptop that handles the average stuff, but being tied down with extra monitors and a real keyboard and mouse it's lost a lot of its mobility. That and a lack of desk space has got me dreaming of other expanses of unused surfaces around my apartment. I'm looking to do more embedded programming on a Linux o.s., and I currently have an ESXi host with a few vm's that can do the job. My spare laptop is an arm based chromebook. Not much I can do to connect to the vm's other than vlc and the like. Any ideas on how I could hook USB dev boards to my chromebook and program them through a remotely accessed VM ?? I haven't been able to find many tools for this purpose.
Thanks
|
|
|
|
|
Hello everyone
I am developing Localization system which requires a high timestamp resolution Access point.
If there is any recommended product has this characteristic which can timestamp the in and out bound frame in a higher resolution than 1µs.
Wi-Fi
|
|
|
|
|
AS my development machine & my test machine are 64bit windows system with Windows 7 operating System So to give myself a head start I compiled the ComPort project under Windows-driver-samples-master/serial/VirtualSerial2 sample code provided by Microsoft, initial it flashed an error that said as follows "Provider cannot be "Microsoft", must be an organization who authored INF" so I changed the following line in .inx file MSFTUMDF=Microsoft to MSFTUMDF=Sample, then it compiled successfully.
Then I follow the following process to install the driver on the target machine.
1) I copied the VirtualSerial2um.cer file VirtualSerial2um.inf from Windows-driver-samples-master\serial\VirtualSerial2\ComPort\x64\Debug & devcon.exe from C:\Program Files\Windows Kits\10\Tools\x64 to a Sample folder in the C:\ drive of the Target device.
2) Then on target machine I open the internet explorer I went to Internet Options->content->Certificates->import then I selected the VirtualSerial2um.cer file & imported the Certificate.
3) Then on target machine I opened the command prompt as Administrator, browsed to the Sample folder & typed the following command.
<b>devcon install virtualSerial2um.inf UMDF\Virtual_1 </b>
Then on the command prompt it says:
<b>device tree entry created
devcon failed</b>
In the device manager Under Unknown Device COMn(n is com port number) appears but when I open my hyper terminal COMn doesn't show on the drop down list of COM ports.
Now I am unable to figure out why my devcon installation is failing & as t says that my driver is registered in the device tree then why It is showing in the Unknown device & why not is PORTS
This is the content of the VirtualSerial2um.inf file
;
; Copyright (C) Microsoft Corporation, All Rights Reserved.
;
; VirtualSerial.inf
;
;Installation Notes:
; Type "devcon install VirtualSerial2um.inf UMDF\VirtualSerial2um" to install
[Version]
Signature="$Windows NT$"
<b>Class=Ports</b>
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
Provider=%MSFTUMDF%
CatalogFile=WUDF.cat
DriverVer=05/30/2016,19.7.52.160
[Manufacturer]
%MSFTUMDF%=Microsoft,NTx86
[Microsoft.NTx86]
%VirtualSerialDeviceName%=VirtualSerial_Install,UMDF\VirtualSerial2um
[SourceDisksFiles]
Virtualserial2um.dll=1
[SourceDisksNames]
1 = %MediaDescription%
; =================== UMDF VirtualSerial Device ==================================
[VirtualSerial_Install.NT]
CopyFiles=UMDriverCopy
[VirtualSerial_Install.NT.hw]
AddReg=SetDeviceType_AddReg
[VirtualSerial_Install.NT.Services]
AddService=WUDFRd,0x000001fa,WUDFRD_ServiceInstall
[VirtualSerial_Install.NT.Wdf]
UmdfService = VirtualSerial, VirtualSerial_Install
UmdfServiceOrder = VirtualSerial
UmdfKernelModeClientPolicy = AllowKernelModeClients
UmdfFileObjectPolicy = AllowNullAndUnknownFileObjects
UmdfFsContextUsePolicy = CannotUseFsContexts
[VirtualSerial_Install]
UmdfLibraryVersion=2.15.0
ServiceBinary=%12%\UMDF\Virtualserial2um.dll
[WUDFRD_ServiceInstall]
DisplayName = %WudfRdDisplayName%
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %12%\WUDFRd.sys
[SetDeviceType_AddReg]
HKR,,DeviceType,0x10001,0x0000001b ; 0x1b = FILE_DEVICE_SERIAL_PORT
[DestinationDirs]
UMDriverCopy=12,UMDF ; copy to drivers\UMDF
[UMDriverCopy]
Virtualserial2um.dll
; =================== Generic ==================================
[Strings]
MSFTUMDF="Sample"
MediaDescription="Microsoft Sample Driver Installation Media"
WudfRdDisplayName="Windows Driver Foundation - User-mode Driver Framework Reflector"
VirtualSerialDeviceName="Microsoft VirtualSerial Sample (UMDF 2)
Could anyone please guide me in the correct direction
|
|
|
|
|
I am searching for all btle devices with BluetoothLEAdvertisementWatcher.
It works fine but I need a device handle so I can use GATT api's.
How do I get a device handle from the information provided in BluetoothLEAdvertisementReceivedEventArgs?
“If I had asked people what they wanted, they would have said faster horses.”
― Henry Ford
|
|
|
|
|
I don't think I am going to get this working.
It seems GATT comms is only possible if the device is already paired. And there is no api for paring programmatically.
Perhaps I can do it on android.
“If I had asked people what they wanted, they would have said faster horses.”
― Henry Ford
|
|
|
|
|
Hello,
I have a WDM upperfilter driver for some class devices(WPD, Printers). The wdm upper filter is from WDK generic toaster filter sample. The problem that I have is for some device that support or install UMDF drivers I receive STATUS DEVICE CONFIGURATION_ERROR at IRP_MN_START_DEVICE and device failed to start. Can you help me please or give me an advice?
Thank you.
|
|
|
|
|
|
WDF = UMDF + KMDF (user moder driver + kernel mode driver)
|
|
|
|
|
And the toaster samples are kernel drivers.
So how can you load a kernel filter on a usermode driver?
|
|
|
|
|
You don't understand.
I'm an upper filter driver(KERNEL) over a device class that use in his stack an UMDF driver...
|
|
|
|
|
The driver is in usermode. You cant run kernel code (the filter) in user mode, and vice versa.
|
|
|
|
|
Without the UMDF my filter works
|
|
|
|
|
You mean it works when you load it onto the toaster driver.
Of course it will.
However kernel code cant run in user mode, and a UMDF driver is user mode. Therefore the toaster filter driver, which is kernel code, cant be used on your UMDF driver.
You really have no idea what you are doing do you? You don't even understand the concept of user mode and kernel?
|
|
|
|
|
My friend:
I have a WDM filter driver, based on WDK toaster sample, that I am using to filter portable devices (mainly Phones), as upper filter. During AddDevice phase, I am querying device properties (such Description, Manufacturer and so on) and then attaching to device. I can see the IRP_MN_START_DEVICE, which I send down to next lower driver after setting a completion routine. This is working fine on most of the machines I am testing on, but on some systems (every XP and some Windows 7 and Server 2008), when I send the IRP_MN_START_DEVICE down to next driver, I get a STATUS_DEVICE_CONFIGURATION_ERROR, so this is preventing the device from being installed in the first place. I have managed to overcome this error by editing the hardware ID registry key for the device and creating "UpperDriverOk" and "KernelModeClientPolicy" values, setting them to 1. This way the device starts without issues and I can filter it as normal. Now, I am aware of Portable Devices being managed by an UMDF driver, but does that explains the issue with Start Device phase? I haven't found any differences between those systems with the issue and those that are working fine without needing the "registry values" workaround. Is there any system setting or service configuration that might be helping (or ruining) this filtering scenario? Would it be possible to apply the "KernelModeClientPolicy" workaround for the whole system and not separately for every single Phone device?
|
|
|
|
|
Maybe I wasn't so clear
|
|
|
|
|
No, you didn't explain yourself at all well.
I have no idea what the cause of your failure is.
|
|
|
|
|
Ok.
Thank you for your time.
|
|
|
|
|