Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CircutMess Chatter 2 #3125

Merged
merged 10 commits into from
Jan 26, 2024
Merged

Add CircutMess Chatter 2 #3125

merged 10 commits into from
Jan 26, 2024

Conversation

GPSFan
Copy link
Contributor

@GPSFan GPSFan commented Jan 23, 2024

Add the CircuitMess Chatter 2.
This is almost a plug & play addition with the exception of the LLCC68 Lora module which is crippled wrt Meshtastic, It only allows interoperability with the standard preset of Medium-Slow. However it is possible to replace the Lora module with a Heltec RA-62 which is "almost" pin compatible. It requires one trace cut to remove the connection between Pin 26 of the ESP-32 module and Pin 5 of the Lora module, and a jumper to connect Pin 26 of the ESP-32 module to Pin 10 of the RA-62.
This allows full operation of the Chatter 2 with all of Meshtastics's Presets.
What works with or without the Lora module replacement:
The display.
The Beeper, although it is not too loud.
There is a wake functionality using the lower right button on the Chatter 2 keyboard.
There is GPS/GNSS capability using the 4 pin extension port of the Chatter 2, GPS is enabled by default in varient.h
GPS software power down.
External LORA Antenna capability is provided by the RA-62's UFL connector,
What doesn't work:
The remainder of the keyboard, A usage model needs to be developed and code written to scan and decode functionality.
Display flip.
GPS power off.

@GPSFan GPSFan closed this Jan 23, 2024
@GPSFan GPSFan reopened this Jan 23, 2024
thebentern added a commit to meshtastic/artifacts that referenced this pull request Jan 23, 2024
Copy link
Contributor

🤖 Pull request artifacts

empty string

file commit
firmware-2.2.20.0ee4fd6.zip 0ee4fd6

thebentern added a commit to meshtastic/artifacts that referenced this pull request Jan 23, 2024
@code8buster
Copy link
Contributor

To be clear what your variant.h is written to support:
Is it written to support your particular modification, with the Heltec RA62 module?
Are the correct GPIO assignments present but commented, if one wished to use the Chatter's stock LLCC68?

@GPSFan
Copy link
Contributor Author

GPSFan commented Jan 25, 2024

Thanks for spotting that. The committed variant.h will support the RA-62. I intended to have both USE_LLCC68 and USE_SX1262 uncommented when I did the PR, but forgot to remove the // ;>P
The Busy pin of the LLCC68 and the Busy pin of the SX1262 are on different pins of the module so my cut & jumper will allow either to work if I hadn't forgotten to remove the "//". My bad.
The Busy signal from the esp32 is on IO4 which matches the original trace for the LLCC68 and with the cut & jumper works for the SX1262.
So I need to amend something to get rid of that pesky //.
I have used the same code with the original LLCC68 in place and it works ok except for the limitation to Medium-Slow.

@GPSFan GPSFan closed this Jan 25, 2024
@GPSFan GPSFan reopened this Jan 25, 2024
@GPSFan
Copy link
Contributor Author

GPSFan commented Jan 25, 2024

Fixed the commented out define for the LLCC68

@GPSFan GPSFan closed this Jan 25, 2024
@GPSFan GPSFan reopened this Jan 25, 2024
@GPSFan
Copy link
Contributor Author

GPSFan commented Jan 25, 2024

Try again...

@code8buster
Copy link
Contributor

Now once we pull it in, a binary should be built for all the patient Chatter users to test out.

@thebentern thebentern merged commit ac9c5f8 into meshtastic:master Jan 26, 2024
62 checks passed
@ashdavely
Copy link

I tried to flash one of my unmodified chatter2 devices with 2.2.20alpha using Chrome - it installed but nothing shows on the screen. This probably isn't the place to ask about this but I am wondering what steps you took to flash or if you had to do anything different?

@GPSFan
Copy link
Contributor Author

GPSFan commented Feb 3, 2024

