I have wifi module at home. I would want use it like access point. I have some documents to this module, but i don't understand them very well. I tried to connect over minicom to module - successfully. I could assign AT commands - successfully. But I cannot to find any way how to send the following commands to module from Command Catalogue, for example (from document Wireless LAN SLIP User Guide):
UARTMODIFY(115200, 8, 0, 1, 0)
- Sets the UART to 115.2kbaud, 8 bit characters, no parity, 1 stop bit and no retention over power on.AUTHENTICATE (1)
- switches authentication on.ATTACH(“Ezurio_Network”)
– searches for and, if present, attaches to the Ezurio_Network.
Actually I am absolute beginner in this instance :/ Can anybody help me? Thank you very much and sorry for my English.
Here is the link to guide Wireless LAN SLIP User Guide.
EDIT: I send the command over: s.write('SEARCH()').
The error message is following:
Traceback (most recent call last):
File "myserial.py", line 3, in <module>
s = serial.Serial('/dev/ttyUSB0', baudrate=11520)
File "/usr/lib/python2.7/dist-packages/serial/serialutil.py", line 260, in __init__
self.open()
File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 280, in open
self._reconfigurePort()
File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 413, in _reconfigurePort
set_special_baudrate(self, custom_baud)
File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 47, in set_special_baudrate
FCNTL.ioctl(port.fd, TERMIOS.TIOCGSERIAL, buf)
IOError: [Errno 25] Inappropriate ioctl for device
I recommend you to use a serial interface. I already used Python serial interface and it is pretty simple if you can use python in your case.
Here is an example:
And after doing this you simple have access to it like file descriptors. You can do write or read.