-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wifi module issue. #45
Comments
J'ai aussi noté de nombreux problème avec le module wifi, j'ignore pour le moment si le souci vient de ma bibliothèque ou du module wifi. |
Pour ma part, je pense réécrire le firmware wifi en micropython, (je suis pas très à l'aise en Arduino) |
Looking to the firmware code, I saw that it use SoftwareSerial, maybe it's a timing issue when the module spend time to talk over wifi some serial data are lost or corrupt |
Request to bulb to get it's name: And socat for transfer: Feedback from Zigate is nearly always different ! |
maybe flush() should be remove from code maybe related to esp8266/Arduino#1426 |
Yep, I saw flush() and used in the past yield. I managed to compile the soft now trying to flash it, but I'm not managing. Don't know why ;-( |
I just managed to do it through the air. Investigations to continue... |
Could you share your code here ? |
https://github.com/fairecasoimeme/ZiGate/tree/master/Module%20WiFi/Firmware |
oh ok, I supposed that you made change |
Even with yield() everywhere I still have the issue. |
Conclusion tonight: don't use softserial but HW serial. |
Esp has Hardware uart but I suppose it is used by the USB plug to flash the firmware |
Yes. So why not to use it in prod. |
Exact. If you don't want to touch the HW, reduce the speed of the link (Should work). Need to recompile Zigate with reduced link speed but is not so easy, I tried yesterday and some lib are not happy with lower speed. HW, cut the track of GPIO 12/14 and connect Zigate connector to TX/RX. Or do like me: https://github.com/KiwiHC16/Abeille/blob/master/Documentation/950_Wifi_Module.adoc Jeedom/Abeille works like a charm with this solution. |
lol nice hack @fairecasoimeme in the next board revision maybe you can add a switch to redirect tx/rx to zigate or to USB |
Did you try to change the buffer size? Currently it's 128 ,maybe we could try 256 or 64 to see if something change ? |
Yes. |
It's probably a lib issue. Now the challenge is to find the right piece of SW... |
Or reduce zigate baudrate |
Akila has some ideas. Let see the results of his tests. |
Same issue here, ZiGate Wifi module is really unstable right now (bad checksums and no response errors, then stops responding to ping until power cycled). |
I would like to report something that I discovered during the weekend with a user of the Domoticz/Zigate plugin. Shall not the TCP stack to manage the communication ? |
Which TCP Stack ? |
Wifi .. |
TCP is between App/Plugin and WiFi module. It doesn't know about ZiGate. It doesn't how long the ZiGate will take to find the equipment (could be few second based on my experience). Up to the app to control the flow. SQN number send back by ZiGate is a start... |
Why is that to the App level to manage communication flow , this is exactly what is done from App <-> Plugin <-> Wifi Wifi <-> Zigate should control the flow. Even on Serial communication you have RTS / CTS |
In my short experience I have never seen it used. Never seen it used with Zigate neither. If you have opposite information, please share.
Because if you check all protocol stack from your APP to the Equipment, you will see that many ctrl are not in place. |
Bonsoir, Je confirme l'augmentation du nimbres de CRCs avec le nombres de Devices. Bref, il faut absolument une gestion de flux aussi bien entre Wifi/Zigate que USB-TTL/Zigate |
Perso je n'ai pas de problème CRC. Peux tu partager la configuration que tu utilises ? Wifi HW 1.3 ? SW 1.3 ? |
Salut, d'accord avec toi sur la bande passante du 2.4, le problème n'est pas là, il est sur la zigate elle meme. Zigate Wifi V1.3 Quand au chevauchement effectivement je ne suis pas sur les memes cannaux Wifi sur cannal 11 et Zigate sur cannal 11 (a priroi chois automatiquement par Zigate puisque le channel est à 0 ). EDITED: Quelques stats (produitent par le plugin Zigate de Domoticz)
|
Je ne connais pas comment le plug in de doubz fonctionne donc je ne peux t'aider sur ces stats. |
Hi all, I have also serious wifi connection issues. Only with 4 sensors and wifi is very unreliable. Running wifi v1.3 and 3.0e. My home router accepts wifi on 2.4 and 5 GHz so most equipments except ZiGate will connect on 5GHz. Nevertheless ZiGates network quality deteriorates often (several times a day) and even drops out of the wifi network. Simple ICMP test during a couple of minutes: Any hint on what to do to improve this? |
You might have a look to that: |
Thanks but Zigate is running on channel 11 and my wifi on channel 1 so if I understood the doc this should avoid the type of random quality drops |
Indeed, you should push your wifi to 13 Channel ; or move the Zigbee channel to 24.
What the paper is also recommended is to use the non-overallping channels and in Europe the best channels would be 15,16,21,22; so in your cas if you want to stay on Wifi 1 the best would 21 or 22 for Zigate
… On 20 Dec 2018, at 23:40, João Pedro Almeida ***@***.***> wrote:
You might have a look to that:
https://www.nxp.com/docs/en/application-note/JN-AN-1079.pdf <https://www.nxp.com/docs/en/application-note/JN-AN-1079.pdf>
Thanks but Zigate is running on channel 11 and my wifi on channel 1 so if I understood the doc this should avoid the type of random quality drops
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#45 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AH6FWkqpmTy7qvS2HTKMQqGg-OQy0-w4ks5u7BHYgaJpZM4Uu7j4>.
|
solved with Wifi firmware 2.0. Please open a new issue if you still have a problem |
KiwiHC16/Abeille#282
The text was updated successfully, but these errors were encountered: