|
I also feel old now...wow
|
|
|
|
|
I have written a Windows device driver that updates the firmware on a certain device, via Windows Update. The sequence of operations is as follows:
- The driver is downloaded from Windows Update, and scheduled for installation
- The PC is rebooted (either by the user, or at the Windows idle time)
- During restart, the firmware is downloaded to the device
- An additional reboot is required in order to program the firmware into the device
It is this last step that I cannot get working. Other than writing some sort of application that requests the user to reboot the system after the driver is installed (error-prone, and inelegant), is there a way for the device driver to tell Windows that a reboot is required?
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Hi Daniel,
[redacted]
The only technique I can think of would be using the WUAPI to force reinstall your device driver. You didn't mention anything about your co-installer but you would probably need to add something to detect that the firmware was already present and up-to-date after the reboot.
Whether or not this is more elegant is debatable. In my opinion your co-installer should be responsible for the user notification and reboot.
Best Wishes,
-David Delaune
modified 22-May-19 14:24pm.
|
|
|
|
|
Having Windows Update handle the reboot is the ideal solution from my point of view. Thanks for the pointers.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
pamiętaj, najpierw zapisz wszytkie dane
|
|
|
|
|
Hi everyone. I need to write a virtual printer that can receive messages from a client but not actually do any physical printing. Instead the printing will be done in an application. I can write tcp client/server programs with no problems but have never tried a virtual printer. I have read some articles on the web but not quite what I need. I also have been searching for what is required in Windows for an install. Registry entries, Program Files, System32 ini files?
Can someone point me in the right direction?
|
|
|
|
|
|
Thanks. I've been reading up on this and it appears to be the way to go.
|
|
|
|
|
Maybe what you really need is just to send a "pdf" (or docx or txt); i.e. using a "free" pdf print driver.
Pdf's can be "queued" (for "printing"); if that makes a difference.
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
It needs to be more of a dummy driver. I need to just receive the tcp message sent from a POS client for an Epson POS printer, parse the esc/pos data and display on a monitor.
|
|
|
|
|
That's plain text (file / message) that can go to any ESC/P printer / driver / app.
The wording doesn't change that.
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
Dear all
Its regarding the hardware problem
My Mobo for AMD Phenom II x4 965 Black Edition, went off yesterday.
I have tried to buy the same Mobo.
Please suggest me alternate for the above.
|
|
|
|
|
Start here: amd phenom ii x4 965 black edition motherboard compatibility - Google Search[^]
Good luck - that processor is eight years old, and you'll have a hard time finding a new MB for it. And ... are you sure it's the MB that died, not the processor? I'd seriously consider getting a working second hand MB and processor with RAM instead, the cost will probably be the same given the age. Do bear in mind that Windows 10 is hardware linked: change your MB and it can be a fight to get Windows validated again - not impossible, but it can need MS tech to dive into your machine.
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
My laptop is one of the faster ones and uses a 4x PCIe based SSD, M key. The laptop make matched the motherboard to a very decent ssd: Samsung 960 Pro 512GB MLC NAND M.2 2280 PCIe NVMe 3.0 x4 Internal Solid State Drive". My backup preference is to clone drives (I have a device to do this - it's SATA based). All I need to do is drop two SATA drives into it, and push a button. So, I thought it would be trivial to find a USB to M key ssd adapter chassis to allow me to drop it into my cloner. Wrong.
I wanted one of these: Amazon.com: QNINE M.2 Adapter to 2.5 SATA Enclosure, B & M Key SATA Based NGFF SSD Converter to 2.5 Inch SATA 3.0 Card Support 2230 2242 2260 2280 Hard Drive with 7mm Case: Computers & Accessories[^]
But note the text in the listing: "Friendly Reminder: DOES NOT SUPPORT M.2 PCI-E SSD." After searching online for a week, and reading countless other requests for a product like this, I'm about to conclude that it just doesn't exist. I guess it falls under nonsensical - why would you want to take something so fast (4GB/sec) and use it in a slower interface (SATA)?
Anyway, if any of you out there on an off chance know of a solution, I'm all ears.
Thanks
Charlie Gilley
<italic>Stuck in a dysfunctional matrix from which I must escape...
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|
|
Closed? I'm shocked I say@!!!
Charlie Gilley
<italic>Stuck in a dysfunctional matrix from which I must escape...
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|
|
Hi Everyone,
I am looking to get client event logs for mac adresses on the cisco meraki using api
Basically for analytics purposes I am wanting to know how can I get all the event logs for different access points using api
Thanks in advance!
|
|
|
|
|
Been searching if any in-browser low res display designers, anyone got ideas?
256x64 pixel resolution
except zooming into MS-Paint, something to help figure out font to use, spacing.
Been looking at a Raspberry-pi zero with an oled White only pixels hat. 256x64 resolution.
It annoying enough writing python, then add in doing it via terminal ssh in nano.
Then spend hours trying to figure out how to change the font. Still no clue. All linux forums assuming version of linux which come with 100+ fonts pre-installed.
|
|
|
|
|
Was wondering if anyone used a NUC or similar small factor desktop to run as a shared resource server for a software development group?
Been running a vm off my computer, and ram (plus all the other stuff i do) is well past the point i should have moved of the database.
Used some old kit in the past, core 2 some 8+ years old 4gb ram, and decided to look up what some small form factor PCs were like now.
Some of the intel NUC stuff seems good for the price NUC7I5BNK £335 (gbp) Intel Nuc Slim Baby Canyon NUC7I5BNK Core I5- 7260U Barebone | Ebuyer.com[^]
mostly for running a sql server (dev), with iis.
Continues integration not needed (VSTS), but the RAM and cpu offload is the main things.
Potentially could use one of the full rack servers that we phasing out, but in comparison thats cpu 5+ years old (4 cores 2.2ghz).
The small form factor of the NUC seems nice to hide away near the developers.
As to running sql server of each of our own system? Most of the work is on the software side, not database schema changes, so I have not seen any need to have individual instances. (Except for the dev that always has to have their own stuff, good forbid they actual do work then mess around reinventing the database schema every week)
If shared, then clear to see what database changes.
Small team - not expecting to explode (4-8) any time soon.
Anyone using something similar?
|
|
|
|
|
Hi,
Need some help with a Huawei USB Dongle. It is an E3372h-607 dongle. I need to communicate with it via COM ports from an application on a PC. So far, it is not showing up as a COM device and whatever I've tried has been to no avail.
I've tried to flash the firmware on the dongle but all I get is a "Download Failed." error even if the flash code seems to have been accepted by the dongle.
Here's the firmware info for the dongle:
Hardware version: CL2E3372HM
Software version: 22.315.01.00.74
Web UI version : 17.100.14.00.74
Can anyone advise me on what I need to do so that i can communicate directly to the GSM/GPRS modem on the dongle via an app on the PC.
Much appreciated.
|
|
|
|
|
Hi
I've problem with SIM900 module.
Seems to me that it's not able to maintain a connection.
What i know this firmware is supporting europe (i come from Poland).
SIM has no PIN code and it's properly working on smartphone.
Firmware version:
SIMCOM_Ltd
SIMCOM_SIM900B
Revision:1137B09SIM900B32_ST
Response for "AT" Command:
OK
It's detecting an operator:
AT+COPS?
+COPS: 0,0,"Orange PL"
But signal quality is 0:
AT+CSQ
+CSQ: 0,0
OK
Led status:
https://www.youtube.com/watch?v=AY6JEwgJMM0&feature=share
I'm powering it from laboratory power supply which is set to 5V DC and current limitation set to 2A.
Any tips what can be wrong?
|
|
|
|
|
I am looking for sample code or tutorial on interrupt specific for RPi (BCM2835) C/C++.
I checked RPi site and did not find what I am looking for there.
I ask Mrs Google and so far I got bunch of general stuff about RPi.
There are articles in "IoT" but I have not found suitable forum about the subject, so I am posting my request here.
Will appreciate any leads.
Cheers
Vaclav
I found a solution here
<a href="https://github.com/BrianSidebotham/arm-tutorial-rpi">GitHub - BrianSidebotham/arm-tutorial-rpi: Raspberry-Pi Bare Metal Tutorial</a>[<a href="https://github.com/BrianSidebotham/arm-tutorial-rpi" target="_blank" title="New Window">^</a>]
-- modified 30-Jun-18 10:07am.
|
|
|
|
|
I know everyone is using usb 2 / 3 MIDI but I wanted to look into buying a motherboard that can have a MIDI input from a external device.
I've looked into LattePanda and other machines but i3+ processor maybe better and cheaper w/ M.2 ( plan on booting from M.2 ).
Issue is that I have no idea how to add a MIDI input or what kind of COM adapters assuming they won't slow anything down. GPIO ? have no idea ! Have seen MIDI input somewhere while browsing.
I was thinking a LattePanda or Udoo x86 and somehow adding Arduino since I see projects that do that. Not sure if this will work w/ WIN10 either. Probably have to write my own drivers. I would like to have an Intel based motherboard though that I can snap or put a MIDI IN on that has Wifi and M.2 ... Any ideas ???
Thanks !
|
|
|
|
|
I have a custom built device that is used to record and play midi music through an electric organ. Take a look at midi box - Google Search[^] for some other solutions.
|
|
|
|
|
I'm currently trying to implement an IP-Core on a Cyclone V 5CSEBA6U23I7 FPGA-HPS System using Altera Quartus II and TimeQuest Analyzer.
The Verilog code pasted below produces a timing problem, namely the assignment fifo_wdata_289[255:0] <= {fifo_out,fifo_wdata_289[255:16]}; , which writes the output of one FIFO into another FIFO register array.
The FIFOs in use are asynchronous, but the signals used are on the same clock domain.
This is being placed on the chip with a clock skew of -2.255 ns, which is a little bit less than a whole period (288 MHz clock => 3.47 ns), and makes TimeQuest complain, that the constraints are being violated.
The recommendation of TimeQuest is to Reduce the levels of combinational logic for the path (Issue Long Combinational Path) with Extra levels of combinational logic = 1, which you could get a perfect reference here [^]Discussion on the influencing factors of clock in FPGA design[^].
The 288 MHz clock is generated via PLL and I'm using Timeconstraint files (sdc) with commands derive_pll_clocks and derive_clock_uncertainty.
My question now is how to solve this problem, since I only have one layer of combinational logic (Demuxer and routing, as suggested by the assignment) and thus have no idea how to reduce that. Is there any other way I can make sure the timing requirement is met, or is there a better way to program this statemachine?
case(stateProc)
2'b00:
begin
if(~fifo_empty&~fifo_full_289)
begin
fifo_wdata_289[255:0] <= {fifo_out,fifo_wdata_289[255:16]};
fifo_wdata_289[287:256] <= {2'b11,fifo_wdata_289[287:258]};
if(imgSize >= maxImgSize - 32'd2)//image done, transmit data and fire irq
begin
fifo_wdata_289[288] <= 1;
stateProc <= 2'b01;
imgSize <= 32'd0;
end
else if(fifo_wdata_289[258])//process transfer without irq //258 high means that 256 has been written in this cycle and 258 in the previous cycle
begin
fifo_wdata_289[288] <= 0;
stateProc <= 2'b01;
imgSize <= imgSize + 32'd2;
end
else//accumulate more data
begin
fifo_wdata_289[288] <= 0;
stateProc <= 2'b00;
imgSize <= imgSize + 32'd2;
end
end
else
begin
fifo_wdata_289 <= fifo_wdata_289;
imgSize <= imgSize;
stateProc <= 2'b00;
end
end
2'b01:
begin
fifo_wdata_289 <= fifo_wdata_289;
imgSize <= imgSize;
stateProc <= 2'b11;
end
2'b11:
begin
fifo_wdata_289 <= 0;
imgSize <= imgSize;
stateProc <= 2'b00;
end
endcase
The TimeQuest failing paths look mostly like this:
Slack:
-3.178
From Node:
soc_system:u0|CamConnector:camconnector_0|FIFO_289:FIFO_inst_289|dcfifo:dcfifo_component|dcfifo_6up1:auto_generated|wrptr_g[0]
To Node:
soc_system:u0|CamConnector:camconnector_0|fifo_wdata_289[267]
I'm currently using MLAB cells as FIFO storage, which are rated for 290 MHz.
Both FIFOs are asynchronous and have a synchronizaton setting of 3.
Timing closure Recommandations of TimeQuest reports the following two issues:
1. Unbalanced Combinational Logic
2. Long Combinational Path
Thanks for your help.
|
|
|
|
|
Dear all,
I am trying to implement modbus RTU with function code 1 . The code i have written implemented for function code 3 . i will get proper response for function code 3. When i implemented for function code 1 i am getting invalid checksum response error.
The crc function is working fine . I have checked modscan32, excel sheet of simplymodbus website.
Simply Modbus - Enron Modbus Function Code 01 - Read Boolean Variables[^]
[^]
On-line CRC calculation and free library[^]
CRC calculation code
unsigned int crc_fn(unsigned char *dpacket,unsigned int len)
{
unsigned int crc = 0xffff,poly = 0xa001;
unsigned int i=0;
for(i=0;i<len;i++)
{
crc^= dpacket[i];
for(j=0;j<8;j++)
{
if(crc & 0x01)
{
crc >>= 1;
crc ^= poly;
}
else
crc >>= 1;
}
}
return (crc);
}
Main function
void Serial_Data()
{
unsigned int address,crc1,crc2;
unsigned char length,i;
unsigned char Data_Len_Count;
unsigned char length1;
crc2=crc_fn(&rxbuf[0],6);
__delay_ms(10);
if((rxbuf[6]==(unsigned char)(crc2))&&(rxbuf[7]==((unsigned char)(crc2>>8))))
{
if(rxbuf[0]==Device_ID )
{
if(rxbuf[1]==READ_REG)
{
address=(((unsigned int)(rxbuf[2]<<8))+((unsigned int)(rxbuf[3])));
if(rxbuf[5]>=1)
{
length1=(rxbuf[5]<249)?(rxbuf[5]+7)/8:0X20;
length=(rxbuf[5]*1);
address=(address*1);
ser_data[0]=Device_ID ;
ser_data[1]=rxbuf[1];
ser_data[2]=length;
ser_data[3]=rxbuf[6];
ser_data[4]=rxbuf[7];
ser_data[5]=length1;
ser_data[6]=00;
ser_data[7]=00;
ser_data[8]=00;
ser_data[9]=00;
crc_data[0]=Device_ID ;
crc_data[1]=rxbuf[1];
crc_data[2]=length;
j=3;
for(i=address;i<((address+length));i++)
{
crc_data[j++]=ser_data[i+3];
}
crc1 =crc_fn(&crc_data[0],(length+3));
Serial_1_Send_byte(ser_data[0]);
Serial_1_Send_byte(rxbuf[1]);
Serial_1_Send_byte(ser_data[2]);
for(i=address;i<((address+length));i++)
{
Serial_1_Send_byte(ser_data[i+3]);
}
Serial_1_Send_byte((unsigned char)crc1);
Serial_1_Send_byte((unsigned char)(crc1>>8));
Serial_1_Send_byte(crc_msb);
Serial_1_Send_byte(crc_lsb);
for(i=0;i<30;i++)
{
Serial_1_Send_byte(0);
}
}
}
__delay_ms(5);
}
}
index=0;
rec_flag = 0;
My suspection is on Storing the values inside register and Sending them for CRC check.Because send response is going well, i get error while getting response.
|
|
|
|