Here is fine.
You are the first to try it since I modified mine.
Can you connect via bluetooth?
Yours is a Chatter 2 correct? the original Chatter is a different animal and probably won't work.

@GPSFan
Copy link
Contributor Author

GPSFan commented Feb 3, 2024

I flashed mine via Platformio, once I started doing development work.

@GPSFan
Copy link
Contributor Author

GPSFan commented Feb 3, 2024

Bad move, t-beam has very different pinouts for the esp32 than the Chatter 2.
That's why it didn't work.

@GPSFan
Copy link
Contributor Author

GPSFan commented Feb 3, 2024

Try downloading the 2.2.20 and follow the instructions to flash vie the CLI using esptool.
You running Linux, Mac oe Windoze?

@ashdavely
Copy link

I also reflashed it with heltec ht62. It flashed and could still connect over usb.

@GPSFan
Copy link
Contributor Author

GPSFan commented Feb 3, 2024

Nothing but the Chatter 2 varient will work because of the very diferent pinnouts, I have no clue as to why there is no Chatter 2 selection on the web flasher.
Maybe it's because it is Alpha code. ;>((

https://nightly.link/meshtastic/firmware/workflows/main_matrix/master

@GPSFan
Copy link
Contributor Author

GPSFan commented Feb 4, 2024

The Chatter 2 hasn't made it into the web flasher's resources.ts file yet, that's why it doesn't show up yet.

@ashdavely
Copy link

i was able to flash it the hard way using platformio using some instructions on the meshtastic site. seems to be working. why does the screen say unpowered yet shows a battery status?

@GPSFan
Copy link
Contributor Author

GPSFan commented Feb 4, 2024

The A/D is connected to the battery, so it can tell it's voltage. Unpowered is an artifact of what the voltage is WRT the threshold settings in varient.h

@GPSFan
Copy link
Contributor Author

GPSFan commented Feb 4, 2024

The wakeup button works, barely, probably a result of running at only 80MHz.

@sirkleson
Copy link

@ashdavely can you provide some links? I am wanting to get this going as well. Thanks in advance..

@ashdavely
Copy link

ashdavely commented Feb 7, 2024

@ashdavely can you provide some links? I am wanting to get this going as well. Thanks in advance..

I started with the first 2 sections here in the link below - however I did everything from VS Code. The first step was to install PlatformIO. I just used the plugin for VS Code. You also have to install Git for step 2.
https://meshtastic.org/docs/development/firmware/build/

I got the source from GPSFan link above. If you've not used VS Code before its a pain. I was going to wait until Chatter2 shows in the flasher site to do my second device. I also ordered some new radio's from aliexpress to try my hand at replacing. 2 was less than $10.

@GPSFan
Copy link
Contributor Author

GPSFan commented Feb 11, 2024

Not something strictly Chatter 2 specific, but with the latest firmware updates, all esp-32 based devices should have better button response.

@cpuworkshop
Copy link

i need help with my chatter2 im trying to flash 2.3.4 but after its done writing when i restart the chatter the screen is blank

@GPSFan
Copy link
Contributor Author

GPSFan commented Apr 1, 2024

did you update or wipe?

@GPSFan
Copy link
Contributor Author

GPSFan commented Apr 1, 2024

Try flashing 2.3.3, that's the latest I have tested with.

@cpuworkshop
Copy link

i updated and wiped

@cpuworkshop
Copy link

im using esp tool on chrome

@GPSFan
Copy link
Contributor Author

GPSFan commented Apr 1, 2024

Did it work on an earlier version?

@cpuworkshop
Copy link

no

@cpuworkshop
Copy link

my device is un modified
i was trying to get one working so i can try to get the keyboard to fully work.
we have alot of new chatter 2.0's from a old project

@GPSFan
Copy link
Contributor Author

GPSFan commented Apr 1, 2024

