? SB Modem/Terminal ● SmileBASIC Source

Sign In

Register
*Usernames are case-sensitive
Forgot my password
What's going on?? See: Site Update March 2022

SB Modem/Terminal

Submitted
Updated
Author
12Me21
Public Key
CPDEX34J
Min. Compat.
All
Rating
4 votes
Description aaaaaaaaaaaa I don't feel like explaining this now.... videos: [url=https://www.youtube.com/watch?v=B9qgHVggwiA]https://www.youtube.com/watch?v=B9qgHVggwiA[/url] (alternate font, requires modifying code, uhh...) [url=https://www.youtube.com/watch?v=i-XZK7H0Nj0]https://www.youtube.com/watch?v=i-XZK7H0Nj0[/url] (old, 4000bps) https://github.com/12Me21/sbterm 8000 bits/sec modem + terminal emulator I guess it would make more sense to make some kind of file transfer tool but oh well Currently only PC -> 3DS transfer is finished. Instructions

Requirements:

- 3DS (I've only tested on a new 3DS but it should work on the original too I guess) - SmileBASIC version 3.3? or newer - Computer with audio output - Linux (No I am NOT making this work on windows lol) - Pulseaudio - Pulseaudio api development stuff (uhhh) - Some other things that are hopefully already installed - 3DS audio input/output splitter (see <that page I can never find>. Commercially available splitters will work but are unreliable)

Compiling

- Download https://github.com/12Me21/sbterm - run make (outputs executable file called pty)

Connecting audio cables

- For the 3DS to recognize the external mic, you have to plug the splitter into the 3DS BEFORE connecting anything else. You can tell if it was detected because the 3DS won't use its internal mic and won't respond to noises anymore. If you didn't make your own adapter (with the resistor connecting mic and ground) you'll have to unplug it and plug it back in a few dozen times before it's detected.
Notes Credits: 12Me21 Yttria <probably some other people that I forgot about> Gavin Haynes (Pulseaudio example code https://stackoverflow.com/a/29980624/6232794) R. Koucha (Pseudo-Terminal example code http://rachid.koucha.free.fr/tech_corner/pty_pdip.html) Other useful pages: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html https://en.wikipedia.org/wiki/ANSI_escape_code https://linux.die.net/man/5/terminfo https://pubs.opengroup.org/onlinepubs/007908799/xcurses/terminfo.html https://freedesktop.org/software/pulseaudio/doxygen/index.html
Categories
Keywords
5 Comment(s) Ghost64 Ghost64 Video Games I like to play video games! Hobbies Night Person I like the quiet night and sleep late. Express Yourself Beginner Programmer I'm just starting out! I'm still trying to grasp the basics. Programming Strength How do I run this? rando rando Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Third Year My account is over 3 years old Website Avatar Taboo I didn't change my avatar for 180 days Website Ow my ears HTV04 HTV04 Forum Leader Hidden Achievements Third Year My account is over 3 years old Website Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Can I use the Linux Subsystem for Windows with this (is this a Ubuntu console application) If it's possible then this is basically Windows-compatible too. Yolkai Yolkai Head Admin Yes, this [should] work in WSL (though I don't think recent versions have been tested in it): see the "Audio support" section on https://trzeci.eu/configure-graphic-and-sound-on-wsl/ for getting pulseaudio set up. You will need a PA server on the windows side. 12Me21 12Me21 Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself Oh right I should've mentioned that oops