|
Member 9640444 wrote: the relevant online resources That's a job for Google.
|
|
|
|
|
Too easy for you guys? That's okay. I will do the research myself and would only ask for correcting me if I am wrong on something. I hope noone minds my using this thread as a note board and perhaps someone googling for similar information one day will find it useful.
Here is what I found overnight.
First of all, I was mistaken about python language. The key word here was "driver".
Windows will require a driver made using a Driver Development Kit to convert ascii sent by the device to the computer (this kind of programming may require putting windows into a virtual machine). The communication is actually going to be in two directions.
Now, I will need to find out how to make an electronic device capable of sending and receiving ascii.
Anyone, is that right so far?
|
|
|
|
|
Member 9640444 wrote: is that right so far? Probably yes, but you need to do the R & D yourself to find out whether it works for what you want. This is really not an easy question to answer since there are so many variables. People here will try to help you with specific questions, but we cannot second guess what might happen in a project that does not yet exist outside of your brain.
See How to get an answer to your question - Hardware & Devices Discussion Boards[^].
|
|
|
|
|
Of course, thanks Richard very much for your help.
Like I said, this is an initial phase, but we want to get an outlook of what will be there to be done even as the lab team are working on the mechanics of movement. Therefore, I hope you do not mind me using this forum to verify our team's findings and assumptions. Forums is place where many ideas can get combined into new ones - and one can not always predict what the outcome will be.
Thus, may I use the forum to ask some further questions to a broader public?
|
|
|
|
|
Member 9640444 wrote: may I use the forum to ask some further questions Of course, but as mentioned in the link I gave you, please try to make your questions specific and detailed. Vague questions tend only to get vague answers.
|
|
|
|
|
I have a question concerning python - again, just to check.
Does the stage of the hardware design require taking into consideration the specific language planned to be used, f.e. python vs R?
If not at all, when is this decision to be taken? Is it that a matter of compatibility with the software that is going to talk with the device?
|
|
|
|
|
Are you building your own "controller"?
If not, the manufacturer / vendor will dictate what "language" / protocol the controller supports (e.g. MODBUS).
Then there's typically a "driver"; that is written in the "host" operating system's language (e.g. C; C++; Assembler).
Then there's the "application" that communicates with the "driver"; using just about any language that is compatible with the driver.
I would first familiarize myself with what is available / doable before "building from scratch".
Arduino - Home
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
I need to exchange some files between a small 8 bit computer and a PC. SD memory cards are accessed by a simple serial protocol and could easily interfaced by the old computer.
Implementing routines to read from a FAT file system would be much work. That's why I would like to use a much simpler file system. On the PC side I would need to write a program that can read and write that file system. In the end I will need low level access to the sectors of the SD card.
Does anybody know a Win32 or .Net library that can do that?
Update: There may be a hardware solution. This device[^] can be hooked up to the old computer's bus as an I/O port and can handle all details of reading or writing to a memory stick. That would eliminate the need to build a custom interface or write code for a specific file system.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
modified 14-Jan-17 7:05am.
|
|
|
|
|
I bought an identical monitor (ASUS MX279H 27" Full HD 1920x1080 IPS HDMI DVI VGA Frameless Monitor) to my current setup. Since I only had one DVI port on my computer, I bought an HDMI to DVI splitter per recommendation. Monitor 1 is visible alone. Monitor 2 is visible alone. Monitor 1 replicates to Monitor 2 after some shenanigans. Previously, it was defaulting to 600x480 resolution whenever Monitor 2 was connected, but it is behaving itself now. Unfortunately, I can't get it to recognize the other monitor as a separate monitor. The control panel shows 1 and 2, but if I try to detect 2, the screen either disappears completely on both or it tells me Not Detected and goes back to the 640x480 resolution until I unplug Monitor 2 and reboot again. I've checked all my drivers and everything is supposed to be up-to-date. I'm currently running Windows 10 and I've seen a lot of complaints online about dual monitors setup. Every solution online did not work for me. Any suggestions?
|
|
|
|
|
A splitter[^] is good only for screen duplication - it will not let the OS identify that you have two monitors. And as long as OS does not know it will not let you expand the desktop to two monitors...
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
Thanks! Guess I'll return it for a video card. Really shouldn't trust the store people since what percentage of people would want to duplicate screens for home use.
|
|
|
|
|
It may sound weird, but I had similar issues with Win 10 on a laptop (inbuilt screen 1366 x 768) and an external (VGA) monitor of the same resolution. The fix turned out to be updating the video drivers (from the vendor website IIRC). Nothing to lose and all that... It now behaves correctly in that configuration, and also using the HDMI port at either 1366 x 768 or 1920 x 1080.
Good luck,
Peter
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
I got burned to the tune of about $75 and a three day wait last time I had a hard drive failure.
Sure, I "had a backup".
What I learned was that that meant that I had the ability to retrieve THE DATA from the apps which I had, but it DIDN'T MEAN that I had the ability to restore the complete disk.
Now yes, the data from the apps was the critical aspect, but really, paying gobs of money for a "restore" CD (and waiting for delivery, for which I paid more money, for the "expedited" service to my low density populated town) well,,, you get the idea.
Okay, so I want to prepare for the next hard drive failure.
This time, I want to use a package that allows me to...
- Copy the disk (i.e., the entire image) to the external unit
- Change the hard drive
- Boot from a CD-Rom
- Restore the full image
- Reboot and resume with an identical hard drive
I'm Currently running Windows 7 on this machine.
Any and all advice is welcome.
Immediate questions in my head include...
- What do I want ?
- What questions do I ask ?
- Whom do I ask ?
- How do I recognize the idiot packages such as the one I used before ?
- What are the terms I want to see on the marketing hype ?
|
|
|
|
|
I would just add another hard drive (internal or external) and "mirror" the "main" drive; if you really want to make it "forgettable".
Back in the day, we used to do disaster recovery by taking the entire "business" (major investment firm) on a disk cartridge and walking it to a bank's data center for rebooting.
|
|
|
|
|
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
|
|
|
|
|