@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21



Comments:

<0> does anyone know if its safe to use Parallel port data pins to read and write data ?
<0> i mean at the same time
<1> aren't all the pins generally used at the same time to read and write data?
<2> You don't want to connect the output of a device to data pin 2 and then try writing data out data pin 2
<1> i.e. 8 pins = 8 bits = 1 byte per operation
<2> connecting 2 outputs together = bad
<1> oh
<1> hmm
<0> how do i force parallel port to only read using data pins ?
<2> The proper way to do it is to have the device who was outputting to tristate it's outputs so that you can output from the parallel port
<2> if you don't need to output anything on the parallel port then you have no worries.. just don't output to it, only read
<1> i thought the parallel port was bidirectional
<0> i need to implement a 2 way communication
<2> rdragon: the port itself is bidirectional yes, but you also need to connect it to a device that will play well.
<0> is there way to tell the parallel port to either read on the pins, or write to the pins
<1> Asmodee` oh, right... i ***umed he wasn't trying to write to a device that doesn't read



<2> I'm sure there's a way to change the parallel port from input to output mode, but how to do that I do not know.
<0> ok, as long as its possible
<0> by the way
<1> my guess would be that one of the pins is used to determine which way the data is going
<2> Perhaps the parallel port hardware automatically does this when a read (or write) is issued, but i really don't know for sure.
<0> are all the pins on parallel port by directional ?
<0> ie i need 8 data pins + 4 control pins
<2> There are different types of parallel ports so that would depend on the specific port. I've actually read docs for some projects were people use the status lines as additional i/o
<1> Cloud99 each pin has a predefined purpose
<1> what are you trying to talk to - your own hardware?
<0> yeah
<0> i can program the hardware any way i like
<1> oh, then I guess things are a little more up in the air
<0> but i need tha parallel port to work so it can talk to it
<1> aren't serial ports easier to deal with?
<2> well to deal with a serial port you have to add a MAX232 to your hardware
<1> for instance, usb
<2> USB is a bitch
<0> lol
<1> ah
<0> the hardware is old
<2> but you could use a USB -> RS232 converter to simplify things
<0> doesn't know what usb is
<1> I guess it's not as simple as linking with a library ;)
<2> you would still need a MAX232 on the hardware though
<3> How does one use USB anyway?
<2> well there's 2 aspects to USB, the device and the host.
<3> I never could find anything good on communicating with USB
<1> MarchHare - one who, hardware designer or software?
<2> If your device enumerates as a device that has generic drivers, like a HID Mouse then windows provides the drivers and does all the work
<3> Let's say I want to write a program to just dump the contents of a USB key drive...where would I start
<2> If your device enumerates as something else, then you need to write a driver..
<2> on your device side, in the firmware, it can be quite a pain.
<3> How about a driver that you install seperate?
<2> Well you could do that by p***ing //PhysicalDrive//.//K:/ or something like that to CreateFile()
<2> i forget the actual string..
<3> the string is basically just the device location.
<3> more or less, correct?
<2> To write your own driver you would need the Windows DDK, which afaik is no longer free.
<3> When did the DDK stop being free?
<2> I think during win2k they started charging like $300 for it
<4> jb around?
<3> I'd ***ume that applies to the NT driver SDK
<2> You can only do that PhysicalDrive thing with the USB key to access the raw contents because a USB key acts like a removable storage device. Anything else would be different.
<3> JB is in politics.
<5> What's up
<3> I'll have to see if I can find the NT2k+ DDK somewhere.
<2> sorry, that physicaldrive string is "\\.\PHYSICALDRIVE0"
<3> Asmodee, where do I find the string for my computer?
<2> i was a bit off and you'll have to escape those \'s so it would actually end up "\\\\.\\PHYSICALDRIVE0"
<3> Is that just a enumeration that varies with each system, or is that fixed for everyone?
<2> This physical drive stuff only applies to getting raw access to a storage device, byp***ing the file system driver. It won't work for other USB devices. For other stuff I have no idea.
<2> I've only done USB from the device side, not the host OS.
<3> So basically, the USB device has a this pointer
<2> I've used a PIC18F2550 microcontroller from www.microchip.com. They provide a sort of generic driver to interface with their chips. They give you the .lib, .dll and .h file and a few functions to access the device so it pretty much eliminates the need to write your own driver to get raw access to the USB device. To write a driver from scratch I have no idea.
<1> there is some program revolving around xbox hacking that interfaces directly with some usb drives and writes directly to it - it might be open source
<3> That'd be interesting to try someday :)
<2> Microchip provides example firmware for the USB stuff too so it's not too bad to do simple stuff.
<2> One of their examples causes their chip to enumerate as a USB->RS232 interface. In windows the device shows up as a serial port and you can read/write to it like you would any normal serial port, but you physically connect the device to the PC via USB
<3> Sounds a bit like an FPGA
<2> It uses a generic driver for this that microsoft provides so no need to write your own. There are generic drivers for many types of USB devices.



<2> well microchip doesn't make FPGAs, they make Microcontrollers, which are processors with integrated RAM, flash, A/D converters, timers, and other support systems so you can run the processor on it without needing any support chips.
<3> I've used the HC11 microcontroller. Does that count?
<2> FPGAs are a bit lower level than a Microcontroller (MCU) as FPGAs are reprogrammable at the logic gate level, rather than a processor.
<2> I've used HC11 as well. The PIC18F series is much nicer and easier to use ;)
<3> I didn't get a choice.
<3> It was for a cl***.
<3> 256k ram. woot!
<2> I used HC11 for a cl*** too.
<2> The version we used only had 32k ram and 32k code space
<2> 256k must have been luxurious ;P
<3> And best of all, it could either have 256k or deal with info transmission
<3> Maybe it was 32k, and I was thinking of 256b memory onboard the chip.
<2> did you mean 256kbit or kbyte?
<2> Ours were 32KByte
<3> No, I meant byte
<3> It had some external memory
<2> right
<2> Actually.. I think it had 256b of flash memory on chip. We connected 32KB of code and 32KB of RAM external.
<2> 256B rather
<2> I think we ran ours with a whopping 8MHz clock, which allowed it to fetch 1 instruction per 4 cycles from the memory ;)
<1> oh it works... the joy1
<6> I feel
<6> really weird
<1> what's up?
<0> hmm
<6> I don't know
<6> I went to the climbing gym
<6> I was super strong when I got there
<6> then, my friend showed up, and I took like a 10 minute break
<6> all of the sudden my arms were in serious pain
<6> just from the 10 minute break
<6> I couldn't hold anything in the bouldering room
<6> then I went out and climbed something really easy
<6> and worked my way up to harder and harder things
<6> then ended up climbing some pretty hard routes, the pain just magically went away in both my arms
<1> heh
<6> then, I just got home a little while ago, and I'm too tired to do anything. I'm too tired to get out of my chair to go get food.
<5> Nice
<5> Are you actually worried about it?
<5> Never a bad idea to see your doctor when you're getting a lot of exercise
<1> yeah, maybe too much?
<6> bah
<6> doctor's are idiots
<5> Well, your's is
<6> I'm betting it has something to do with the allergy pills before I went to the gym.
<5> Maybe
<6> I was convinced I'd torn something in my arms for awhile
<6> but it just went away in like an hour.
<5> Well, that feels different
<2> maybe you're just getting old
<5> And ugly
<5> Old and ugly
<6> feels different?
<6> Anyway, I'm going to shower and sleep.
<6> I've got a friend moving to Colorado
<6> and, she's invited me out to ski
<6> weeeeee
<5> Ski bunny
<5> Have fun
<1> i can just feel myself getting ****ed into 'the .net way'
<1> i'm creating a web admin console in c++/cli
<5> system.geek.rdragon
<1> that's ::
<5> Maybe in your crap*** language!
<5> That's the third time I've said crap*** today
<5> I sort of like the word but it's tiring quickly
<5> I think it has about a 48 hour lifespan
<1> hehe
<1> plus, it's really easy to use unmanaged code, so it seamlessly integrates with the rest of the system
<1> someone had the right idea
<7> hm
<7> c++/cli is a bit strange
<1> how so?
<5> Nice


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #c++
or
Go to some related logs:

xui sas
arizona nadiak
puedo recitar apu
#teens
#linux
miss bambina
#mirc
#chatzone
DanishFarooq
#AllNiteCafe



Home  |  disclaimer  |  contact  |  submit quotes