Hi! > > So how do I do serial programming under Freedos?
> Like on every other DOS. The question is probably more: Which programming language do you prefer? Back in 1994/1995 I used BASIC for that: 1. Send data to tiny Sharp Z80 Basic based computer via RS232: Start sending on PC first, then on Sharp, baud.N.8.1 without handshake, 1200 baud preferred, 9600 baud maximum, used sth like: com=printer : SETCOM'COM1:',1200,8,N,1 : SAVE"filename",A [hit break and...] lprint chr$(3) (??) ... on the Sharp end?? On the PC end, I used this QBASIC (today FreeBASIC) code: baud=1200 we: OPEN "com2:" + STR$(baud) + ",N,8,1,cd0,cs0,ds0,op0,rs,tb80,rb2048" FOR RANDOM AS #2 ON ERROR GOTO ne ne: INPUT "file to send to sharp"; f$ OPEN "i", #1, f$ ON ERROR GOTO 2: REM maybe add delay loop in '1' 1 a$ = INPUT$(1, #1): PRINT #2, a$; : IF NOT (EOF(1)) THEN 1 2 PRINT #2, CHR$(26); PRINT #2, STRING$(255, 255): PRINT #2, : PRINT #2, CHR$(0): CLOSE INPUT "continue (enter)"; f$: IF f$ = "" THEN GOTO we END 2. Receive data from the Sharp computer: First start receiver software on PC, then start send action on Sharp. SETCOM as above. Send the file by lprinting it or by using SAVE on the Sharp? OPEN "com2:1200,N,8,1,cd0,cs0,ds0,op0,RS,tb2048,rb2048" FOR RANDOM AS #1 INPUT "file to receive"; fil$ OPEN "a", #2, fil$ ON ERROR GOTO 2 1 a$ = INPUT$(1, #1): PRINT #2, a$; : PRINT a$; : IF a$ <> CHR$(26) THEN 1 2 CLOSE : END 3. In theory you can also do all that with MODE COM1 ... on the PC side and with COPY COM1 somefile and COPY somefile COM1 etc but I believe I used BASIC to skip all handshake? And yes I know this code is ugly and my explanation is bad. Just trying to help by digging into ancient parts of my archives :-p. > Did you ever hear the words "internet search engine"? There are more polite ways to say that ;-) > For example Google > finds <http://en.wikibooks.org/wiki/Serial_Programming:DOS_Programming>, > when using the keywords "dos programming serial port". Actually the http://en.wikipedia.org/wiki/TRS-80_Color_Computer page also has some very nice links for the CoCo side of the story, too. Surf around a bit starting from there I would say... :-) > > So I need the information to do serial programming on both the > > Freedos 1 side and the 6809 side, where do I look? > You should ask the CoCo community about CoCo stuff. Or have a look at the CoCo fan pages and emulator pages, some of them also seem to mention tools. Hint: There are even drivers for reading CoCo disks in PC floppy drives. Must be easy enough to find PC 5.25in drives secondhand even today :-). Eric ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user