GPS read via d1 mini

I am using ESP-8266EX D1 Miniwith BN-280B gps module, manufacturer says that baudrate is 9600.
But this is showed in serial monitor

are you using EspSoftwareSerial
not sure about using D1 and D2 - I have used the following OK

SoftwareSerial swSer(D5, D6);

avoid posting screen images - they consume a lot of storage and are impossible to copy
upload code and serial monitor output as text
e.g. select < CODE/ > and paste text where it says “type or paste code here”

when a ESP8266 resets is outputs information at 56700baud which will appear as garbage at other baudrates
your serial monitor output will appear after it

#include <SoftwareSerial.h>

SoftwareSerial gpsSerial(D5, D6);

void setup() {
  Serial.begin(115200);
  gpsSerial.begin(9600);
}

void loop() {
  // Read data from the GPS module
  while (gpsSerial.available() > 0) {
    char c = gpsSerial.read();
    Serial.write(c); // Send the character to the computer's serial port
  }

}

Example of serial monitor:

��x�x�x�������������������������������xx��xx��������������x�x�x�������������������������������xx��xx��������������x�x�x���������������x�������������

changed the pins but same input

if I connect a GY-NEO6MV2 NEO-6M GSM module to a ESP8266 NodeMCU 1.0 and run

#include <SoftwareSerial.h>

// ESP8266 SoftwareSerial
// https://circuits4you.com/2016/12/14/software-serial-esp8266/

#include <SoftwareSerial.h>

// pins Rx GPIO14 (D5) and Tx GPIO 12 (D6) 
 SoftwareSerial swSer(D5, D6);//14, 12);  

void setup() {
  Serial.begin(115200);   //Initialize hardware serial with baudrate of 115200
  swSer.begin(9600);    //Initialize software serial with baudrate of 115200
  Serial.println("\nESP8266 Software serial test started");
}

void loop() {
  while (swSer.available() > 0) {  //wait for data at software serial
    Serial.write(swSer.read()); //Send data recived from software serial to hardware serial    
  }
  while (Serial.available() > 0) { //wait for data at hardware serial
    swSer.write(Serial.read());     //send data recived from hardware serial to software serial
  }
}

the serial monitor displays

rll�r$�n�l�b|��a�rb�b�nnlnnbbp�$blrlp�n�l�bn�n��b��nn'l�l`�nnl`nr���nbl�`p�n0r�bbn�nb��nn'l`�nnl`nr���nb�`r��nb�`���$l`��n�`�a�n�r��n|�l�l`bbrl�nB�nl`�rl�l��
ESP8266 Software serial test started

$GPGGA,115655.138,,,,,0,00,25.5,,,,,,*6D
$GPGLL,,,,,115655.138,V,M*70
$GPGSA,A,1,,,,,,,,,,,,,25.5,25.5,25.5*02
$GPGSV,2,1,05,05,,,32,13,,,25,15,,,25,20,,,21*7C
$GPGSV,2,2,05,30,,,29*74
$GPRMC,115655.138,V,,,,,,,101123,,,M*47
$GPVTG,,,,,,,,,M*33
$GPZDA,115655.138,10,11,2023,00,00*5D
$GPTXT,01,01,01,ANTENNA OPEN*25
$GPGGA,115656.138,,,,,0,00,25.5,,,,,,*6E
$GPGLL,,,,,115656.138,V,M*73
$GPGSA,A,1,,,,,,,,,,,,,25.5,25.5,25.5*02
$GPGSV,2,1,05,05,,,32,13,,,25,15,,,25,20,,,21*7C
$GPGSV,2,2,05,30,,,29*74
$GPRMC,115656.138,V,,,,,,,101123,,,M*44
$GPVTG,,,,,,,,,M*33
$GPZDA,115656.138,10,11,2023,00,00*5E
$GPTXT,01,01,01,ANTENNA OPEN*25

EDIT: just ran the above code on a ESP8266 D1 mini PRO and gave