I just built the latest 2.3.4 from source in Platformio, loaded it to my Chatter 2 and it works as expected for the quick set of tests I have done, Display, Lora, BLE and GPS interface all work. I no longer have any unmodified Chatter 2s to test against, all of mine have RA-62 Lora radios.
Can you see any boot messages coming out the serial port?

@cpuworkshop
Copy link

cpuworkshop commented Apr 1, 2024

no boot messages on the serial port . what are you using to flash the firmware ? can you send me a copy of what you made in platformino but with the stock hardware

@cpuworkshop
Copy link

cpuworkshop commented Apr 1, 2024

i have erase flashed then flash 2.3.4 then i flash update bin . after that i restart the device but nothing happens on the screen

@cpuworkshop
Copy link

so this what esp tool says

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371
ets Jun 8 2016 00:22:57

@GPSFan
Copy link
Contributor Author

GPSFan commented Apr 1, 2024

Usually I use Platformio, but have used esptool on occasion. I run Linux, so I have no insight into how Chrome operates, or how esptool works with it. The Web flasher currently does not support the Chatter 2.
Do you hear the startup beeping from the Chatter's speaker?
Have you flashed any esp-32 based hardware with any other code?
Have you flashed Meshtastic on any other hardware?
Make sure you have good batteries in the Chatter 2.
If you are not seeing anything coming out the serial port then you have a fundamental problem with how or what you are flashing the Chatter 2 with. The bootloader should be sending stuff out the serial port even if the Meshtastic code is corrupted. The Chatter code is stable and has not changed since 2.2.2x.
Get this:
https://github.com/meshtastic/firmware/releases/tag/v2.3.2.63df972
That is the current stable release and works on my Chatter 2.

@cpuworkshop
Copy link

no i don't hear anything at startup. yes i have flashed a few esp-32 devices . i also have a pair of heltic v3's on meshtastic .. i change the batteries every hour when testing. im able to connect to the port and flaash the firmware but its like its not saving it

@GPSFan
Copy link
Contributor Author

GPSFan commented Apr 1, 2024

This is really puzzling.
Maybe try a small test program to wiggle one of the GPIO's on the side connector, they are GPIO 2 & 13. If you can load that and the pins wiggle we can eliminate the flashing procedure. Might also try a serial print to validate the serial connection after the flashing is done.

@cpuworkshop
Copy link

so i gave it another shot and the only firmware i can get to go on the chatter is diy v1 2.3.3.63df972beta . when i try the chatter 2.34aa3280c.zip it writes but after reboot it has errors and won't boot

@cpuworkshop
Copy link

i can connect to the mesh app but it doesnt see any nodes or clients

@GPSFan
Copy link
Contributor Author

GPSFan commented Apr 8, 2024

I just downloaded those 2 versions and will look into it, probably not for a day or two though.

@GPSFan
Copy link
Contributor Author

GPSFan commented Apr 9, 2024

"so i gave it another shot and the only firmware i can get to go on the chatter is diy v1 2.3.3.63df972beta"
Well, there is no tag with that label, but there is a v2.3.2.63df972 Beta release. If you flashed the diy v1 code, I'm surprised anything functioned. You should have flashed the chatter2 specific code from that release.
Make sure you do a flash erase before flashing anything else.

"when i try the chatter 2.34aa3280c.zip it writes but after reboot it has errors and won't boot"
That was an interim nightly build that is no longer available. I got the latest Alpha:
firmware-chatter2-2.3.4.b14ac77.zip
(it too is no longer available as it was just superseded)
and flashed: firmware-chatter2-2.3.4.b14ac77.bin

Interim nightly builds can often be broken is all sorts of ways, I hardly ever use them, but build my code from sources.
This composite picture shows the flashing process, the contents of the directory I flashed from and the serial output during and just after a power cycle reset. The Chatter 2 worked as expected, and shows other nearby nodes.

Chatter_2

BTW I renamed device-install.sh to flash.sh just to be easier to type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants