Author Topic: Using the link port in Axe?  (Read 12000 times)

0 Members and 1 Guest are viewing this topic.

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Using the link port in Axe?
« on: June 23, 2014, 06:10:04 pm »
Could someone please tell me why this doesn't work (or a better way to do it)? I'm trying to send a byte across the link port.

Code for calculator 1:
Code: [Select]
.RUN1
ClrHome
Repeat getKey(15)
Disp "SENDING...",[i]
!If Send(9999,9999)
Disp "ERROR",
End
End

Code for calculator 2:
Code: [Select]
.RUN2
ClrHome
While 1
Disp "WAITING...",[i]
While Get=~1
ReturnIf getKey(15)
End
Disp "RECEIVED! ",Get>Dec,[i]
End
« Last Edit: June 24, 2014, 03:56:37 pm by ClrDraw »
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

Offline ben_g

  • Hey cool I can set a custom title now :)
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +125/-4
  • Asm noob
    • View Profile
    • Our programmer's team: GameCommandoSquad
Re: Using the link port in Axe? :/
« Reply #1 on: June 24, 2014, 07:51:25 am »
Code for calculator 2:
.RUN2
ClrHome
While 1
Disp "WAITING...",
While Get=~1
ReturnIf getKey(15)
End
Disp "RECEIVED! ",Get>Dec,
End
I think that the last Get is wrong, it isn't a variable, so if it recieves something, it tries to recieve something else and display that, so you should store the first Get into a variable, and display that variable instead.
My projects
 - The Lost Survivors (Unreal Engine) ACTIVE [GameCommandoSquad main project]
 - Oxo, with single-calc multiplayer and AI (axe) RELEASED (screenshot) (topic)
 - An android version of oxo (java)  ACTIVE
 - A 3D collision detection library (axe) RELEASED! (topic)(screenshot)(more recent screenshot)(screenshot of it being used in a tilemapper)
Spoiler For inactive:
- A first person shooter with a polygon-based 3d engine. (z80, will probably be recoded in axe using GLib) ON HOLD (screenshot)
 - A java MORPG. (pc) DEEP COMA(read more)(screenshot)
 - a minecraft game in axe DEAD (source code available)
 - a 3D racing game (axe) ON HOLD (outdated screenshot of asm version)

This signature was last updated on 20/04/2015 and may be outdated

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Using the link port in Axe? :/
« Reply #2 on: June 24, 2014, 09:59:06 am »
That. Also, send() can only send bytes. ;)

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: Using the link port in Axe? :/
« Reply #3 on: June 24, 2014, 11:23:50 am »
Quote
I think that the last Get is wrong, it isn't a variable, so if it recieves something, it tries to recieve something else and display that, so you should store the first Get into a variable, and display that variable instead.
Thanks, I deleted it (just to make it simpler). It still throws an error though :(

Quote
That. Also, send() can only send bytes. ;)
What should I send then? Because replacing the first "9999" with a "1" doesn't work either :/
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

Offline Axenntio

  • LV3 Member (Next: 100)
  • ***
  • Posts: 41
  • Rating: +3/-0
    • View Profile
Re: Using the link port in Axe? :/
« Reply #4 on: June 24, 2014, 11:27:24 am »
Code: [Select]
.RUN2
ClrHome
While 1
Disp "WAITING...",[i]
While Get->{L1}=-1
ReturnIf getKey(15)
End
Disp "RECEIVED! ",{L1}>Dec,[i]
End

Try this, should work :)

