EHS6 and UART | Telit Cinterion IoT Developer Community
August 15, 2018 - 10:53am, 10382 views
Hi!
I have a cinterion ehs6(revision 03.001) which I want to connect to arduino via a RS232 cable. Do I need an extra step to configure the port? I checked with AT^SPOW, the response is 1,0,0. However, I can’t send and receive any at command from arduino. Is it a must to have a MIDlet file in the module for RS232?
Hi,
Do you have correctly set bit rate in EHS6 and Arduino e.g: 115200 { AT+IPR=115200 } / { Serial.begin(115200); }? Did you use serial connection in Arduino only to connect to module? No, there is no need to have MIDlet for RS232. You can connect RX->TX TX->RX or RX->RX TX->TX with the same GND.
Do you have all pins whitch using ASC0 or ASC1 like: "GPIO/mode/DTR0" setup as GPIO?
Can you show your schematic and your AT^SCFG? configuration? First i reccomend to connect your module to PC by RS232 and use some terminal program to easly check and configure all module on ASC0 or ASC1 port.
Regards,
Krzysztof
Hi,
My schematic diagram is similar like this
https://www.google.com.sg/search?q=rs232+to+ttl+arduino&source=lnms&tbm=...
I only using one usb cable connect to the arduino board and setup with Serial.begin(115200); Serial1.begin(115200);.
I have set my scfg in following:
^SCFG: "Gpio/mode/ASC1","std"
^SCFG: "Gpio/mode/DAI","gpio"
^SCFG: "Gpio/mode/DCD0","std"
^SCFG: "Gpio/mode/DSR0","std"
^SCFG: "Gpio/mode/DTR0","std"
Thanks. Will try your suggestion
Hi,
^SCFG: "Gpio/mode/DCD0","std" means that line DCD0 uses ASC0.
So if you connect your Arduino board to ASC0 it won't work.
You use "Serial" as connect by USB to your compuet and "Serial1" as way to connection to EHS6?
Regards,
Krzysztof
Hi.
How to know whether asc0 or asc1 is used? and how to i configure it?
Yes. I use "Serial" as connect by USB to your compuet and "Serial1" as way to connection to EHS6.
Hi,
This is schematic for connection in RS232. Did you use EHS6 module or do you using concept board with EHS6 or something else like Connect shield to Arduino?
To check ASC0 or ASC1 you can look at Hardware Documentation and search for pads from your module.
You have to check in AT Command spec to see what GPIO pins is use by ASC0 or ASC1. To check wheter ASC0 or ASC1 you can simply block this port in SCFG or setting it by setup ASC1 as Java output.
All lines like: DCD0, DSR0, DTR0, RING0 should be set up as "gpio" not as "std". ASC1 looks okay so you probably can have communication on this interface.
Regards,
Krzysztof
Hi.
I am using EHS6 connect arduino boart via rs232cable with a rs232-ttl converter. Not the connect shield.
So i should set DCD0, DSR0, DTR0, RING0, DAI to "gpio" except ASC1 to"std" only? For the step Gpio/mode/ASC1 to std is the step for the ehs6 configuration? Is there any steps more to proceed?
For arduino part, do i need a library for this? What in my code is mostly serial.write and serial.read.. I'm not sure this will work or not and the configuration of the asc0/asc1. Besides, the character in response for the at command typed in arduino serial monitor is expected to be in ACSII format?
I tried to connect my module to PC by RS232 and use tera terminal to open the port. However, i can't type any character. I can opened the port but cannot type at command. Any idea?
Thanks.
Hi.
I went through the user guide and find out about at^sspi and info regarding gpio and i2c. Do I need to configure that for my case? I thought rs232 is only cable that I need for the communication between arduino and my module. I am expecting arduino can send at command to my module.
Thanks
Hi,
DCD0, DSR0, DTR0, RING0, DAI lines uses "ASC0" interface. All is written in "AT Command spec". Setting it up for "gpio" means that these Signal lines are used as GPIO. "std" means that this signal lines are assigned to this interface. So setting ASC1 as "std" means it is like normal interface. Setting DCD0 as "std" means it "blocks" ASC0 interface so you won't be able to use it as "communication way".
You can't write command like "whoami" to check on what interface do you speak. You don't need special Arduino library. If your Arduino board support many UARTS, like MEGA or Leonardo where you have "Serial / Serial1". If Your Arduino board has only one interace then i will suggest to install "SoftwareSerial" but you don't say your program not compile, so I assume that your Arduno has at least two UART interfaces.
First of all, please to try resolve your issue with your computer connection (PC by RS232). When you write than you can write "SCFG" command you write it by USB, right? On your board please check if ASC0/1 line are switched in good position (switches on right down side). Maybe you can try to use some USB to RS232 converter but no connecting it by USB cable to your board (USB plugged into ASC0 socket).
Please read this AT Command Spec, there is a lot of information. You can search in this forum for more intofmation about concept board in "Knowledge Base"
Regards,
Krzysztof
Hi.
What confuse me is the setting on uart. I went through the at command spec and found out some commands mentioning about gpio ports, addresses like sspi. Since I was using uart (9pins connector port) I don't think I need to configure the gpio port or i2c that keep on mentioned in the spec.
At the same time, with connection PC by rs232, I can typed "at" and receive response 65,84,10 only. It seem like my gemalto can't receive the command and reply. I have checked my rs232 cable, it functions well.
Thanks.
Hi,
65, 86, 10. If you write to module "a" it has echo and you will get response whitch is "65" which is "a" in ASCII Table. But after sending "at", module have to write "OK". But without any replay it looks like you have connected RX and TX in your cable (or somehow on your board).
You don't need to configure AT^SSPI cause it's for I2C or SPI connection.
When i write "at" i can see in terminal "at" and response "OK". Putty is a good and lightweight terminal.
Please look at this photo. In my side this connections works fine. I have set IPR as 115200 and connected i on the same speed on computer. Check multiple ***** your connection. Can you send a photo of your connection? It will a little bit help.
Please sen all AT^SCFG? response too. Maybe you can set "Serial/Interface/Allocation" at "1" to use ASC0 and ASC1.
Regards,
Krzysztof
Pages