Hi
Hmmm, if I were you, I would have a 'LookSee' at @MarkMLl's github thingy and see how he does it... ;D
Regards Benny
Basically, I'm pretty sure that people have looked at direct file access to (typically) /dev/ttyUSBn (on unix, YMMV) in the past and found it wanting. It might be worth trying again though, but there's lots of things like getting the control lines set that you have to use ioctl() for.
Socat looks interesting:
If you are referring to assigning a serial port as a file, then yes the baud rate etc should be configured separately from Pascal's file handling.
would I have to set baudrates and stuff beforehand ???
-1 can be returned if the device is used by another process or not correct freed from an older process. And only one process can work with this device and you must have the rights to use the device. By default a normal user have no rights for the devices.+1
-1 can be returned if the device is used by another process or not correct freed from an older process. And only one process can work with this device and you must have the rights to use the device. By default a normal user have no rights for the devices.
I've just read in serial.pp that seropen returnss 0 if not connected....so what does -1 indicate ???
for some strange reason it is working now.
Don't know what i've done ???????????
Yep, My arduino uno rev3 appears as ttyACM0
I'm not sure how it started working....I'm guessing it was somewhere with me adding me to "dialout" and/or setting the file permissions on /dev/ttyACM0 and/or rebooting for these to take affect.
Anywho, the next challenge is the get the arduino to output the right thing to program an at89s51 thru its ISP pins......Always problems to solve. ::)