I am a fan of Kerm's project: “WiFi gCn with Spark Core.” And I read almost everything about that on Cemetech. I got four Argon boards the far away from the USA. Then I met with some problems. Hope you could help me deal with that because somehow this project is very important to me. And this post could be the whole path.
Firstly, I bought a TI-84 Plus Silver, and I tried to install Door CS7.2, then I find the screen become kind of “avulsion” when I open the app, I tried to use AFIXLCD to fix this problem, but it did not work(just like many people). I noticed it might because my TI-84 Plus Sliver is too “new,” then I bought an older model of TI-84 Plus Sliver by a low price, surprisingly, Door CS 7.2 works fine. So this screen problem is already [sloved].
Secondly, I found there would be tons of errors appear when I directly use the code of "gcnbridge3.ino" Just like this:
Code:
But when I add those two to the beginning, everything works perfectly.
Code:
I am noob, Idk why, but it works, so it is [sloved]
Now, are some problems I am facing. (I am using Argon(Gen3), not Photon(Gen2), but I do not think that would be a problem.)
Exactly the same to the problem with [url=https://www.cemetech.net/forum/viewtopic.php?t=10715&postdays=0&postorder=asc&start=40]NoahK[url/].
I flash the gCn, tip to the 6th pin, ring to the 5th pin, and sleeve to the ground.
Connect to my old ti-84 plus sliver, open Door CS 7.2.
When I click BRGCFG, whole calculator freeze, the trial monitor gives(I turn on the debug in the code)
(here I use NoahK's)
Code:
and open chat, there is no "*IRC Hub joined", I am the only one there
but the SAX do gives"*gCn virtual hub 'IRCHub' has new calculator 0A237CCEEC from Spark0000"
I am confused
And all what I need is just let calculators could send texts to each others through a local WIFI...
What am I using:
Ti-84 plus sliver OS2.55
Argon Firmware 1.21
Door CS 7.2
Chat v1.0
BridgeCFG
Firstly, I bought a TI-84 Plus Silver, and I tried to install Door CS7.2, then I find the screen become kind of “avulsion” when I open the app, I tried to use AFIXLCD to fix this problem, but it did not work(just like many people). I noticed it might because my TI-84 Plus Sliver is too “new,” then I bought an older model of TI-84 Plus Sliver by a low price, surprisingly, Door CS 7.2 works fine. So this screen problem is already [sloved].
Secondly, I found there would be tons of errors appear when I directly use the code of "gcnbridge3.ino" Just like this:
Code:
Processing gcn.ino
make -C ../newlib_nano
make[1]: Entering directory '/firmware/newlib_nano'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/firmware/newlib_nano'
make -C ../user
make[1]: Entering directory '/firmware/user'
Building cpp file: gcn.cpp
Invoking: ARM GCC CPP Compiler
mkdir -p ../build/target/user/platform-0-lto
arm-none-eabi-gcc -DSTM32_DEVICE -DSTM32F10X_MD -DPLATFORM_THREADING=0 -DPLATFORM_ID=0 -DPLATFORM_NAME=core -DUSBD_VID_SPARK=0x1D50 -DUSBD_PID_DFU=0x607F -DUSBD_PID_CDC=0x607D -DSPARK_PLATFORM -DFLASHEE_EEPROM -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb -flto -DINCLUDE_PLATFORM=1 -DPRODUCT_ID=0 -DPRODUCT_FIRMWARE_VERSION=65535 -DUSE_STDPERIPH_DRIVER -DDFU_BUILD_ENABLE -DSYSTEM_VERSION_STRING=1.2.1 -DRELEASE_BUILD -I./inc -I../wiring/inc -I../system/inc -I../third_party/miniz/miniz -I../services/inc -I../third_party/nanopb/nanopb -I../communication/src -I../hal/inc -I../hal/shared -I../hal/src/core -I../hal/src/stm32 -I../platform/shared/inc -I../platform/MCU/STM32F1xx/STM32_StdPeriph_Driver/inc -I../platform/MCU/STM32F1xx/STM32_USB_Device_Driver/inc -I../platform/MCU/STM32F1xx/SPARK_Firmware_Driver/inc -I../platform/MCU/shared/STM32/inc -I../platform/MCU/STM32F1xx/CMSIS/Include -I../platform/MCU/STM32F1xx/CMSIS/Device/ST/Include -I../platform/NET/CC3000/CC3000_Host_Driver -I../dynalib/inc -I -I./libraries -I. -MD -MP -MF ../build/target/user/platform-0-ltogcn.o.d -ffunction-sections -fdata-sections -Wall -Wno-switch -Wno-error=deprecated-declarations -fmessage-length=0 -fno-strict-aliasing -DSPARK=1 -DPARTICLE=1 -Wundef -DSTART_DFU_FLASHER_SERIAL_SPEED=14400 -DSTART_YMODEM_FLASHER_SERIAL_SPEED=28800 -DSPARK_PLATFORM_NET=CC3000 -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -DLOG_INCLUDE_SOURCE_INFO=1 -DPARTICLE_USER_MODULE -DMODULE_VERSION=1213 -DMODULE_FUNCTION=3 -DMODULE_DEPENDENCY=0,0,0 -DMODULE_DEPENDENCY2=0,0,0 -D_WINSOCK_H -D_GNU_SOURCE -DLOG_MODULE_CATEGORY="\"app\"" -fno-exceptions -fno-rtti -fcheck-new -std=gnu++14 -c -o ../build/target/user/platform-0-ltogcn.o gcn.cpp
gcn.cpp:41:12: error: expected constructor, destructor, or type conversion before '(' token
SYSTEM_MODE(SEMI_AUTOMATIC);
^
gcn.cpp:44:1: error: 'uint16_t' does not name a type
uint16_t server_port = 4295;
^
gcn.cpp:50:1: error: 'uint8_t' does not name a type
uint8_t msg_buf[TCP_MSG_BUF_SIZE];
^
gcn.cpp:54:1: error: 'uint8_t' does not name a type
uint8_t rgbledmask = 0;
^
gcn.cpp:60:7: error: 'uint8_t' does not name a type
const uint8_t self_addr[5] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF};
^
gcn.cpp:115:1: error: 'uint8_t' does not name a type
uint8_t led_state = 0;
^
gcn.cpp:119:1: error: 'uint8_t' does not name a type
uint8_t framebuffer[1+256+2+5+5]; //1 byte USB prefix!f
^
gcn.cpp:120:1: error: 'uint8_t' does not name a type
uint8_t* sender = framebuffer + 1+0; //5 bytes
^
gcn.cpp:121:1: error: 'uint8_t' does not name a type
uint8_t* recipient = framebuffer + 1+5; //5 bytes
^
gcn.cpp:122:1: error: 'uint8_t' does not name a type
uint8_t* datasizeptr = framebuffer+1+10; //2 bytes
^
gcn.cpp:123:1: error: 'uint8_t' does not name a type
uint8_t* data = framebuffer + 1+12; //256 bytesd
^
gcn.cpp:132:1: error: 'uint8_t' does not name a type
uint8_t* calcsearchptr_recv;
^
gcn.cpp:133:1: error: 'uint8_t' does not name a type
uint8_t* calcsearchptr_send;
^
gcn.cpp:134:1: error: 'uint8_t' does not name a type
uint8_t calcsknown;
^
gcn.cpp:135:1: error: 'uint8_t' does not name a type
uint8_t calcspassed_recv;
^
gcn.cpp:136:1: error: 'uint8_t' does not name a type
uint8_t calcspassed_send;
^
gcn.cpp:137:1: error: 'uint8_t' does not name a type
uint8_t calcsearchstate;
^
gcn.cpp:138:1: error: 'uint8_t' does not name a type
uint8_t calcstore[calcstoresize];
^
gcn.cpp:181:8: error: 'uint16_t' does not name a type
static uint16_t cn2_sendbyte(uint8_t);
^
gcn.cpp:182:8: error: 'uint16_t' does not name a type
static uint16_t cn2_recbyte();
^
gcn.cpp:183:8: error: 'uint16_t' does not name a type
static uint16_t cn2_search_FSM(uint16_t);
^
gcn.cpp:186:1: error: 'TCPClient' does not name a type
TCPClient client;
^
gcn.cpp: In function 'void setup()':
gcn.cpp:201:20: error: 'OUTPUT' was not declared in this scope
pinMode(ledtoggle,OUTPUT);
^
gcn.cpp:201:26: error: 'pinMode' was not declared in this scope
pinMode(ledtoggle,OUTPUT);
^
gcn.cpp:204:5: error: 'calcsknown' was not declared in this scope
calcsknown = 0;
^
gcn.cpp:230:5: error: 'WiFi' was not declared in this scope
WiFi.on(); // Vital in SEMI_AUTOMATIC mode
^
gcn.cpp:232:5: error: 'Serial' was not declared in this scope
Serial.begin(9600); // Used for logging
^
gcn.cpp:243:9: error: 'EEPROM' was not declared in this scope
if (EEPROM.read(EEPROM_MAGIC_OFFSETL != EEPROM_MAGIC)) {
^
gcn.cpp:244:34: error: 'strlen' was not declared in this scope
int len = strlen(localhub);
^
gcn.cpp:251:9: error: 'EEPROM' was not declared in this scope
if (EEPROM.read(EEPROM_MAGIC_OFFSETR != EEPROM_MAGIC)) {
^
gcn.cpp:252:35: error: 'strlen' was not declared in this scope
int len = strlen(remotehub);
^
gcn.cpp:270:10: error: 'EEPROM' was not declared in this scope
(EEPROM.read(EEPROM_MAGIC_OFFSETL) == EEPROM_MAGIC) &&
^
gcn.cpp:277:10: error: 'EEPROM' was not declared in this scope
if ((EEPROM.read(EEPROM_MAGIC_OFFSETL) == EEPROM_MAGIC) &&
^
gcn.cpp:280:23: error: 'copyHubsToRAM' was not declared in this scope
copyHubsToRAM();
^
gcn.cpp:283:24: error: 'connectMetahub' was not declared in this scope
connectMetahub(); // At least attempt
^
gcn.cpp: In function 'void loop()':
gcn.cpp:296:5: error: 'uint16_t' was not declared in this scope
uint16_t datasize;
^
gcn.cpp:302:21: error: 'LOW' was not declared in this scope
setRGBLED(ledr, LOW);
^
gcn.cpp:302:24: error: 'setRGBLED' was not declared in this scope
setRGBLED(ledr, LOW);
^
gcn.cpp:307:10: error: 'client' was not declared in this scope
if (!client.connected()) {
^
gcn.cpp:308:25: error: 'HIGH' was not declared in this scope
setRGBLED(ledr, HIGH);
^
gcn.cpp:420:9: error: 'client' was not declared in this scope
if (client.connected() && (-1 != (c = client.read()))) {
^
gcn.cpp:424:9: error: 'msg_buf' was not declared in this scope
msg_buf[0] = c;
^
gcn.cpp:429:30: error: 'Particle' was not declared in this scope
if (c == -1) Particle.process();
^
gcn.cpp:442:17: error: 'recipient' was not declared in this scope
recipient[idx - 5] = c;
^
gcn.cpp:445:17: error: 'sender' was not declared in this scope
sender[idx - 10] = c;
^
gcn.cpp:448:17: error: 'datasizeptr' was not declared in this scope
datasizeptr[idx - 15] = c;
^
gcn.cpp:451:17: error: 'data' was not declared in this scope
data[idx - 17] = c;
^
gcn.cpp:465:33: error: 'HIGH' was not declared in this scope
setRGBLED(ledr, HIGH);
^
gcn.cpp:470:30: error: 'delay' was not declared in this scope
delay(100);
^
gcn.cpp:483:24: error: 'connectMetahub' was not declared in this scope
connectMetahub();
^
gcn.cpp:489:29: error: 'digitalRead' was not declared in this scope
if (digitalRead(CN2clock) == HIGH)
^
gcn.cpp:489:34: error: 'HIGH' was not declared in this scope
if (digitalRead(CN2clock) == HIGH)
^
gcn.cpp:496:27: error: 'delayMicroseconds' was not declared in this scope
delayMicroseconds(1000); //aka 1 millisecond
^
gcn.cpp:498:29: error: 'digitalRead' was not declared in this scope
if (digitalRead(CN2clock) == LOW) {
^
gcn.cpp:508:9: error: 'led_state' was not declared in this scope
led_state = 1 - led_state;
^
gcn.cpp:509:37: error: 'digitalWrite' was not declared in this scope
digitalWrite(ledg, led_state);
^
gcn.cpp:295:11: warning: unused variable 'j' [-Wunused-variable]
int i,j;
^
gcn.cpp:340:10: warning: unused variable 'doFlush' [-Wunused-variable]
bool doFlush = true;
^
gcn.cpp:341:9: warning: unused variable 'tempval' [-Wunused-variable]
int tempval;
^
gcn.cpp: In function 'unsigned int mySerialRead()':
gcn.cpp:520:11: error: 'Serial' was not declared in this scope
while(Serial.available() <= 0) {}
^
gcn.cpp:521:20: error: 'Serial' was not declared in this scope
if ((tempval = Serial.read()) == 's') {
^
gcn.cpp:522:25: error: 'HIGH' was not declared in this scope
setRGBLED(ledr, HIGH);
^
gcn.cpp:522:29: error: 'setRGBLED' was not declared in this scope
setRGBLED(ledr, HIGH);
^
gcn.cpp:528:21: error: 'LOW' was not declared in this scope
setRGBLED(ledr, LOW);
^
gcn.cpp:528:24: error: 'setRGBLED' was not declared in this scope
setRGBLED(ledr, LOW);
^
gcn.cpp: In function 'void mySerialEmptyBuf()':
gcn.cpp:541:14: error: 'Serial' was not declared in this scope
if (0 >= Serial.available())
^
gcn.cpp:543:9: error: 'Serial' was not declared in this scope
if (Serial.peek() == 's') {
^
gcn.cpp: In function 'void resetLines()':
gcn.cpp:552:21: error: 'INPUT_PULLUP' was not declared in this scope
pinMode(TIring, INPUT_PULLUP);
^
gcn.cpp:552:33: error: 'pinMode' was not declared in this scope
pinMode(TIring, INPUT_PULLUP);
^
gcn.cpp: In function 'int cn2_send()':
gcn.cpp:564:7: error: 'uint16_t' was not declared in this scope
uint16_t datasize;
^
gcn.cpp:565:7: error: 'uint8_t' was not declared in this scope
uint8_t readytosend;
^
gcn.cpp:566:16: error: expected ';' before 'checksum'
uint16_t checksum,checksum2, checksum3;
^
gcn.cpp:567:15: error: expected ';' before 'addror'
uint8_t addror;
^
gcn.cpp:590:9: error: 'readytosend' was not declared in this scope
readytosend = 0;
^
gcn.cpp:601:41: error: 'micros' was not declared in this scope
timerlong = timerlong2 = micros();
^
gcn.cpp:603:35: error: 'digitalRead' was not declared in this scope
if (digitalRead(CN2clock) == LOW) timerlong = micros();
^
gcn.cpp:603:40: error: 'LOW' was not declared in this scope
if (digitalRead(CN2clock) == LOW) timerlong = micros();
^
gcn.cpp:606:35: error: 'delay' was not declared in this scope
if (!readytosend) delay(10); //100 attempts per second
^
gcn.cpp:608:16: error: 'readytosend' was not declared in this scope
} while(!readytosend);
^
gcn.cpp:614:26: error: 'micros' was not declared in this scope
timerlong = micros();
^
gcn.cpp:616:22: error: 'OUTPUT' was not declared in this scope
pinMode(TItip, OUTPUT); // set pin to output
^
gcn.cpp:616:28: error: 'pinMode' was not declared in this scope
pinMode(TItip, OUTPUT); // set pin to output
^
gcn.cpp:623:32: error: 'LOW' was not declared in this scope
digitalWrite(CN2clock, LOW);
^
gcn.cpp:623:35: error: 'digitalWrite' was not declared in this scope
digitalWrite(CN2clock, LOW);
^
gcn.cpp:627:25: error: 'HIGH' was not declared in this scope
setRGBLED(ledb, HIGH);
^
gcn.cpp:627:29: error: 'setRGBLED' was not declared in this scope
setRGBLED(ledb, HIGH);
^
gcn.cpp:628:25: error: 'LOW' was not declared in this scope
setRGBLED(ledr, LOW);
^
gcn.cpp:630:7: error: 'addror' was not declared in this scope
addror = 0;
^
gcn.cpp:632:19: error: 'recipient' was not declared in this scope
addror |= recipient[i];
^
gcn.cpp:633:38: error: 'cn2_sendbyte' was not declared in this scope
j = cn2_sendbyte(recipient[i]);
^
gcn.cpp:644:26: error: 'sender' was not declared in this scope
j = cn2_sendbyte(sender[i]);
^
gcn.cpp:644:35: error: 'cn2_sendbyte' was not declared in this scope
j = cn2_sendbyte(sender[i]);
^
gcn.cpp:651:28: error: 'datasizeptr' was not declared in this scope
if (0 > cn2_sendbyte(datasizeptr[0])) return -1;
^
gcn.cpp:651:42: error: 'cn2_sendbyte' was not declared in this scope
if (0 > cn2_sendbyte(datasizeptr[0])) return -1;
^
gcn.cpp:652:28: error: 'datasizeptr' was not declared in this scope
if (0 > cn2_sendbyte(datasizeptr[1])) return -1;
^
gcn.cpp:652:42: error: 'cn2_sendbyte' was not declared in this scope
if (0 > cn2_sendbyte(datasizeptr[1])) return -1;
^
gcn.cpp:653:7: error: 'datasize' was not declared in this scope
datasize = (datasizeptr[1] & 0x007f) * 256 + datasizeptr[0];
^
gcn.cpp:653:19: error: 'datasizeptr' was not declared in this scope
datasize = (datasizeptr[1] & 0x007f) * 256 + datasizeptr[0];
^
gcn.cpp:654:7: error: 'checksum' was not declared in this scope
checksum = 0;
^
gcn.cpp:656:21: error: 'data' was not declared in this scope
checksum += data[i];
^
gcn.cpp:657:33: error: 'cn2_sendbyte' was not declared in this scope
j = cn2_sendbyte(data[i]);
^
gcn.cpp:674:32: error: 'cn2_recbyte' was not declared in this scope
if (0 > (j = cn2_recbyte())) return j;
^
gcn.cpp:675:7: error: 'checksum2' was not declared in this scope
checksum2 = (uint16_t)j;
^
gcn.cpp:676:32: error: 'cn2_recbyte' was not declared in this scope
if (0 > (j = cn2_recbyte())) return -1;
^
gcn.cpp:679:32: error: 'cn2_sendbyte' was not declared in this scope
if (0 > cn2_sendbyte(0xaa)) return -1;
^
gcn.cpp: In function 'void cn2_receive()':
gcn.cpp:686:5: error: 'uint32_t' was not declared in this scope
uint32_t i;
^
gcn.cpp:687:5: error: 'uint16_t' was not declared in this scope
uint16_t k, datasize;
^
gcn.cpp:688:5: error: 'int16_t' was not declared in this scope
int16_t j;
^
gcn.cpp:690:14: error: expected ';' before 'checksum'
uint16_t checksum,checksum2, checksum3;
^
gcn.cpp:691:5: error: 'uint8_t' was not declared in this scope
uint8_t addror;
^
gcn.cpp:693:11: error: 'uint8_t' does not name a type
const uint8_t* selfaddr_offset; // Check if msg is to us
^
gcn.cpp:705:5: error: 'calcsearchptr_recv' was not declared in this scope
calcsearchptr_recv = calcsearchptr_send = calcstore;
^
gcn.cpp:705:26: error: 'calcsearchptr_send' was not declared in this scope
calcsearchptr_recv = calcsearchptr_send = calcstore;
^
gcn.cpp:705:47: error: 'calcstore' was not declared in this scope
calcsearchptr_recv = calcsearchptr_send = calcstore;
^
gcn.cpp:706:5: error: 'calcspassed_recv' was not declared in this scope
calcspassed_recv = 0;
^
gcn.cpp:707:5: error: 'calcspassed_send' was not declared in this scope
calcspassed_send = 0;
^
gcn.cpp:708:5: error: 'calcsearchstate' was not declared in this scope
calcsearchstate = 0;
^
gcn.cpp:715:25: error: 'micros' was not declared in this scope
now = then = micros();
^
gcn.cpp:716:32: error: 'digitalRead' was not declared in this scope
while (digitalRead(CN2clock) != 1 &&
^
gcn.cpp:725:5: error: 'addror' was not declared in this scope
addror = 0;
^
gcn.cpp:729:5: error: 'selfaddr_offset' was not declared in this scope
selfaddr_offset = self_addr;
^
gcn.cpp:729:23: error: 'self_addr' was not declared in this scope
selfaddr_offset = self_addr;
^
gcn.cpp:732:9: error: 'i' was not declared in this scope
for(i=0; i<5; i++) {
^
gcn.cpp:733:9: error: 'j' was not declared in this scope
j = cn2_recbyte();
^
gcn.cpp:733:25: error: 'cn2_recbyte' was not declared in this scope
j = cn2_recbyte();
^
gcn.cpp:736:9: error: 'recipient' was not declared in this scope
recipient[i] = (j & 0x00ff);
^
gcn.cpp:744:9: error: 'j' was not declared in this scope
if (j < 0) {
^
gcn.cpp:753:9: error: 'Serial' was not declared in this scope
Serial.write("f\n");
^
gcn.cpp:757:9: error: 'i' was not declared in this scope
for(i=0; i<5; i++) {
^
gcn.cpp:758:9: error: 'j' was not declared in this scope
j = cn2_recbyte();
^
gcn.cpp:758:25: error: 'cn2_recbyte' was not declared in this scope
j = cn2_recbyte();
^
gcn.cpp:761:9: error: 'sender' was not declared in this scope
sender[i] = (j & 0x00ff);
^
gcn.cpp:764:9: error: 'j' was not declared in this scope
if (j < 0) {
^
gcn.cpp:773:9: error: 'Serial' was not declared in this scope
Serial.write("f\n");
^
gcn.cpp:778:5: error: 'datasize' was not declared in this scope
datasize = datasizeptr[0] = cn2_recbyte();
^
gcn.cpp:778:16: error: 'datasizeptr' was not declared in this scope
datasize = datasizeptr[0] = cn2_recbyte();
^
gcn.cpp:778:45: error: 'cn2_recbyte' was not declared in this scope
datasize = datasizeptr[0] = cn2_recbyte();
^
gcn.cpp:790:9: error: 'Serial' was not declared in this scope
Serial.write("f\n");
^
gcn.cpp:794:21: error: 'HIGH' was not declared in this scope
setRGBLED(ledb, HIGH);
^
gcn.cpp:794:25: error: 'setRGBLED' was not declared in this scope
setRGBLED(ledb, HIGH);
^
gcn.cpp:795:5: error: 'checksum' was not declared in this scope
checksum = 0;
^
gcn.cpp:796:9: error: 'i' was not declared in this scope
for(i=0; i<datasize; i++) {
^
gcn.cpp:797:9: error: 'j' was not declared in this scope
j = cn2_recbyte();
^
gcn.cpp:799:9: error: 'data' was not declared in this scope
data[i] = j;
^
gcn.cpp:801:35: error: 'cn2_search_FSM' was not declared in this scope
if (99 == cn2_search_FSM(1)) return;
^
gcn.cpp:803:21: error: 'LOW' was not declared in this scope
setRGBLED(ledr, LOW);
^
gcn.cpp:804:9: error: 'j' was not declared in this scope
if (j < 0) {
^
gcn.cpp:813:9: error: 'Serial' was not declared in this scope
Serial.write("f\n");
^
gcn.cpp:817:5: error: 'k' was not declared in this scope
k = 2;
^
gcn.cpp:828:32: error: 'cn2_search_FSM' was not declared in this scope
k = cn2_search_FSM(1000);
^
gcn.cpp:839:49: error: 'cn2_sendbyte' was not declared in this scope
if (0 > cn2_sendbyte(checksum & 0x00ff)) {
^
gcn.cpp:845:56: error: 'cn2_sendbyte' was not declared in this scope
if (0 > cn2_sendbyte((checksum >> 8) & 0x00ff)) {
^
gcn.cpp:851:20: error: 'j' was not declared in this scope
if (0 > (j = cn2_recbyte())) {
^
gcn.cpp:858:15: error: 'j' was not declared in this scope
if (j != 0xAA) {
^
gcn.cpp:902:5: error: 'msg_buf' was not declared in this scope
msg_buf[0] = framelen & 0x00ff;
^
gcn.cpp:907:9: error: 'i' was not declared in this scope
for(i = 0; i < 5; i++) {
^
gcn.cpp:908:26: error: 'recipient' was not declared in this scope
msg_buf[5 + i] = recipient[i];
^
gcn.cpp:910:9: error: 'i' was not declared in this scope
for(i = 0; i < 5; i++) {
^
gcn.cpp:911:27: error: 'sender' was not declared in this scope
msg_buf[10 + i] = sender[i];
^
gcn.cpp:915:9: error: 'i' was not declared in this scope
for(i = 0; i < datasize; i++) {
^
gcn.cpp:916:27: error: 'data' was not declared in this scope
msg_buf[17 + i] = data[i];
^
gcn.cpp:936:9: error: 'Serial' was not declared in this scope
Serial.println("Self-message received");
^
gcn.cpp:937:29: error: 'sparkProcessCommand' was not declared in this scope
sparkProcessCommand();
^
gcn.cpp:939:9: error: 'client' was not declared in this scope
client.write(msg_buf, 18 + datasize);
^
gcn.cpp:696:30: warning: unused variable 'timerlong2' [-Wunused-variable]
unsigned long timerlong, timerlong2;
^
gcn.cpp: At global scope:
gcn.cpp:960:8: error: 'uint16_t' does not name a type
static uint16_t cn2_search_FSM(uint16_t ticks) {
^
gcn.cpp:1071:8: error: 'uint16_t' does not name a type
static uint16_t cn2_sendbyte(uint8_t outbyte) {
^
gcn.cpp:1188:8: error: 'uint16_t' does not name a type
static uint16_t cn2_recbyte() {
^
gcn.cpp: In function 'void connectMetahub()':
gcn.cpp:1230:9: error: 'client' was not declared in this scope
if (client.connected())
^
gcn.cpp:1233:10: error: 'WiFi' was not declared in this scope
if (!WiFi.ready()) {
^
gcn.cpp:1234:9: error: 'Serial' was not declared in this scope
Serial.println("Connecting to WiFi");
^
gcn.cpp:1246:10: error: 'client' was not declared in this scope
if (!client.connect(server_host, server_port)) {
^
gcn.cpp:1246:38: error: 'server_port' was not declared in this scope
if (!client.connect(server_host, server_port)) {
^
gcn.cpp:1247:9: error: 'Serial' was not declared in this scope
Serial.write("Failed to connect.\n");
^
gcn.cpp:1253:36: error: 'strlen' was not declared in this scope
int local_len = strlen(localhub);
^
gcn.cpp:1256:5: error: 'msg_buf' was not declared in this scope
msg_buf[0] = msg_len;
^
gcn.cpp:1260:46: error: 'memcpy' was not declared in this scope
memcpy(msg_buf + 4, remotehub, remote_len);
^
gcn.cpp:1266:20: error: 'client' was not declared in this scope
if (msg_len != client.write(msg_buf, msg_len)) {
^
gcn.cpp:1270:5: error: 'Serial' was not declared in this scope
Serial.write("Connected as ");
^
gcn.cpp: At global scope:
gcn.cpp:1277:16: error: variable or field 'setRGBLED' declared void
void setRGBLED(uint8_t mask, uint8_t state) {
^
gcn.cpp:1277:16: error: 'uint8_t' was not declared in this scope
gcn.cpp:1277:30: error: 'uint8_t' was not declared in this scope
void setRGBLED(uint8_t mask, uint8_t state) {
^
../build/module.mk:277: recipe for target '../build/target/user/platform-0-ltogcn.o' failed
make[1]: Leaving directory '/firmware/user'
make[1]: *** [../build/target/user/platform-0-ltogcn.o] Error 1
../build/recurse.mk:11: recipe for target 'user' failed
make: *** [user] Error 2
But when I add those two to the beginning, everything works perfectly.
Code:
#include "application.h"
#include <stdint.h>
I am noob, Idk why, but it works, so it is [sloved]
Now, are some problems I am facing. (I am using Argon(Gen3), not Photon(Gen2), but I do not think that would be a problem.)
Exactly the same to the problem with [url=https://www.cemetech.net/forum/viewtopic.php?t=10715&postdays=0&postorder=asc&start=40]NoahK[url/].
I flash the gCn, tip to the 6th pin, ring to the 5th pin, and sleeve to the ground.
Connect to my old ti-84 plus sliver, open Door CS 7.2.
When I click BRGCFG, whole calculator freeze, the trial monitor gives(I turn on the debug in the code)
(here I use NoahK's)
Code:
Detected new calculator
Receiving frame from Cn2
Have valid frame for gCn, length 27
Have frame to send to gcn, type b length 27
18 0 62 FF 89 0 0 0 0 0 A 37 9C 2A 7 9 0 AB 4E 6F 61 68 4B 2D 43 61 2A ;;;
Receiving frame from Cn2
Have valid frame for gCn, length 27
Have frame to send to gcn, type b length 27
18 0 62 FF 89 0 0 0 0 0 A 37 9C 2A 7 9 0 AB 4E 6F 61 68 4B 2D 43 61 2A ;;;
Receiving frame from Cn2
Have valid frame for gCn, length 27
Have frame to send to gcn, type b length 27
18 0 62 FF 89 0 0 0 0 0 A 37 9C 2A 7 9 0 AB 4E 6F 61 68 4B 2D 43 61 2A ;;;
Receiving frame from Cn2
Have valid frame for gCn, length 27
Have frame to send to gcn, type b length 27
18 0 62 FF 89 0 0 0 0 0 A 37 9C 2A 7 9 0 AB 4E 6F 61 68 4B 2D 43 61 2A ;;;
Receiving frame from Cn2
Have valid frame for gCn, length 27
Have frame to send to gcn, type b length 27
18 0 62 FF 89 0 0 0 0 0 A 37 9C 2A 7 9 0 AB 4E 6F 61 68 4B 2D 43 61 2A ;;;
Receiving frame from Cn2
Have valid frame for gCn, length 27
Have frame to send to gcn, type b length 27
18 0 62 FF 89 0 0 0 0 0 A 37 9C 2A 7 9 0 AB 4E 6F 61 68 4B 2D 43 61 2A ;;;
and open chat, there is no "*IRC Hub joined", I am the only one there
but the SAX do gives"*gCn virtual hub 'IRCHub' has new calculator 0A237CCEEC from Spark0000"
I am confused
And all what I need is just let calculators could send texts to each others through a local WIFI...
What am I using:
Ti-84 plus sliver OS2.55
Argon Firmware 1.21
Door CS 7.2
Chat v1.0
BridgeCFG