Ok,
I find the problem, in fact data into the command AT+WIPBR=2,6,... was incorrect.
Now I have a connection to the server but I have a problem when I send a file
AT+WIPFILE=4,1,2,"./test.txt"
CONNECT
And nothing else during long time and then
+CME ERROR 841.
I try to upload a file from the ...
Search found 9 matches
- Tue 13. Dec 2016, 16:45
- Forum: PCAN-GPRS Link
- Topic: Send file with GPRS
- Replies: 5
- Views: 10447
- Fri 9. Dec 2016, 11:18
- Forum: PCAN-GPRS Link
- Topic: Send file with GPRS
- Replies: 5
- Views: 10447
Re: Send file with GPRS
Thanks for reply.
I try to code my ftp client, and I always have a CME ERROR 812 error.
Then I try your serverComm.c example and I have the same error ??
WIND: 3
AT+WHWV
Hardware Version 2..00
AT+CFUN=1
OK
WIND : 3
CREG : 0
WIND : 1
CREG : 2
WIND : 4
WIND : 7
AT+WIPCFG=1
OK
AT+WIPBR=1,6
OK
AT ...
I try to code my ftp client, and I always have a CME ERROR 812 error.
Then I try your serverComm.c example and I have the same error ??
WIND: 3
AT+WHWV
Hardware Version 2..00
AT+CFUN=1
OK
WIND : 3
CREG : 0
WIND : 1
CREG : 2
WIND : 4
WIND : 7
AT+WIPCFG=1
OK
AT+WIPBR=1,6
OK
AT ...
- Tue 6. Dec 2016, 14:04
- Forum: PCAN-GPRS Link
- Topic: Send file with GPRS
- Replies: 5
- Views: 10447
Send file with GPRS
Hi,
I wrote a file on the SD card and I want to send it on a ftp server or something else via GPRS.
Your example (serverComm.c) send CAN values or data store in structure but not an entire file.
Is it possible ? if yes, How can I do that ?
Thanks
Best regards.
Stephane
I wrote a file on the SD card and I want to send it on a ftp server or something else via GPRS.
Your example (serverComm.c) send CAN values or data store in structure but not an entire file.
Is it possible ? if yes, How can I do that ?
Thanks
Best regards.
Stephane
- Tue 6. Dec 2016, 13:58
- Forum: PCAN-GPRS Link
- Topic: Buffer on UART3
- Replies: 3
- Views: 7063
Re: Buffer on UART3
Thanks,
I try to use the same code as I find in sms.c example.
ret = UART_read(&buff,1,UART3);
if(buff == '\n' && buffLen == 0) ret = UART_read(&buff,1,UART3);
while(ret)
{
buffer[buffLen] = buff;
buffLen++;
if(buffLen == 400)
buffLen = 0;
if(buff == '\r')
break;
ret = UART_read(&buff ...
I try to use the same code as I find in sms.c example.
ret = UART_read(&buff,1,UART3);
if(buff == '\n' && buffLen == 0) ret = UART_read(&buff,1,UART3);
while(ret)
{
buffer[buffLen] = buff;
buffLen++;
if(buffLen == 400)
buffLen = 0;
if(buff == '\r')
break;
ret = UART_read(&buff ...
- Fri 2. Dec 2016, 11:15
- Forum: PCAN-GPRS Link
- Topic: Buffer on UART3
- Replies: 3
- Views: 7063
Buffer on UART3
Hi,
I plug a RFID reader on the serial port (38400 baud). In my main loop I wrote a RFID_Task which read the UART3.
void RFID_task()
{
static u16_t ret=0;
u8_t temp[8];
ret = UART_read(temp,8,UART3);
if(ret > 0)
{
UART_write("OK\r\n",sizeof("OK\r\n"),UART3);
UART_write(temp,8,UART3 ...
I plug a RFID reader on the serial port (38400 baud). In my main loop I wrote a RFID_Task which read the UART3.
void RFID_task()
{
static u16_t ret=0;
u8_t temp[8];
ret = UART_read(temp,8,UART3);
if(ret > 0)
{
UART_write("OK\r\n",sizeof("OK\r\n"),UART3);
UART_write(temp,8,UART3 ...
- Thu 1. Dec 2016, 16:10
- Forum: PCAN-GPRS Link
- Topic: Write File and serial speed
- Replies: 6
- Views: 10966
Re: Write File and serial speed
It's work fine. There is a excel file in the product CD to calculate the needed values.
Thanks,
Thanks,
- Thu 1. Dec 2016, 12:42
- Forum: PCAN-GPRS Link
- Topic: Write File and serial speed
- Replies: 6
- Views: 10966
Re: Write File and serial speed
Thanks, but i don't really understand where to put this part of code and how to calulated UDLL, UDLM, MulVal and DivAddVal values.
is it possible to have a library with more baud rates (38400 baud for us).
Thanks
is it possible to have a library with more baud rates (38400 baud for us).
Thanks
- Tue 29. Nov 2016, 15:53
- Forum: PCAN-GPRS Link
- Topic: Write File and serial speed
- Replies: 6
- Views: 10966
Re: Write File and serial speed
Thanks for your reply.
For the serial port speed, do you have an example.
I don't know how to set the according UART registers (UXDLL, UXDLM, UXFDR for 72MHz Clock).
Thanks
For the serial port speed, do you have an example.
I don't know how to set the according UART registers (UXDLL, UXDLM, UXFDR for 72MHz Clock).
Thanks
- Tue 29. Nov 2016, 09:21
- Forum: PCAN-GPRS Link
- Topic: Write File and serial speed
- Replies: 6
- Views: 10966
Write File and serial speed
Hi, I try to write a text file on the SD Card, but I have a problem with f_open command.
xsprintf((char*)nameBuff,"trc%02u_%02u_%04u_%02uh%02um%02us.trx",
time.day,time.month,time.year+2000,time.hour,time.min,time.sec);
res = f_open(&logFile,(char*)nameBuff,(FA_CREATE_NEW | FA_WRITE));
Where ...
xsprintf((char*)nameBuff,"trc%02u_%02u_%04u_%02uh%02um%02us.trx",
time.day,time.month,time.year+2000,time.hour,time.min,time.sec);
res = f_open(&logFile,(char*)nameBuff,(FA_CREATE_NEW | FA_WRITE));
Where ...