Badge to Badge
Remember those TI graphic calculators that had a cable to transfer programs? The badges can work in the same way.
- Connect the GND pins on the expansion header.
- Connect C14<-->C13 and C13<-->C14 on the two badges.
- On receiving badge type "sload" and it will wait for program to arrive
- On sending badge type "ssave". Program will be sent. Receiving badge will report 1 byte more than sending badge to indicate the zero terminator
- Type list on receiving badge to see new code in the program buffer.
IMPORTANT TIP: If the receiving badge doesn't react, reset that badge (shift-reset) and try again. Sometimes this is necessary after first connecting the cables.
Computer-to-Badge
A serial-to-TTL cable will allow you to communicate between the badge and a computer. If you own one of this cables we highly recommend you bring it with you! We will have cables on hand but it will be necessary to share them so extras are great!
Wiring Diagram:
- Badge Pin Ground (GND) --> Ground on serial cable
- Badge Pin TX (C14) --> RX on serial cable (White in this example)
- Badge Pin RX (C13) --> TX on serial cable (Green in this example)
- Important: Leave voltage disconnected (Red in this example)
Serial Connection Info:
- Baud: 19200 8N1
- In basic, use command
ssave
to send program buffer as string - In BASIC, use command
sload
to recieve string into buffer - CP/M includes xmodem. Check your computer's serial program to ensure it supports this protocol. In the Z80 Emulator, switch to b: drive and run command similar to this:
xmdm r d:FILENAME.EXT
Linux: Simple Instructions for Transferring BASIC Programs
This quick walkthrough assumes that USB to TTL serial cable will enumerate as /dev/ttyUSB0. Look at dmesg output after plugging cable to ensure this is true.
Setup simple Linux serial connection:
- dmesg and look for where the serial cable is mounted
sudo chmod 777 /dev/ttyUSB0
#Make sure you have access to the USB portstty -F /dev/ttyUSB0 19200
#Set proper baud ratestty -F /dev/ttyUSB0
#Check to make sure rate was set correctly
Send a File to Badge
- On the badge, type
sload
into BASIC - On computer type:
cat basic.txt > /dev/ttyUSB0
- On the badge, press BRK
Receive a File from Badge
- On computer type:
cat /dev/ttyUSB0 > newbasic.txt
- On the badge, type ssave
- On computer type CTRL-C
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.
@M.daSilva i was planing to do that :)
Are you sure? yes | no
how about working together on it? :)
Are you sure? yes | no
yes we can.... i did not find you tonight so let me find you or you fine me tomorrow :)
Are you sure? yes | no
No probs! We just arrived at our hostel, too tired to go out again... See you tomorrow! I'll be wearing a HaD Belgrade 2016 tshirt (with loads of dots), and probably with walkie-talkies :D
Are you sure? yes | no
Is it possible to connect Badge with Serial communication, example to communicate with Arduino ?
Are you sure? yes | no
Yes it is. There is UART on badge, brought to expansion header, you have the same on arduino. Note that badge has 3,3V levels.
Are you sure? yes | no
@jaromir.sukuba will be there some documentation about it ? or just append above here on this log how we can make that communication. Above log i can see only how to transfer programs PC <> Badge
Are you sure? yes | no
@bosko The documentation is still in process, as well as final software. Apart from using serial port as backup to save/load your BASIC programs to PC, you have other options.
* There are words to send/receive data from BASIC program on badge.
* You can send/receive serial data to/from virtual Z80 running CP/M.
* You can redirect all badge standard input/output to serial port.
* There will be provided simple C language skeleton with hardware access routines (display, keyboard, UART etc...) if you want to delete badge firmware and load your own.
Are you sure? yes | no
Thanks for the amazing work! I was planning to connect it to serial radio modems, I'll probably use this feature :)
Are you sure? yes | no