Comments (21)
I'm really sorry that I cannot reproduce this issue. Has anyone else had that problem?
Did you ever try connecting the Pi to a Terminal app like Putty and see what it sends?
from pigfx.
okay, I have it probed. It just took me a bit to figure out how to probe it.
This is what I did:
putty.log
Connect the uart1 port to Putty, and set it up to log everything (I take it that means that things sent over will also be sent back to the terminal, so you'll see double)
NOTE: I'm using a z180, so it has a built-in uart port, thats why I'm logging from the z180 card, not from the pigfx card.
Then, I hardware rebooted the z180 (you'll see romwbw)
Then, I booted into zpm (It works nicer with the backspace key, also its habit)
Then, I changed to A: drive, and hit the ENTER key on the plugged in keyboard 4 times.
Then, I changed to the B: drive and hit Ctrl-M 4 times, the first which was a confirmation of the B: command.
EDIT
I looked at the hex data, and WHAAAAT
It just plain doesn't work though, when I try to play Snake for instance, Enter to begin doesn't work on the pigfx card.
EDIT 2:
I probed Snake, and it looks like the enter key is just sending 0a in games/programs, but sending crlf in cpm
putty.log
Edit 3:
I tried again, and it seems ctrl-m sends either 0D or 0A 0D. I am confusion.
putty.log
from pigfx.
I always assumed that you connected a keyboard to the Pi and were talking about, that the keyboard input from the Pi to the SBC was not working correctly when pressing return. Now I' confused. What's your setup? Are you talking about data from the Pi to the SBC or from the SBC to the Pi?
from pigfx.
Basically, I just had to choose a different probe point because the z180 has lines directly to the rc2014 bus. This is how the data gets to the z180:
USB KEYBOARD
|||
vvv
PIGFX -->> HDMI MONITOR
|||
vvv
RC2014 BUS BOARD
|||
vvv
Z180 Board -->> USART1 PROBE (Running Putty, I'm not interacting with it but just pulling data)
By the way, the pigfx options right now are default. Changing them seems to do nothing.
from pigfx.
These parameters change the output of the TX pin on the Pi. You seem to look at the output of the RC2014 to the Terminal. Please monitor the TX pin of the Pi.
from pigfx.
Ah, do you mean have the RX pin on the pi connected with the jumper, but set the tx jumper to the uart port on the pigfx card?
from pigfx.
No, there's no need to alter any jumpers. Just monitor the serial line FROM the Pi to the RC2014. You always sent me the data which gets sent from the RC2014 TO the Pi.
There are 2 datalines!
One is for the keyboard input and one is for displaying.
It's abolutely possible that you don't see any difference after changing the settings on the Pi, because you are looking at data that is sent from the RC2014 and NOT from the Pi.
from pigfx.
I tacked on 3 wires to the back of the pi, I'll do a putty pull and send you that.
from pigfx.
Okay, I got the log.
You're right, it does look a bit different. This is the log of the TX pin from the back of the Pi.
So what I did was this:
- Hook up the TX and Ground to putty.
- Rebooted the machine
- Hit Z to boot to zpm
- Hit the Enter key 4 times
- Typed out C: to change to the C: drive
- I confirmed C: by pressing Ctlr-M this time.
- I typed out snake
- I confirmed snake.com by hitting the Enter key this time (note this is sending a command)
- I'm in Snake now. In order to start, it says Press Enter.
- I press Enter 5 times
- I type out a 'b' as a spacer
- I start snake by pressing Ctrl-M
putty.log
from pigfx.
According to the Log, Enter always genereates 0A, which is LineFeed. That's what is should do if both parameters are set to 0 (sendCRLF and replaceLFwithCR).
Ctrl+m generates a 0D, which is CarriageReturn.
from pigfx.
I'll change replacelfwithcr to 1 and send you the log
from pigfx.
Okay, I checked and double checked that this time, I set replacelfwithcr to 1.
Here's the log.
The steps are the same as above, but I accidentally misspelled snake so there's an m and a backspace there.
putty.log
from pigfx.
Ok it looks like it acts the same. So enter still generates LF.
What Pi model do you use? What version of PiGfx are you running?
from pigfx.
I'm using a Pi Zero. I'm using a carrier board for the rc2014
https://www.tindie.com/products/semachthemonkey/raspberry-pi-zero-serial-terminal-for-rc2014/
I'm using the most recent(?) version of pigfx. Its in the bin folder of the master branch (main, now.......)
I've attached whats on my SD card, from the last test. Nothing is changed on it.
bootcode.zip
from pigfx.
This drives me crazy. I tested it once again on a Raspberry Pi Zero V1.2 with the files from your zip. It sends 0D on enter, like it should if replacelfwithcr is 1. I really don't know what else to try.
from pigfx.
Whats your baud rate? Mine is 115200, because thats what romwbw requires
EDIT
I'm also using a raspberry pi w, if that means any different wifi/bluetooth/uart things
from pigfx.
I used exactly your config file, so I tried 115200 too. I just tried it with a Pi Zero W. Same thing, it works as it should.
Does it even load your config file? Could you post a screenshot of the PiGfx boot screen?
Are you able to change other things in the config file, e.g. the baudrate or the keyboard layout?
from pigfx.
Okay, we're narrowing it down.
There's a weird bit about not reading a valid filesystem, and changing to uk doesn't work.
I tried formatting as both Fat32 and FAT, is this right?
I'll poke around for another card and try that.
from pigfx.
YOOOOO
So I found a new sd card, formatted it as fat32, AND IT WORKS
Guess my card was just busted.
Now I can focus on building a standalone system!
from pigfx.
Wow, that was a hard one.
I see that there are 2 partitions on your SD card. You could try to delete one and see if this fixes it.
from pigfx.
Thanks, a total format/partition manager fix did it!
There's still a few other quirks I'd like to work out with pigfx, but I'll see if I can't work them out on my own first.
from pigfx.
Related Issues (20)
- Compiling Error HOT 5
- Command for filled/empty shapes resulting in the same filled shape?
- How to load custom fonts? HOT 2
- [Feature request?] Change baudrate interactively HOT 4
- Feature request: Screen saver/blanker
- Bypass PIGFX card without removing it? HOT 1
- Compile fail. HOT 2
- unable to correctly set baudrate. HOT 14
- USB keyboard feature not working. HOT 11
- Pi/KBD freezes after several hours. HOT 8
- Having troubles with Pi Zero W HOT 1
- Composite output HOT 4
- Something not right, with apps that request number input and do not recognize enter key. HOT 3
- New Line/Enter not working in certian situations. HOT 5
- Resolution 800x480
- Pi pico ? HOT 5
- Hotswap USB keyboard...is this possible? HOT 2
- Qemu instructions and scripts out of date HOT 2
- Screen resolution of 1920*1080 possible
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pigfx.