log in | register | forums
Show:
Go:
Forums
Username:

Password:

User accounts
Register new account
Forgot password
Forum stats
List of members
Search the forums

Advanced search
Recent discussions
- Elsear brings super-fast Networking to Risc PC/A7000/A7000+ (News:)
- Latest hardware upgrade from RISCOSbits (News:)
- RISC OS London Show Report 2024 (News:1)
- Announcing the TIB 2024 Advent Calendar (News:1)
- Code GCC produces that makes you cry #12684 (Prog:39)
- RISCOSbits releases a new laptop solution (News:)
- Rougol November 2024 meeting on monday (News:)
- Drag'n'Drop 14i1 edition reviewed (News:)
- WROCC November 2024 talk o...ay - Andrew Rawnsley (ROD) (News:2)
- October 2024 News Summary (News:3)
Latest postings RSS Feeds
RSS 2.0 | 1.0 | 0.9
Atom 0.3
Misc RDF | CDF
 
View on Mastodon
@www.iconbar.com@rss-parrot.net
Site Search
 
Article archives
Acorn Arcade forums: Programming: RiscPC Serial port programming
 
  RiscPC Serial port programming
  Stoppers (10:12 16/1/2012)
  krisa (16:07 16/1/2012)
    Stoppers (17:53 16/1/2012)
 
Simon Willcocks Message #119499, posted by Stoppers at 10:12, 16/1/2012
Member
Posts: 302
This is giving me a headache!

I've got a simple BASIC program that should communicate with the rpca's serial port, but it only works if Connector is running at the same time (and then they share the received bytes).

Does anyone have some working code that uses OS_SpriteOp that I can have a look at? (Any language is fine.)

Thanks,
Simon
  ^[ Log in to reply ]
 
Kris Adcock Message #119502, posted by krisa at 16:07, 16/1/2012, in reply to message #119499
Member
Posts: 62
This is giving me a headache!

I've got a simple BASIC program that should communicate with the rpc's serial port, but it only works if Connector is running at the same time (and then they share the received bytes).

Does anyone have some working code that uses OS_SpriteOp that I can have a look at? (Any language is fine.)

Thanks,
Simon
I'm guessing you mean OS_SerialOp.

It's probably not Connector that's the vital point, but the serial block driver stuff. And I seem to recall that there's a BASIC example inside there somewhere ... enough to get me started in it, anyway. Have a look here:

http://www.xat.nl/en/riscos/sw/bd/index.htm
  ^[ Log in to reply ]
 
Simon Willcocks Message #119503, posted by Stoppers at 17:53, 16/1/2012, in reply to message #119502
Member
Posts: 302
I'm guessing you mean OS_SerialOp.
That's a very good guess! blush

It's probably not Connector that's the vital point, but the serial block driver stuff. And I seem to recall that there's a BASIC example inside there somewhere ... enough to get me started in it, anyway.
I did have a look at that, but didn't manage to get it working, either.

Now, I've just had another look, changed one line ("CALL driver TO A%" to "=USR driver", it was a syntax error), and it seems to work fine.

It's amazing how embarrassing yourself in front of the whole world solves problems. smile

I'd still like to know what the driver does that I wasn't, but it's not that important.

Thanks,
Simon
  ^[ Log in to reply ]
 

Acorn Arcade forums: Programming: RiscPC Serial port programming