rll��|�l�|�l�b|����r�b�b��nn�lnn���bp�lrlrlp�n��l��bn�|���b��nn�l��l`�nnl`nr���nbl�lp�n�r������bn�|�b��nn�l`�nnl`nr���nb��`r��nb��`���ll`��n�l����n�r��n|��l�l`b��|r�l�n��n�l`��r�l�l��
ESP8266 Software serial test started
$GPTXT,01,01,02,MA=CASIC*27
$GPTXT,01,01,02,HW=ATGM332D,0012345612345*1C
$GPTXT,01,01,02,IC=AT6558-5N-11-0C500000,J7H5601-D4-020950*24
$GPTXT,01,01,02,SW=URANUS4,V4.3.0.5*18
$GPTXT,01,01,02,TB=2017-01-10,17:43:02*4D
$GPTXT,01,01,02,MO=G*35
$GPTXT,01,01,02,BS=SOC_BootLoader,V6.2.0.2*34
$GPGGA,,,,,,0,00,25.5,,,,,,*7A

why are you using pins 14 and 12?

this is pinout of esp?

EDIT:

just this is printing on serial with your code u provided,

b'8266 Software serial test started'
b'8266 Software serial test started'
b'8266 Software serial test started'
b'8266 Software serial test started'
b'8266 Software serial test started'
b'8266 Software serial test started'
b'8266 Software serial test started'
b'8266 Software serial test started'
b'8266 Software serial test started'
b'8266 Software serial test started'
b'8266 Software serial test started'
b'8266 Software serial test started'
b'8266 Software serial test started'
b'8266 Software serial test started'

the EspSoftwareSerial documentation states
In general, most pins on the ESP8266 and ESP32 devices can be used by EspSoftwareSerial, however each device has a number of pins that have special functions or require careful handling to prevent undesirable situations,

also one avoids TXD0 and RXD0 as they are used for uploading code and the serial monitor
e.g. nodemcu-details-specifications states
UART Pins NodeMCU/ESP8266 has 2 UART interfaces (UART0 and UART1) which provide asynchronous communication (RS232 and RS485), and can communicate at up to 4.5 Mbps. UART0 (TXD0, RXD0, RST0 & CTS0 pins) can be used for communication. However, UART1 (TXD1 pin) features only data transmit signal so, it is usually used for printing log.

check the GPS Tx is connected to D5 (GPIO14) and 3.3V and GNDs are connected
GPS Rx probably not required
are you sure 9600 is the GPS baudrate - may be worth trying 19200 etc

For power Iam using external powersupply, cuz esp cant provide enough current for gps module.
It can be problem that gnd from gps module is not connected with esp, i guess.

good reason for getting no data!
my D1 mini pro powers the GPS OK - are you powering other modules

ok, I eliminated all problems but I am still getting this output:
17:11:45.571 -> ���������������������������������������s��q_qYS��������������������������������������������������������������q_qYS��������������������������������������������������������q_qYS��������������������������������������������������������q_qYS�������������������������������������������

Using just power from USB connection, D5 is my rx and connected with tx on gps module. I tried different baudrates but still got same output.

To be sure I am using this ESP with usb C

D1 Mini Nodemcu ESP8266 ESP-12 ESP-12F CH340 V2 Usb Wemos Wifi Development Board D1 Mini Nodemcu Lua Iot Board 3.3V Met Pins - AliExpress

In arduino IDE using board LOLIN(WEMOS) D1 R2 & mini

there are many different boards labled D1 mini (try a web search for d1 mini pinout)
not sure that all use the same mapping between GPIOs and D? pins
try different Tools>Board selections, e.g. D1 mini lite, D1 mini clone, etc
you could ask AkiExpress what the pin mapping is?
I have this D1 mini pro - part way down the page is a table showing the pin mapping

have you got an oscilloscope? if so look at the signal from the GPS device? you can calculate the approximate baudrate from the width of a single bit

I think problem will be in decoding data from gps, now I am receiving this:
13:25:41.845 -> ���������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS�����������������������������������������������������y��q_qYS��������������������������������������qgqYS��������������������������������������������������������qgqYS��������������������������������������������������������qgqYS��������������������������������������������������������qgqYS��������������������������������������������������������qgqYS��������������������������������������������������������qgqYS��������������������������������������������������������qgqYS�������������������������������������

You can see data is repeating, so i guess it is sending current gps position, but it cant be decode or something i guess. Idk if the problem is in gps module or in reading data via esp, today I will try clasic cp2102 serial reader. Hope I will get some answers.

it is a regular pattern so not noise
could be wrong baudrate - try 4800. 9600, 19200, 38400, 56700, 115200
are you using EspSoftwareSerial

Yes iam using EspSoftwareSerial
I tried all baudrates but I did not get better results.

OK, I tried FT232R USB UART IC, but same results with different baudrates,
output (9600), it is possible the gps module went wrong?
20:25:12.206 -> [���Y^�ڪ���������ڬ��W޽[���U���������ڬ��]y�[��\_������v��v��lZ�������ڵٲ޽[��\V_Z��;;;;;;;;;;;;;k�6���Z�lZ��Z�lZ�lmV��qcqY}�}����������������������������������u��q_qYS������������qgqYS������������qcqgg������S�c��}��[���Y^�ڪ���������ڬ��W޽[���U�������������]y�[��\_������v��v��lZ�������ڵٲ޽[��\V_Z��;;;;;;;;;;;;;k�6���Z�lZ��Z�lZ�lmV��qcqY}�}����������������������������������u��q_qYS������������qgqYS������������qcqgg������S�c��}��[���Y^�ڪ���������ڬ��W޽[���U���������ڬ��]y�[��\_������v��v��lZ�������ڵٺ޽[��\V_Z��;;;;;;;;;;;;;k�6���Z�lZ��Z�lZ�lmV��qcqY}�}����������������������������������u��q_qYS������������qgqYS������������qcqgg������S�c��}��[���Y^�ڪ���������ڬ��W޽[���U���������ڬ��]y�[��\_������v��v��lZ�������ڵٲ޽[��\V_Z��;;;;;;;;;;;;;k�6���Z�lZ��Z�lZ�lmV��qcqY}�}����������������������������������u��q_qYS������������qgqYS������������qcqgg������S�c��}��[���Y^�ڪ���������ڬ��W޽[���U���������ڬ��]y�[��\_������v��v��lZ�������ڵٲ޽[��\V_Z��;;;;;;;;;;;;;k�6���Z�lZ��Z�lZ�lmV��qcqY}�}����������������������������������u��q_qYS������������qgqYS������������qcqgg������S�c��}��[���Y^�ڪ���������ڬ��W޽[���U���������ڬ��]y�[׬\_���

looking at BN-280 it states
Data Level : TTL or RS-232, Default TTL level

could the output be set serial RS232 rather than TTL?

The datasheet for the BN-280 specifies Vcc as 3.6 to 5.5V. 5.0V typical.

The ESP8266 operates on 3.3V.

How are you powering the GPS module? If you're trying to run it at 3.3V, operation is not guaranteed. If you're trying to run it at 5V, you're feeding a 5V level signal into a 3.3V processor, and the latter will not be happy.

Please show a schematic.

I tried both voltages. I did not see any change.

idk, can i change it somehow?

You're not understanding the problem.

Operating the GPS module at 3.3V will not work.

Operating the GPS module at 5V will not work with a 3.3V processor without a level shifter.