whitecatboard / Lua-RTOS-ESP32

Lua RTOS for ESP32
Other
1.19k stars 222 forks source link

ublox NINA W #221

Closed tcpipchip closed 1 year ago

tcpipchip commented 5 years ago

Sir,

I see that LUA RTOS image is too big to fit a ESP32 with 2MB flash!

Can you give some suggestion on "make menuconfig" to reduce the size of LUA RTOS to feet on ESP32 (2MB version) ?

No problem if i loose some resource!

jolivepetrus commented 5 years ago

@tcpipchip,

Maybe you can start disabling graphic displays, and SSH server in Kconfig:

Component config > Lua RTOS > Lua > Lua RTOS Modules Component config > Lua RTOS > Network services > SSH server

tcpipchip commented 5 years ago

HI @jolivepetrus Thanks to feedback! Still not solve it the size! I wil try FS size space reduce!

tcpipchip commented 5 years ago

thank you so much!

jolivepetrus commented 5 years ago

@tcpipchip,

Any progress in this issue?

tcpipchip commented 5 years ago

Hello Petrus Yes, it´s running on NINA W. But WHITECAT not works! Always shutdown when try to connect to LUA RTOS. here the BLOG https://lua-ninaw.blogspot.com/2019/01/nina-w-programado-em-lua.html Thanks to remember me! And thanks for your help!

jolivepetrus commented 5 years ago

@tcpipchip,

When you say "but WHITECAT not works", you mean that you can't program the board with The Whitecat IDE?

tcpipchip commented 5 years ago

yes, The Whitecat agent closes when ide try to contact it.. How the whitecat search for a the LUA RTOS ? Today i am using the LUA RTOS with TERATERM....

tcpipchip commented 5 years ago

I use WINDOWS 7

jolivepetrus commented 5 years ago

@tcpipchip,

To add this board and see what happens I should need the following:

python -m serial.tools.list_ports -v

tcpipchip commented 5 years ago

Good morning Jaume

/dev/ttyUSB3 desc: EVB-NINA-W1 hwid: USB VID:PID=0403:6011 SER=D4CA6EB4CDC1 LOCATION=1-1:1.3

Attached sdkconfig

Btw, do mean about module NINA W, right ?


