Re: Serial I/O on OSX 1.4.9 Please Help
- What does macfunction("serialpath",n) return for n = 1 thru 4?
Or ls -l the /dev directory to see what new device appeared after
plugging in your serial device.
One of those strings is probably what to use between the two ":" in
the Chipmunk Basic open COM1 command.
I just tested an IOGear GUC232A USB-Serial adapter with a lookback
stub, on a MacBook running 10.4.9 running Chipmunk Basic 3.6.3, and it
seemed to echo just file.
--- In email@example.com, "wetoperations" <karl@...>
>Chipmunk Basic 3.6.3b7.
> I have been trying for 2 days to access a serial device using
>from Zterm just fine.
> This device only comunicates at 2400 Baud. I can access this device
> I have tried many versions of the serial port example program in the
>can not make this
> I have also tried these on the built in modem of my G4 Powerbook. I
> work.wasted 4 days trying to
> Any help would be greatly apreciated I am up against a deadline I
> get this to work in TCL (no fconfigure -mode in OSX version of TCL)and I was really
> hoping I could do this with the Chipmunk."REMOTE MODE"
> I need to send an inti string "PHOTO" to which the device will reply
> Then I just need to send a simple command "M2" to wich I will get afixed length response.
>get this to work I am
> code I am using to test right now is:
> 160 config$ = "COM1:/dev/tty.usbmodem1511:2400,N,8,1"
> 200 open config$ for input as #2
> 220 open config$ for output as #1
> 240 k = 0
> 260 while k <> 3 : rem control-C to exit
> 280 a$ = input$(1,2)
> 320 print a$;
> 340 k$ = inkey$ : k = asc(k$)
> 360 if (k > 3) then fputbyte k,#1
> 380 wend
> 420 close #2 : close #1
> 440 print : print "done"
> 460 end
> Thanks for any ideas/help anyone can give I am desperate, If I cant
> going to have to take 2000 radiometric measurements by hand! Pleaseask for any
> aditional info needed.