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
- WROCC Newsletter Volume 41:11 reviewed (News:)
- WROCC March 2024 meeting o... Hughes and Peter Richmond (News:1)
- Rougol March 2024 meeting on monday with Bernard Boase (News:)
- Drag'n'Drop 13i2 edition reviewed (News:)
- South-West Show 2024 talks (News:4)
- February 2024 News Summary (News:1)
- Next developer fireside chat (News:)
- DDE31d released (News:)
- South-West Show 2024 Report (News:)
- South-West Show 2024 in pictures (News:)
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
The Icon Bar: 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 ]
 

The Icon Bar: Programming: RiscPC Serial port programming