De: Jaume Olivé Petrus notifications@github.com Enviado: terça-feira, 12 de fevereiro de 2019 10:45 Para: whitecatboard/Lua-RTOS-ESP32 Cc: tcpipchip; Mention Assunto: Re: [whitecatboard/Lua-RTOS-ESP32] ublox NINA W (#221)

@tcpipchiphttps://github.com/tcpipchip,

To add this board and see what happens I should need the following:

python -m serial.tools.list_ports -v

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/whitecatboard/Lua-RTOS-ESP32/issues/221#issuecomment-462710585, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AK9MzN33GE6vGd5nY14OoVW__50QXS95ks5vMptSgaJpZM4aV1gz.

jolivepetrus commented 5 years ago

@tcpipchip,

Initial support for this boar has been added in https://github.com/whitecatboard/Lua-RTOS-ESP32/commit/70d4160f9ebc1de38ae716308204e28fc69d84f0.

It should work now with Whitecat IDE.

About the possibility to have one of this board, I mean a board like than the board you have. This help us to be more efficient and faster when resolving issues.

tcpipchip commented 5 years ago

Hi Jaume

Thank you so much! i will test soon!

Where are you in EUROPE ?

I will talk with distributor and see how can we send you a sample, ok ?

Miguel

PS: btw, are you thinking to add the basic BLE ?


De: Jaume Olivé Petrus notifications@github.com Enviado: quarta-feira, 13 de fevereiro de 2019 10:44 Para: whitecatboard/Lua-RTOS-ESP32 Cc: tcpipchip; Mention Assunto: Re: [whitecatboard/Lua-RTOS-ESP32] ublox NINA W (#221)

@tcpipchiphttps://github.com/tcpipchip,

Initial support for this boar has been added in 70d4160https://github.com/whitecatboard/Lua-RTOS-ESP32/commit/70d4160f9ebc1de38ae716308204e28fc69d84f0.

It should work now with Whitecat IDE.

About the possibility to have one of this board, I mean a board like than the board you have. This help us to be more efficient and faster when resolving issues.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/whitecatboard/Lua-RTOS-ESP32/issues/221#issuecomment-463150715, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AK9MzPLpcbJkhZ1Of8AWtbNF4Qx8r83zks5vM-yXgaJpZM4aV1gz.

jolivepetrus commented 5 years ago

@tcpipchip,

Yes, we are in Europe. Our contact address is:

whitecatboard.org PLAÇA CAN SURTIS S/N (EDIFICI CITILAB CORNELLÀ) 08940 - CORNELLÀ DE LLOBREGAT BARCELONA

About BLE it's not planned yet. No much funds now, so Whitecat is mainly financed with private funds.

Best regards.

jolivepetrus commented 5 years ago

@tcpipchip,

Sorry, a transcription error ....

whitecatboard.org PLAÇA CAN SURIS S/N (EDIFICI CITILAB CORNELLÀ) 08940 - CORNELLÀ DE LLOBREGAT BARCELONA

tcpipchip commented 5 years ago

Good morning!!!!

Still not works! Can find the NINA W102

Serial is working, because i can see the LUA BOOT.

Tested on minicom (linux)

I gave /dev/ttyUSBx permissions


De: Jaume Olivé Petrus notifications@github.com Enviado: quarta-feira, 13 de fevereiro de 2019 10:44 Para: whitecatboard/Lua-RTOS-ESP32 Cc: tcpipchip; Mention Assunto: Re: [whitecatboard/Lua-RTOS-ESP32] ublox NINA W (#221)

@tcpipchiphttps://github.com/tcpipchip,

Initial support for this boar has been added in 70d4160https://github.com/whitecatboard/Lua-RTOS-ESP32/commit/70d4160f9ebc1de38ae716308204e28fc69d84f0.

It should work now with Whitecat IDE.

About the possibility to have one of this board, I mean a board like than the board you have. This help us to be more efficient and faster when resolving issues.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/whitecatboard/Lua-RTOS-ESP32/issues/221#issuecomment-463150715, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AK9MzPLpcbJkhZ1Of8AWtbNF4Qx8r83zks5vM-yXgaJpZM4aV1gz.

tcpipchip commented 5 years ago

Must i compile the LUA RTOS again ?


De: Jaume Olivé Petrus notifications@github.com Enviado: quarta-feira, 13 de fevereiro de 2019 10:44 Para: whitecatboard/Lua-RTOS-ESP32 Cc: tcpipchip; Mention Assunto: Re: [whitecatboard/Lua-RTOS-ESP32] ublox NINA W (#221)

@tcpipchiphttps://github.com/tcpipchip,

Initial support for this boar has been added in 70d4160https://github.com/whitecatboard/Lua-RTOS-ESP32/commit/70d4160f9ebc1de38ae716308204e28fc69d84f0.

It should work now with Whitecat IDE.

About the possibility to have one of this board, I mean a board like than the board you have. This help us to be more efficient and faster when resolving issues.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/whitecatboard/Lua-RTOS-ESP32/issues/221#issuecomment-463150715, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AK9MzPLpcbJkhZ1Of8AWtbNF4Qx8r83zks5vM-yXgaJpZM4aV1gz.

tcpipchip commented 5 years ago

I published now on UBLOX forum about LUA RTOS

tcpipchip commented 5 years ago

can you modify again ? /dev/ttyUSB2
desc: EVB-NINA-W1 hwid: USB VID:PID=0403:6011 SER=D4CA6EB4CDC1 LOCATION=1-1:1.2

tcpipchip commented 5 years ago

Hi Petrus I guess that i found a bug After execute make, the script ask me the EVK-NINA-W ID, i choose 31...and all compile... When i burn and execute the LUA, not shows EVK-NINA-W on boot, but generic. And in the LINUX cant find BOARD, try SCANNING, but no boards.

tcpipchip commented 5 years ago

looks that is looking for PID GENERIC board but mine is EVK-NINA-W

jolivepetrus commented 5 years ago

@tcpipchip,

VID/PID for your board has been added to The Whitecat IDE. It should work now.

tcpipchip commented 5 years ago

Thank you! Btw i dont forget about your sample!

tcpipchip commented 5 years ago

Still not work! Testing on linux vm! Do you try to send some uart package to lua board to answer ? I will try in other machine

Enviado do meu iPhone

Em 28 de fev de 2019, às 15:56, Jaume Olivé Petrus notifications@github.com<mailto:notifications@github.com> escreveu:

@tcpipchiphttps://github.com/tcpipchip,

VID/PID for your board has been added to The Whitecat IDE. It should work now.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/whitecatboard/Lua-RTOS-ESP32/issues/221#issuecomment-468393433, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AK9MzEjg-Lj8vPp7PSIcYcQbGGjxkRehks5vSCZkgaJpZM4aV1gz.

tcpipchip commented 5 years ago

Hi, i tested in other machine, W7, same problem of other W7, agent execute, show scanning and disapear!

In LINUX VM only scanning and shows a strange string sequence and again the SCANNING message

Strange!

Did you try in W7 or only 10 ?

jolivepetrus commented 5 years ago

@tcpipchip,

I have an idea about what happens.

The following is a capture of my board's console output when doing a manual reset:

` ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x1b (SPI_FAST_FLASH_BOOT) configsip: 188777542, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0018,len:4 load:0x3fff001c,len:4016 ho 0 tail 12 room 4 load:0x40078000,len:9288 ho 0 tail 12 room 4 load:0x40080400,len:5928 entry 0x400806bc Booting Lua RTOS... `

Can you atached a capture console of your board when doing a manual reset. Whitecat Create Agent uses the bootloader output to take some decisions about the board. Maybe your board has a pull-down on GPIO15 that disables the bootloader output. If this is your case, we will write some changes in the Whitecat Create Agent.

tcpipchip commented 5 years ago

Hi!!!!

I will send you this info Tuesday

Btw, dont whitecat send some txd data first to serial ? Or first wait for a rxd data ?

jolivepetrus commented 5 years ago

@tcpipchip,

First data is sent to the board only if Lua RTOS is detected on it.

tcpipchip commented 5 years ago

Make sense!!!!

tcpipchip commented 5 years ago

ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:2 load:0x3fff0018,len:4 load:0x3fff001c,len:4148 load:0x40078000,len:9748 ho 0 tail 12 room 4 load:0x40080400,len:6060 entry 0x400806dc Booting Lua RTOS...

 /\ /\

/ _____/ \

/_____\

W H I T E C A T

Lua RTOS beta 0.1. Copyright (C) 2015 - 2018 whitecatboard.org

build 1550248939

commit 9c757a84beaa5e5cdd6a3605cb09de5d90bb59c1

Running from factory partition

board type GENERIC

cpu ESP32 rev 1 at 240 Mhz

spiffs start address at 0xf000, size 256 Kb

spiffs mounted on /

Lua RTOS beta 0.1 powered by Lua 5.3.4

/ >

tcpipchip commented 5 years ago

hi, no news there ?

jolivepetrus commented 5 years ago

@tcpipchip,

Well, I have found some issues related with sensor API is not enabled for this board. I have just updated the prerequisites in the IDE to solve it.

Another important thing is that you should see something like the following in your console:

build 1552906962
commit 7eb7045fc7bf91dc763ef5bcfe5f1ea2648f75cb
Running from factory partition
board type EVK-NINA-W
cpu ESP32 rev 1 at 240 Mhz, 2 Cores, flash memory, 2.4GHz WiFi, Bluetooth LE, Bluetooth Classic

board type EVK-NINA-W, if you can't see this message in your console you should rebuild Lua RTOS from the scratch.

I haven't this board, but flashing EVK-NINA-W firmware in one of our boards, we can see the board in the IDE:

image

tcpipchip commented 5 years ago

got this :)

/\ /\ / ___/ \ /___\ W H I T E C A T

Lua RTOS beta 0.1. Copyright (C) 2015 - 2018 whitecatboard.org

build 1552912499 commit 7eb7045fc7bf91dc763ef5bcfe5f1ea2648f75cb Running from factory partition board type EVK-NINA-W cpu ESP32 rev 1 at 240 Mhz, 2 Cores, 2.4GHz WiFi, Bluetooth LE, Bluetooth Classic spiffs start address at 0xf000, size 256 Kb spiffs mounted on /

Lua RTOS beta 0.1 powered by Lua 5.3.4

=============================

Whitecat still not finding the u-blox nina!

Must i update the Whitecat agent ?

tcpipchip commented 5 years ago

If not, something in the linux is blocking the rxd of my board!

minicom for example, can´t transmit, but can receive

jolivepetrus commented 5 years ago

sudo usermod -a -G dialout your_user?

tcpipchip commented 5 years ago

but no blocking to putty

tcpipchip commented 5 years ago

Show this https://furb-my.sharepoint.com/:i:/g/personal/maw_furb_br/ERT3EtBS7tpGlflg_qXLzzQBzwShF0Ejupo-jZ72UFtX6Q?e=8b8WRH

jolivepetrus commented 5 years ago

@tcpipchip,

Restart all, and try again. Do you have some tty session opened while the IDE is opened?

tcpipchip commented 5 years ago

I did!

Not open tty session at the same time!

Late i will test in a windows 10 and not VM linux

tcpipchip commented 5 years ago

which OS are you using ?

tcpipchip commented 5 years ago

Jaume I tested in other windows machine and i see something interesting... After reload the whitecat agent i see the CTS toggle, then i imediately press the reset and showed NINA W on whitecat IDE! I got this after repeat this process many times! Looks that is a syncronize problem!

tcpipchip commented 5 years ago

Tomorrow i will connect CTS to RESET to make new tests!

tcpipchip commented 5 years ago

Jaume can you do a special AGENT version that toggle the DSR before try to communicate with NINA W102 ? Looking the https://www.u-blox.com/sites/default/files/EVK-NINA-W1-EVK-NINA-B2_UserGuide_%28UBX-17011007%29.pdf page 16, DSR is resetting the MODULE! (up right side)

tcpipchip commented 5 years ago

If possible, ok ?

jolivepetrus commented 5 years ago

@tcpipchip,

It will be possible, I hope, but time it's a finite resource.

To clarify things, what is exactly the problem with DSR?

Now, the create agent toggle the RTS signal (OFF, ON, OFF) to reset the board:

    // Reset board
    options := serial.RawOptions
    options.BitRate = 115200
    options.Mode = serial.MODE_READ_WRITE

    options.RTS = serial.RTS_OFF
    board.port.Apply(&options)

    time.Sleep(time.Millisecond * 10)

    options.RTS = serial.RTS_ON
    board.port.Apply(&options)

    time.Sleep(time.Millisecond * 10)

    options.RTS = serial.RTS_OFF
    board.port.Apply(&options)

To propose a modification on the create agent to met your requirements it would be a help to get clear and exact requirements.

tcpipchip commented 5 years ago

Hi Jaume

I asked you about DSR because in the EVK-NINA-W kit they use the DSR to reset the board

[cid:4e0576d5-35fa-48be-9ba7-85c123e070b2]

You can see that! Update when you have time and i test!

Thanks!

Miguel Wisintainer


De: Jaume Olivé Petrus notifications@github.com Enviado: terça-feira, 26 de março de 2019 11:52 Para: whitecatboard/Lua-RTOS-ESP32 Cc: tcpipchip; Mention Assunto: Re: [whitecatboard/Lua-RTOS-ESP32] ublox NINA W (#221)

@tcpipchiphttps://github.com/tcpipchip,

It will be possible, I hope, but time it's a finite resource.

To clarify things, what is exactly the problem with DSR?

Now, the create agent toggle the RTS signal (OFF, ON, OFF) to reset the board:

    // Reset board
    options := serial.RawOptions
    options.BitRate = 115200
    options.Mode = serial.MODE_READ_WRITE

    options.RTS = serial.RTS_OFF
    board.port.Apply(&options)

    time.Sleep(time.Millisecond * 10)

    options.RTS = serial.RTS_ON
    board.port.Apply(&options)

    time.Sleep(time.Millisecond * 10)

    options.RTS = serial.RTS_OFF
    board.port.Apply(&options)

To propose a modification on the create agent to met your requirements it would be a help to get clear and exact requirements.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/whitecatboard/Lua-RTOS-ESP32/issues/221#issuecomment-476592416, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AK9MzMSfvLRza_N2fef2CFt_o0FBNicaks5vagn7gaJpZM4aV1gz.

tcpipchip commented 5 years ago

Petrus, Are you there ?

Miguel

[https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif]https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail Livre de vírus. www.avast.comhttps://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail.

tcpipchip commented 3 years ago

Hi, I am backing to make the EVK-NINA-W102 works with WHITECAT https://lua-ninaw.blogspot.com/2019/01/nina-w-programado-em-lua.html Making changes on BLOG

tcpipchip commented 3 years ago

@jolivepetrus

Can you modify the Whitecat agent to use the DSR to make the reset board and not RTS ? image Or instruct me .... Thanks!

tcpipchip commented 3 years ago

i got some progress! I soldered the board to make the RTS the gpios to RESET, but the WHITECAT IDE always now is stopping on UPLOADING FRAMEWORK message. I can see the negotiating of whtecat and board, txd and rxd are transmitting and receiving... image

the0ne commented 1 year ago

Feel free to reopen in case of questions.