Not getting Sensor Readings in Pysense with FiPy Module
-
@livius
Yes Passive mode is on and we did not do any limited settings for client connection -
@archana-kadam said in Not getting Sensor Readings in Pysense with FiPy Module:
and we did not do any limited settings for client connection
I do not know if understand this correctly
but you must limit connections to only one a a time in ftp client configbelow is a sample for Filezilla
https://docs.pycom.io/chapter/toolsandfeatures/FTP.html#filezilla -
@livius
How to get current time stamp in fipy module after ejecting and reconnecting again. We tried with utime and rtc examples provided in the pycom documentation, but when we eject the module and reconnect the time is getting reset. how to get only current year,month date and timeThank You
-
@archana-kadam said in Not getting Sensor Readings in Pysense with FiPy Module:
ejecting
By ejecting do you mean remove power competly? Or only deepsleep?
If the first then how do you thing the time can be preserved?
Thing about your wath on the hand if you remove battery and you place it after month do you see current time?
If you are interested in starting time from point before reset - and loosing e.g. month is not problem for you - you can save current time to non-volatile memory. You can usepycom.nvs_setor save data to the SD card or not recommended write it to the flash.Only way to have time - is deepsleep with battery.
-
@livius Using deep sleep via a Pysense, Pytrack or deep sleep shield, you should be able to get the remaining time. If you save the time before going to sleep, and on boot, load that time, add the value of the deep sleep time and subtract the remaining sleep time, you should get an approximate real time.
Haven't tried it yet, and I believe on the Pysense/Pytrack the remaining sleep is slightly off, but it should be possible.
-
@livius
we have made a parts in main.py program. In each part of program we have declared the string and tried combine all the strings into one by giving a time limit of 30 seconds, after two readings we are an error called OSError: [Errno 22] EINVAL .Would you please give us the sloution for this error. I have attached a code also please go through the code0_1520554484439_tempHum.pyThanking You
-
@archana-kadam
you concat strings always and never clear it
string1 +=
you probably consume max buffer.. -
@jcaron
Can you please send us the code to read current time stamp with fipy board -
-
@livius
Thank you for this help now we are getting a proper output. -
We are trying to connect to the station and access media using the procedure given the documentation. We are unable to connect to the accurate station and access point to specified IP address and ssid.
Could you please help to this problemThank You
-
@archana-kadam
Do you mean Wifi?
How your trying looks like? Any sample code. And if this is Wifi - what are your security settings on your router -WPA2or something different? -
@livius
Yes, We are trying to connect WiFi and our router is setup at WPA2 configuration.We tried with sample code provided in the pycom documentation.
We want fipy board to be worked as both station and access pointThank You
-
@archana-kadam
Did you fallowed both samples?
https://docs.pycom.io/chapter/tutorials/all/wlan.html
https://docs.pycom.io/chapter/firmwareapi/pycom/network/wlan.htmlbetter show the code and then we can help more -of course without passwords ;-)
-
@livius
https://docs.pycom.io/chapter/firmwareapi/pycom/network/wlan.html
we tried with this sample examples. -
- what you get when you do
nets = wlan.scan() print(nets)- is there your net ssid? and is there info about WPA2?
- do you use static IP?
this line is for static ip settings - but you must change it to follow your router settings
wlan.ifconfig(config=('192.168.0.107', '255.255.255.0', '192.168.0.1', '192.168.0.1')) -
@livius
By using
nets = wlan.scan()
print(nets)
we are getting details of connected WiFI.
Yes we have our net ssid and is configured to WPA2. Yes we were using this wlan.ifconfig(config=('192.168.0.107', '255.255.255.0', '192.168.0.1', '192.168.0.1'))
to configuration. How we can know that our WIFI is connected or disconnected -
@archana-kadam
you havewlan.isconnected()for that look here:
https://docs.pycom.io/chapter/tutorials/all/wlan.html#connecting-to-a-routerand are you sure that your router have same ip settings?
192.168.0.1? -
from network import WLAN wlan = WLAN(mode=WLAN.STA) nets = wlan.scan() for net in nets: if net.ssid == 'mywifi': print('Network found!') wlan.connect(net.ssid, auth=(net.sec, 'mywifikey'), timeout=5000) while not wlan.isconnected(): machine.idle() # save power while waiting print('WLAN connection succeeded!') breakUsing above code we are getting the details of connected wifi. And we have different ip address.
Here is the screenshot of our output please go through the image and update.
Thank You -
@archana-kadam
than you are connected to wifi - what more do you need?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login