Cause you need to store what the TI get with the Get( command
I test this code with 2 calculators, but I use a variable (like G) instead a list (because there is a byte send not a value)
« Last Edit: June 24, 2014, 11:49:42 am by Axenntio »

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: Using the link port in Axe? :/
« Reply #5 on: June 24, 2014, 03:30:34 pm »
I tried that, it still doesn't work. Here's the current code.

Calc 1:
Code: [Select]
.RUN1
ClrHome
Disp "SENDING...",[i]
While 1
Repeat (getKey) and (getKey(9))
If getKey(15)
Return^^r
End
End
Disp Send(1,60000)>Dec,[i]
End

Calc two:
Code: [Select]
.RUN2
ClrHome
While 1
Disp "WAITING...",[i]
While Get->G=~1
ReturnIf getKey(15)
End
Disp "RECEIVED! ",G>Dec,[i])
End

Calc one displays "SENDING..." and calc two displays "WAITING...". When enter is pressed, calc one displays "0" (showing that sending failed) and calc 2 does nothing  :banghead:


edit: just to be clear, both calcs can send and receive data from the os's link menu, so I know the hardwear is working.
« Last Edit: June 24, 2014, 03:34:37 pm by ClrDraw »
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

Offline ordelore

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 168
  • Rating: +7/-0
  • Genius and Friend
    • View Profile
    • ordelore8x
Re: Using the link port in Axe?
« Reply #6 on: June 24, 2014, 04:04:53 pm »
Are you using USB or the I/O cable?
I am a friend.
I mine Bitcoins.

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: Using the link port in Axe?
« Reply #7 on: June 24, 2014, 05:54:38 pm »
I'm using USB and both calcs are 84+.
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: Using the link port in Axe?
« Reply #8 on: June 24, 2014, 05:56:15 pm »
USB ≠ link port. The link port is the jack one. AFAIK, nothing can be done with the USB port in Axe.

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: Using the link port in Axe?
« Reply #9 on: June 24, 2014, 06:04:02 pm »
Seriously?? Ugh, I don't own the other cable...
Are you sure though? Because I can still send stuff through the usb.
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: Using the link port in Axe?
« Reply #10 on: June 24, 2014, 06:05:04 pm »
The system that lets you use the USB port hasn't been written in Axe, I guarantee it.

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: Using the link port in Axe?
« Reply #11 on: June 24, 2014, 06:07:49 pm »
That's really disappointing... Thanks for your help :/
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

Offline ben_g

  • Hey cool I can set a custom title now :)
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +125/-4
  • Asm noob
    • View Profile
    • Our programmer's team: GameCommandoSquad
Re: Using the link port in Axe?
« Reply #12 on: June 24, 2014, 06:29:40 pm »
Well, not written in axe != impossible in axe. It is possible in assembly, and you can use assembly in axe. The USB port is very complicated and not fully documented (because it's not fully known) though, which makes it quite hard to get it to work. I'd reccomend you to ask thepenguin (if he still visits this forum) for more information if you're interested.
My projects
 - The Lost Survivors (Unreal Engine) ACTIVE [GameCommandoSquad main project]
 - Oxo, with single-calc multiplayer and AI (axe) RELEASED (screenshot) (topic)
 - An android version of oxo (java)  ACTIVE
 - A 3D collision detection library (axe) RELEASED! (topic)(screenshot)(more recent screenshot)(screenshot of it being used in a tilemapper)
Spoiler For inactive:
- A first person shooter with a polygon-based 3d engine. (z80, will probably be recoded in axe using GLib) ON HOLD (screenshot)
 - A java MORPG. (pc) DEEP COMA(read more)(screenshot)
 - a minecraft game in axe DEAD (source code available)
 - a 3D racing game (axe) ON HOLD (outdated screenshot of asm version)

This signature was last updated on 20/04/2015 and may be outdated

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Using the link port in Axe?
« Reply #13 on: June 26, 2014, 09:48:05 am »
BrandonW is the walking documentation for the USB controller. :P He does know a lot about it, as well as all the calc hardware.

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Using the link port in Axe?
« Reply #14 on: June 27, 2014, 01:59:18 am »
BrandonW is amazing. I wonder if you could use usb8x with axe to send stuff over usb cable?
I'm not a nerd but I pretend: