Notifications
Clear all

[Closed] Introduce Yourself

1,224 Posts
496 Users
427 Likes
927.9 K Views
Ron
 Ron
(@zander)
Famed Member
Joined: 2 years ago
Posts: 4015
 

@markzagit Logging into an AP router is useless for your purpose. There is a HUGE difference between WiFi and Bluetooth. What you need to do is create a server for the gps data that arrives as WiFi. Do you have access to the Bluetooth version code?

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
Markzagit
(@markzagit)
Eminent Member
Joined: 1 year ago
Posts: 23
 

@ronalex4203 They Yt-ers code and AT commands are in the video.

But, to the best of my knowledge, this is what he used:

#include <SoftwareSerial.h>

SoftwareSerial EEBlue(10, 11); // RX | TX

 

void setup()

{

Serial.begin(9600);

EEBlue.begin(38400); //Baud Rate for command Mode.

Serial.println("Enter AT commands!");

}

 

void loop()

{

 

// Feed any data from bluetooth to Terminal.

if (EEBlue.available())

Serial.write(EEBlue.read());

 

// Feed all data from termial to bluetooth

if (Serial.available())

EEBlue.write(Serial.read());

}

Then CLI commands:

AT+RMAAD

AT+ROLE=1

AT+UART=57600,0,0

AT+RESET

AT+CMODE=0

AT+INQM=0,5,5

AT+PSWD=1234

AT+INIT

AT+INQ

 

AT+PAIR=4,3E,4C8880,10

AT+BIND=4,3E,4C8880

AT+LINK=4,3E,4C8880:

 


   
Ron
 Ron
(@zander)
Famed Member
Joined: 2 years ago
Posts: 4015
 

@markzagit Ok, let me comment on the code as I read thru it and notice things.

1. You are including WiFiClient, so NOT a server.

2.You reference an AP on the Crossfire again re-inforcing that this code is the client.

3.The comments in line 1 of setup ref LORA, a very popular type of fairly long range radio *check YT for lot's of exmples especially the SWISS guy)

4. After that it's mostly nonsense. You are displaying things that have not happened. One comment says this is a web server. Are you copying random examples, because that's what it looks like.

Without more background info, I can't help you. You have to have technical documentation we call an API spec for these components. Without adhering to the spec nothing will work.

If I had time (@will have you the time?) I would tear the code apart to make some sense of it but I am done at this point without the specs., Sorry.

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
Will
 Will
(@will)
Famed Member
Joined: 2 years ago
Posts: 2235
 
Posted by: @markzagit

 I thought my problem would be a beginner's rookie issue. I need to describe better what I need. I have attached my .ino file to show where I'm at.

Thanks, that helps.

Experience is what you get when you don't get what you want.


   
Ron
 Ron
(@zander)
Famed Member
Joined: 2 years ago
Posts: 4015
 

@markzagit WOW, I haven't seen AT commands in decades. That is totally different from the .ino file you posted. Sorry, I don't have time now, good luck.

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
Will
 Will
(@will)
Famed Member
Joined: 2 years ago
Posts: 2235
 
Posted by: @ronalex4203

@markzagit Ok, let me comment on the code as I read thru it and notice things.

[snipt]

If I had time (@will have you the time?) I would tear the code apart to make some sense of it but I am done at this point without the specs., Sorry.

I haven't used an ESP32, so I was hoping that it would just be a case of interpreting a data buffer that had already been read and displaying it on an independent OLED display.

From what you say, it appears that the connection itself may be questionable and it turns out that the Heltec has an embedded OLED display, so I can't even do the part I was hoping to address.

Since I'm not familiar with the ESP, Heltec nor the communications, me tearing the code apart would be ineffective.

Perhaps it would be worth switching over to BlueTooth and following the solution provided in the video ?

Experience is what you get when you don't get what you want.


   
Markzagit
(@markzagit)
Eminent Member
Joined: 1 year ago
Posts: 23
 

@will Thanks.

I'm aware that the ino file is mostly rubbish. I'm trying to piece together some kind of 'story' step by step. Yes, I cut and pasted various pieces of code and am culling as I go. It compiles, and loads and I can log onto the board.

But, yes, the rest of it is probably trash.

I can't use Bluetooth as my module only transmits in WiFi.

Back to the drawing board for me. 


   
Ron
 Ron
(@zander)
Famed Member
Joined: 2 years ago
Posts: 4015
 

@markzagit Can you do a run and put the serial monitor output on here?

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
Ron
 Ron
(@zander)
Famed Member
Joined: 2 years ago
Posts: 4015
 

 

Screen Shot 2021 11 23 at 14.23.41

@markzagit The Bluetooth code is just copying the data stream from the Bluetooth to serial out and from serial in (the AT cmds?) to Blue in.

I have no idea why you are creating a web server. Here is some of your code, notice the server.begin is COMMENTED out but later you print server started. Now do you understand why it's difficult to help?

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
kevinr
(@kevinr)
New Member
Joined: 1 year ago
Posts: 1
 

Hi all, here we are trying to comprehend the code. I am 74yr old not so quick on writing code but I get there. I am a trek teacher on electrical trades that keeps me quite busy. I like armature radio, robotics, stand allow projects.

kevin


   
PhilB2021
(@philb2021)
New Member
Joined: 1 year ago
Posts: 1
 

Hi,  I'm PhilB, a retired SAP ABAPer/ PS Functional/Tech with lots of upstream oil experience.  I'm playing with Arduino.  Long term plan is to build an outside mobile robot that let's me implement  a tensorflow picture processing applet.

Enjoy!


   
Ron
 Ron
(@zander)
Famed Member
Joined: 2 years ago
Posts: 4015
 

@kevinr WOW, you teach people to trek! Cool. How do you make a radio out of an armature? I took electronics in HS between 1958 and 1961 and don't recall that subject.

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
Will
 Will
(@will)
Famed Member
Joined: 2 years ago
Posts: 2235
 

@ronalex4203 

"Amateur" radio maybe ?

Experience is what you get when you don't get what you want.


   
Ron reacted
Ron
 Ron
(@zander)
Famed Member
Joined: 2 years ago
Posts: 4015
 

@will I know, just jerking his chain 😀 

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
Ron
 Ron
(@zander)
Famed Member
Joined: 2 years ago
Posts: 4015
 

@markzagit What is Heltec? Do you have Lora radio? If so, check out this guy's vids on Lora, many of us here have his channel as well as DroneBot.

https://www.youtube.com/c/AndreasSpiess

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
Page 81 / 82