Thanks for your support. There are not that many people who 'get' the idea of ByPic. Jimby jimeer - ByPic
There have been problems with sendGetRequest so the firmware has been updated, ESP now on 17 and the wifi for ByPic has been updated. Start with wifi.start(*BV508(),1) for device BV508 and UART1, there are several device types at the top of the file. Try updating the ESP first, as that definitely had a problem with the sendGetRequest. The new IDE is also useful for debugging.by jimeer - ByPic
It is possible that given too many tasks too quickly a task will not have time to run, in tasksee() if the value in [] is not zero then it means that the task has missed running because other tasks were taking up too much time. I am not sure what version the BV509 is on I suspect probably about serial 71. There have been about 20 revisions since then and the task [] was one of them. The maiby jimeer - ByPic
The main problem is that the PIC processor is sufficiently different even in the same family that makes it difficult to support both the MX170 and the MX370 at this point in time. I do have a couple of new boards coming up that support wifi and SD Card and there is also a web based IDE. The MX170 is not that different from the MX370, is there something specific about this particular processorby jimeer - ByPic
yes, approximately watchdog timeout time is not exactly 16 secondsby jimeer - ByPic
yes it is: powersave(1) Everything stops except the watchdog timer so there are only 2 ways to get it going again reset or a watchdog timeout, it was used in the BV508 server here: // watch dog for power down control constant WDTCLR 0xBF800004 constant WDTSET 0xBF800008 // wdtcomset constant WDSW (1 << 15) constant WDCLR 1 // **********by jimeer - ByPic
You can use the KEY output which changes when a key is pressed or the INT output which changes when there is a key on the buffer. http://www.byvac.com/downloads/datasheets/BV4612%20DataSheet.pdfby jimeer - Projects
hi, I must confess I have never done it that way round. I have up to now used the main control (Python) to contact the ESP devices in a round robin fashion. I think it gives me more control and also I can modify the code on the BV508 if UART2 is used without having to physically visit it. There is also another advantage in that a Javascript application can be set up to contact each individualby jimeer - ByPic
Hi, the ESP8266_F1_1.9.10 does not work well for the PTH version, use F1_1.9.13 instead (just up loaded it). It has been a while since I looked at the client firmware as I have been concentrating on the server side with web sockets. The idea of the client was to enable two ESP's to talk to each other. Most other situations for me, require that the ESP be a server and so I have not put much efby jimeer - ByPic
hello, there is a bug in the software, so it will not work on version 2.30 .. 83. There is now a later version 2.30..88 where it does work so upgrade. For the BV508 use BP1_MX170.bin or BP1_MX170_FP_SD.bin in the ByPic_2_30_88.zip file which can be found here. Instructions on updating the device are also in the same website.by jimeer - ByPic
hello Olivier, yes everything works fine. The part works as it should, just now tested with the UNO (genuine) to make sure. Can I thank you for doing this via the forum as it give others a chance to see what it normally carried out over email, for me, time and time again. So far it has never been the part that was faulty. I can understand from a new users point of view that it is easy toby jimeer - Serial & I2C Devices
hello, got it back this morning and hooked it up to a BV4222 entered 'x' to see if it would give an address back and it did so sent some data: Data sent 66,67,68 ('f','g','h') Picture of screen I would consider this working but have I missed something? Is there any other tests you would like me to do before sending it back? Jimby jimeer - Serial & I2C Devices
hello, I think peripheral bus the mx370 is set to 40MHz so it could be the same, if not just divide or multiply by 2by jimeer - ByPic
hello, no sorry (not in ByPic you can always program in C then it is).by jimeer - ByPic
Thanks, there is no way I can remember what happened 3 years ago. I have already had to ditch some of early childhood to fit in the ESP8266 compiler. Jimby jimeer - Serial & I2C Devices
send it to: ByVac P.O. Box 4049 Penistone, Sheffield S36 6WP UK I will post the outcome here this time.by jimeer - Serial & I2C Devices
hello, yes, it's pity I did not post the outcome as I can't remember what the solution was - Try a factory reset first theinstructions are in the datasheet.by jimeer - Serial & I2C Devices
There is a new BV509 not yet released that could use the module. I assume the BV509 (BV508?) that you have uses the PTH type (plug in) which does not have an external antenna. If you want to use the SMD version of the ESP8266 there is the BV107_b which is a serial to wifi module. This can be supplied with the antenna type but is not advertised. It is the same cost but if an antenna is requiredby jimeer - ByPic
yes, there is a version with a socket for an antenna as in this device (http://www.byvac.com/index.php/BV510) I think the Baud rate may go up to 2,000,000 but have not checked for a while.by jimeer - ByPic
hello, the task scheduler is NOT an interrupt but can be interrupted if an interrupt is set. Nothing happens within the code to these tasks unless the user sets an interrupt. The task is run whilst waiting for the user input which is by default all of the time. The only exception to this is the interrupt that will occur without the user setting it is the RX input. Just a note; the tasker iby jimeer - ByPic
hello, First documentation: Hardware: http://www.bypic.byvac.com/index.php/BV508 ByPic: http://www.bypic.co.uk/ Counters etc. The chip is PIC32MX170F256B and so any on chip hardware that is on that chip is available. The rookie firmware gives easy access to the most popular hardware peripherals, GPIO, ADC, timers, I2C etc. but not all as this would make it too big. The documentation for rby jimeer - ByPic
yes, update the BV507 firmware using the .bl command the firmware is on http://www.bypic.co.uk/index.php/ByPic_Firmware. Open the zip file and use BP1_MX170_FP.bin in the boot folder. The firmware can ALWAYS be re-loaded no matter what has been saved to flash, so it is a fail safe get out. The script file to use is on this http://www.byvac.com/index.php/BV507 page, rather then using theby jimeer - ByPic
Hello, The full list of the command are in the Data Sheet and there is a command that returns the binary value of all 8 relays. Jimby jimeer - Serial & I2C Devices
hello, the bv4115 consists of a wifi device and a microcontroller so there are two sets of commands. The microcontroler commands begin with 'd', e.g. dV and the wifi commands begin with +++. The command you entered +++rr will send a reset to the microcontroller and that is what is happening. A description of the commands is at the top of the documentation in a link called 'Details' near [2*]by jimeer - Serial & I2C Devices
Jon, thanks for letting me know, glad to hear its up and running again. I will write this up on the web site as a way of getting out of trouble. I guess it must have been the Baud rate or something like that. Jimby jimeer - ByPic
Jon, thanks for the corrections. This is a bit of a puzzler. With wifiCheck() not working this means there is no communication between ByPic and the ESP8266. Just thinking out loud this could be: * wrong Baud rate / misconfiguration * faulty hardware * ESP8266 has lost its firmware If it was working before then the most likely cause is some kind of misconfiguration (but not ruling outby jimeer - ByPic
Jon, there are some errors in above for example you should always precede the wifi$() with print as it returns a string, so the "factory" command may be returning useful information. However if wf_start(1) is returning no communication with the wifi none of the other commands will not be relevant (falling on deaf ears). The most likely cause is that the wifi does not have enoughby jimeer - ByPic
It depends what you mean by reset. On the BV507 you have access to the wifi uart so you can directly address it through the BV507. It is most likely that you just want to reset the SSID or IP address etc. This is done by connecting the BV507 to a serial interface and making sure that D4 firmware is installed (here). If this is installed then type: print wifi$("info") Tby jimeer - ByPic