axepad and Linux

Where do you use Picaxe?

  • Education

    Votes: 1 12.5%
  • Home

    Votes: 1 12.5%
  • Business

    Votes: 0 0.0%
  • Hobby

    Votes: 6 75.0%

  • Total voters
    8
  • Poll closed .

tomabedlam

New Member
Hi, I've posted this on the main forum too: sorry for duplication...and thanks if you've had a go at my poll.


I'm working with the Oracle Sun Ray system in an experimental technology school in Auckland NZ. We're trying to get the editor software to download into 08M's but have port problems. This is what the Oracle software engineer has emailed to me. can anyone offer some advice?
Hi Tom,

Not much good news. The software simply refuses to recognise the Sunray's serial port.

I discovered the #com directive which allows you to override the specified port under Options though, so that's a start. This allows each student to specify their own Sunray's COM port.

I'm pretty sure that the software should work on the media workstations though.

=====================
Contents of test.bas
=====================
#com /tmp/SUNWut/sessions/20/unit/dev/term/a
flash:
high 1
pause 5
low 1
pause 1
goto flash

==================
Manual Compilation
==================

mchang@mhlprsr01:~/Desktop/linaxepad/compiler_linux> ./picaxe08m ../../test.bas

PICAXE-08M Enhanced Compiler. Version 1.2
Copyright (c) 1996-2010 Revolution Education Ltd
All rights reserved.
www.picaxe.co.uk

Compiled successfully.
Memory used = 10 out of 256 bytes.


line# 0 col# 0

Error: Can't open port /tmp/SUNWut/sessions/20/unit/dev/term/a.
(err=6: No such device or address)



Regards,
Mark
 
Last edited:

Technical

Technical Support
Staff member
Unfortunately we know nothing about the Sunray system!
But #com is the correct method to set a strange port name like this.

However the error message is quite simple, it is an operating system standard error reporting that it can't find (or doesn't have permission) to open that serial port. It is the response to this simple code:

Code:
 int fd = open(device, O_RDWR | O_NDELAY); // open port and get handle
 if (fd < 0) 
 { // if error
  return -1;
 }
This implies a naming error or permissions error.
 
Last edited:

papaof2

Senior Member
Hi, I've posted this on the main forum too: sorry for duplication...and thanks if you've had a go at my poll.
I would have answered the poll, but it only allows for one answer - I use the PICAXE line for home (rising water alarm), hobby (trying out new devices), and business (that one's under an NDA).

John
 
Top