how to found DLE(0x10) ETX(0x03) via re.search
how to found DLE(0x10) ETX(0x03) via re.search
In dataframe ,how to search the escape char" DLE ETX" via the re.search. How to write the regulator.Best Regard.TKS!
Re: how to found DLE(0x10) ETX(0x03) via re.search
You do not need re.search. You can use find. For example
If pos is different from -1, it tells the position of DLE in dataframe.
Code: Select all
DLE="\x10"
ETX="\x03"
pos = dataframe.find(DLE)
Re: how to found DLE(0x10) ETX(0x03) via re.search
Thank you Roberthh,I will be try.
Re: how to found DLE(0x10) ETX(0x03) via re.search
Hello @ Roberthh,
The fax modem connected the pyboard via uart, pyboard received fax data stream and at the end of the data to the DLE ETX sign .How to use UART.read (1) or UART.readinfo () function availabe, and judge the end of data, how to write this function, thank you!
The fax modem connected the pyboard via uart, pyboard received fax data stream and at the end of the data to the DLE ETX sign .How to use UART.read (1) or UART.readinfo () function availabe, and judge the end of data, how to write this function, thank you!