tellstick-net custom firmware build
Moderator: Telldus
Re: tellstick-net custom firmware build
Ok, fine. Very nice code. So I would like to know if it's possible to use usb socket on tellstick-net for communicate ?
I found many TCP/Stack from microchip, because I want to communicate with telnet or putty, what is for you the best way to do this link ?
Have you sample code to implement this connexion ?
Thanx
I found many TCP/Stack from microchip, because I want to communicate with telnet or putty, what is for you the best way to do this link ?
Have you sample code to implement this connexion ?
Thanx
![Image](http://www.quoi-offrir.fr/css/skin3/images/flag_fr.png)
![Smile :)](./images/smilies/icon_e_smile.gif)
-
- Site Admin
- Posts: 2243
- Joined: Fri Mar 17, 2023 9:45 am
- Location: Lund
- Contact:
Re: tellstick-net custom firmware build
No, this is power onlyritro wrote: So I would like to know if it's possible to use usb socket on tellstick-net for communicate ?
You have? I am only aware of one. Links please!ritro wrote:I found many TCP/Stack from microchip
Micke Prag
Software
Telldus Technologies
Software
Telldus Technologies
Re: tellstick-net custom firmware build
Salut à tous
Hi Guys.
I downloaded the HI TECH C PICC 18 Compiler for linux, LITE version. Here is the result:
So, no Lite version ?
Hi Guys.
I downloaded the HI TECH C PICC 18 Compiler for linux, LITE version. Here is the result:
Code: Select all
[ 1%] Compiling livemessage.c
HI-TECH PICC-18 PRO COMPILER (Microchip PIC micro) (Lite) V9.63
Copyright (C) 1984-2008 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
/var/www/test/tellstick-net/firmware/livemessage.c: 270: (171) wrong number of preprocessor macro arguments for "printf" (1 instead of 0) (warning)
/var/www/test/tellstick-net/firmware/livemessage.c: 274: (171) wrong number of preprocessor macro arguments for "printf" (1 instead of 0) (warning)
/var/www/test/tellstick-net/firmware/livemessage.c: 286: (171) wrong number of preprocessor macro arguments for "printf" (2 instead of 0) (warning)
[ 3%] Compiling localaccess.c
HI-TECH PICC-18 PRO COMPILER (Microchip PIC micro) (Lite) V9.63
Copyright (C) 1984-2008 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 4%] Compiling main.c
HI-TECH PICC-18 PRO COMPILER (Microchip PIC micro) (Lite) V9.63
Copyright (C) 1984-2008 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
/var/www/test/tellstick-net/firmware/main.c: 136: (171) wrong number of preprocessor macro arguments for "printf" (2 instead of 0) (warning)
[ 6%] Compiling message.c
HI-TECH PICC-18 PRO COMPILER (Microchip PIC micro) (Lite) V9.63
Copyright (C) 1984-2008 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 7%] Compiling pwm.c
HI-TECH PICC-18 PRO COMPILER (Microchip PIC micro) (Lite) V9.63
Copyright (C) 1984-2008 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 9%] Compiling rf.c
HI-TECH PICC-18 PRO COMPILER (Microchip PIC micro) (Lite) V9.63
Copyright (C) 1984-2008 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 10%] Compiling send.c
HI-TECH PICC-18 PRO COMPILER (Microchip PIC micro) (Lite) V9.63
Copyright (C) 1984-2008 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 12%] Compiling tellsticknet.c
HI-TECH PICC-18 PRO COMPILER (Microchip PIC micro) (Lite) V9.63
Copyright (C) 1984-2008 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
/var/www/test/tellstick-net/firmware/tellsticknet.c: 57: (171) wrong number of preprocessor macro arguments for "printf" (1 instead of 0) (warning)
/var/www/test/tellstick-net/firmware/tellsticknet.c: 47: (361) function declared implicit int (warning)
[ 13%] Compiling /var/www/test/tellstick-net/rf/arctech.c
HI-TECH PICC-18 PRO COMPILER (Microchip PIC micro) (Lite) V9.63
Copyright (C) 1984-2008 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 15%] Compiling /var/www/test/tellstick-net/rf/everflourish.c
HI-TECH PICC-18 PRO COMPILER (Microchip PIC micro) (Lite) V9.63
Copyright (C) 1984-2008 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 16%] Compiling /var/www/test/tellstick-net/rf/fineoffset.c
HI-TECH PICC-18 PRO COMPILER (Microchip PIC micro) (Lite) V9.63
Copyright (C) 1984-2008 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 18%] Compiling /var/www/test/tellstick-net/rf/mandolyn.c
HI-TECH PICC-18 PRO COMPILER (Microchip PIC micro) (Lite) V9.63
Copyright (C) 1984-2008 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 20%] Compiling /var/www/test/tellstick-net/rf/oregon.c
HI-TECH PICC-18 PRO COMPILER (Microchip PIC micro) (Lite) V9.63
Copyright (C) 1984-2008 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 21%] Compiling /var/www/test/tellstick-net/rf/receive.c
HI-TECH PICC-18 PRO COMPILER (Microchip PIC micro) (Lite) V9.63
Copyright (C) 1984-2008 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 23%] Compiling /var/www/test/tellstick-net/rf/transmit.c
HI-TECH PICC-18 PRO COMPILER (Microchip PIC micro) (Lite) V9.63
Copyright (C) 1984-2008 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
/var/www/test/tellstick-net/rf/transmit.c: 61: (359) illegal conversion between pointer types (warning)
[ 24%] Compiling /var/www/test/tellstick-net/rf/x10.c
HI-TECH PICC-18 PRO COMPILER (Microchip PIC micro) (Lite) V9.63
Copyright (C) 1984-2008 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 26%] Compiling /var/www/test/tellstick-net/tcpip/ARP.c
HI-TECH PICC-18 PRO COMPILER (Microchip PIC micro) (Lite) V9.63
Copyright (C) 1984-2008 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 27%] Compiling /var/www/test/tellstick-net/tcpip/Helpers.c
HI-TECH PICC-18 PRO COMPILER (Microchip PIC micro) (Lite) V9.63
Copyright (C) 1984-2008 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 29%] Compiling /var/www/test/tellstick-net/tcpip/ICMP.c
HI-TECH PICC-18 PRO COMPILER (Microchip PIC micro) (Lite) V9.63
Copyright (C) 1984-2008 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 30%] Compiling /var/www/test/tellstick-net/tcpip/IP.c
HI-TECH PICC-18 PRO COMPILER (Microchip PIC micro) (Lite) V9.63
Copyright (C) 1984-2008 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 32%] Compiling /var/www/test/tellstick-net/tcpip/StackTsk.c
HI-TECH PICC-18 PRO COMPILER (Microchip PIC micro) (Lite) V9.63
Copyright (C) 1984-2008 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 33%] Compiling /var/www/test/tellstick-net/tcpip/Tick.c
HI-TECH PICC-18 PRO COMPILER (Microchip PIC micro) (Lite) V9.63
Copyright (C) 1984-2008 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 35%] Compiling /var/www/test/tellstick-net/tcpip/Reboot.c
HI-TECH PICC-18 PRO COMPILER (Microchip PIC micro) (Lite) V9.63
Copyright (C) 1984-2008 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 36%] Compiling /var/www/test/tellstick-net/tcpip/DNS.c
HI-TECH PICC-18 PRO COMPILER (Microchip PIC micro) (Lite) V9.63
Copyright (C) 1984-2008 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 38%] Compiling /var/www/test/tellstick-net/tcpip/DHCP.c
HI-TECH PICC-18 PRO COMPILER (Microchip PIC micro) (Lite) V9.63
Copyright (C) 1984-2008 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 40%] Compiling /var/www/test/tellstick-net/tcpip/UDP.c
HI-TECH PICC-18 PRO COMPILER (Microchip PIC micro) (Lite) V9.63
Copyright (C) 1984-2008 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 41%] Compiling /var/www/test/tellstick-net/tcpip/ETH97J60.c
HI-TECH PICC-18 PRO COMPILER (Microchip PIC micro) (Lite) V9.63
Copyright (C) 1984-2008 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 43%] Compiling /var/www/test/tellstick-net/tcpip/TCP.c
HI-TECH PICC-18 PRO COMPILER (Microchip PIC micro) (Lite) V9.63
Copyright (C) 1984-2008 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
/var/www/test/tellstick-net/tcpip/TCP.c: 2088: (343) implicit return at end of non-void function (warning)
/var/www/test/tellstick-net/tcpip/TCP.c: 2264: (343) implicit return at end of non-void function (warning)
[ 44%] Compiling /var/www/test/tellstick-net/tcpip/Hashes.c
HI-TECH PICC-18 PRO COMPILER (Microchip PIC micro) (Lite) V9.63
Copyright (C) 1984-2008 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 46%] Linking TellStickNet.hex
HI-TECH PICC-18 PRO COMPILER (Microchip PIC micro) (Lite) V9.63
Copyright (C) 1984-2008 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
/var/www/test/tellstick-net/firmware/tellsticknet.c: 47: (1098) conflicting declarations for variable "___delay_ms" (/var/www/test/tellstick-net/firmware/common.c:13)
(908) exit status = 1
make[2]: *** [TellStickNet.hex] Erreur 1
make[1]: *** [CMakeFiles/TellStickNet.dir/all] Erreur 2
make: *** [all] Erreur 2
Re: tellstick-net custom firmware build
Salut, C'est la même version que j'utilise. As tu progressé depuis ?
I'll do a new build and send you Logs and folder's tree ASAP
I'll do a new build and send you Logs and folder's tree ASAP
Last edited by ritro on Tue Oct 02, 2012 12:04 pm, edited 1 time in total.
![Image](http://www.quoi-offrir.fr/css/skin3/images/flag_fr.png)
![Smile :)](./images/smilies/icon_e_smile.gif)
Re: tellstick-net custom firmware build
Here : http://www.microchip.com/stellent/idcpl ... e=en547784micke.prag wrote:You have? I am only aware of one. Links please!ritro wrote:I found many TCP/Stack from microchip
![Image](http://www.quoi-offrir.fr/css/skin3/images/flag_fr.png)
![Smile :)](./images/smilies/icon_e_smile.gif)
Re: tellstick-net custom firmware build
Code: Select all
root@telldus:/.git/tellstick-net# ./compile-firmware.sh
-- The C compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Configuring done
-- Generating done
-- Build files have been written to: /.git/tellstick-net/build
./compile-firmware.sh: line 7: cd: build: Aucun fichier ou dossier de ce type
Scanning dependencies of target TellStickNet
[ 0%] Compiling common.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 0%] Compiling discovery.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 0%] Compiling eeprom.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 0%] Compiling livemessage.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
/.git/tellstick-net/firmware/livemessage.c: 270: (171) wrong number of preproces sor macro arguments for "printf" (1 instead of 0) (warning)
/.git/tellstick-net/firmware/livemessage.c: 274: (171) wrong number of preproces sor macro arguments for "printf" (1 instead of 0) (warning)
/.git/tellstick-net/firmware/livemessage.c: 286: (171) wrong number of preproces sor macro arguments for "printf" (2 instead of 0) (warning)
[ 0%] Compiling localaccess.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 0%] Compiling main.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
/.git/tellstick-net/firmware/main.c: 138: (171) wrong number of preprocessor mac ro arguments for "printf" (2 instead of 0) (warning)
[ 0%] Compiling message.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 0%] Compiling pwm.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 0%] Compiling rf.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 0%] Compiling send.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 0%] Compiling tellsticknet.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
/.git/tellstick-net/firmware/tellsticknet.c: 57: (171) wrong number of preproces sor macro arguments for "printf" (1 instead of 0) (warning)
[ 0%] Compiling telnet.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 0%] Compiling /.git/tellstick-net/rf/arctech.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 0%] Compiling /.git/tellstick-net/rf/everflourish.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 0%] Compiling /.git/tellstick-net/rf/fineoffset.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 0%] Compiling /.git/tellstick-net/rf/mandolyn.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 0%] Compiling /.git/tellstick-net/rf/oregon.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 0%] Compiling /.git/tellstick-net/rf/receive.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 0%] Compiling /.git/tellstick-net/rf/transmit.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
/.git/tellstick-net/rf/transmit.c: 61: (359) illegal conversion between pointer types (warning)
[ 0%] Compiling /.git/tellstick-net/rf/x10.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 0%] Compiling /.git/tellstick-net/tcpip/ARP.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 0%] Compiling /.git/tellstick-net/tcpip/Helpers.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 0%] Compiling /.git/tellstick-net/tcpip/ICMP.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 0%] Compiling /.git/tellstick-net/tcpip/IP.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 0%] Compiling /.git/tellstick-net/tcpip/StackTsk.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 0%] Compiling /.git/tellstick-net/tcpip/Tick.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 0%] Compiling /.git/tellstick-net/tcpip/Reboot.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 0%] Compiling /.git/tellstick-net/tcpip/DNS.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 0%] Compiling /.git/tellstick-net/tcpip/DHCP.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 0%] Compiling /.git/tellstick-net/tcpip/UDP.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 0%] Compiling /.git/tellstick-net/tcpip/ETH97J60.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 0%] Compiling /.git/tellstick-net/tcpip/TCP.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
/.git/tellstick-net/tcpip/TCP.c: 2088: (343) implicit return at end of non-void function (warning)
/.git/tellstick-net/tcpip/TCP.c: 2264: (343) implicit return at end of non-void function (warning)
[ 0%] Compiling /.git/tellstick-net/tcpip/Hashes.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 0%] Linking TellStickNet.hex
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
/.git/tellstick-net/tcpip/ETH97J60.c: 338: (750) constant operand to || or && (w arning)
/.git/tellstick-net/tcpip/ETH97J60.c: 338: (764) mismatched comparison (warning)
plib/i2c/i2c1eeap.c: 24: (764) mismatched comparison (warning)
plib/i2c/i2c1eeap.c: 36: (764) mismatched comparison (warning)
/.git/tellstick-net/tcpip/TCP.c: 2009: (1257) local variable "_buffer" is used b ut never given a value (warning)
/.git/tellstick-net/tcpip/TCP.c: 2185: (1257) local variable "_buffer" is used b ut never given a value (warning)
Memory Summary:
Program space used DFECh ( 57324) of 1FFF8h bytes ( 43.7%)
Data space used 795h ( 1941) of E80h bytes ( 52.3%)
EEPROM space None available
ID Location space used 0h ( 0) of 8h nibbles ( 0.0%)
Configuration bits used 2h ( 2) of 4h words ( 50.0%)
Running this compiler in PRO mode, with Omniscient Code Generation enabled,
often produces code which is 60% smaller and at least 400% faster than in
Lite mode. The HI-TECH C PRO compiler output for this code could be
34021 bytes smaller and run 4 times faster.
See http://microchip.htsoft.com/portal/pic18_pro
for more information.
Downloading TellStickNet.hex to 192.168.1.34
timeout: retrying...
timeout: retrying...
timeout: retrying...
[100%] Built target TellStickNet
See above to access microchip ftp and pick the correct one.
![Image](http://www.quoi-offrir.fr/css/skin3/images/flag_fr.png)
![Smile :)](./images/smilies/icon_e_smile.gif)
Re: tellstick-net custom firmware build
Bien joué, merci
Re: tellstick-net custom firmware build
Je t'en prie, tu as réussi ? Je suis en train de me mettre a python pour modifier le client. J'aimerai bien scanner mes télécommandes pour les prendre en charge. Mais faut de l'énergie ![Smile :)](./images/smilies/icon_e_smile.gif)
![Smile :)](./images/smilies/icon_e_smile.gif)
![Image](http://www.quoi-offrir.fr/css/skin3/images/flag_fr.png)
![Smile :)](./images/smilies/icon_e_smile.gif)
Re: tellstick-net custom firmware build
Salut
je m'y mets aussi ce soir.
Edit: Déjà, faut installer atftp.....
Edit 3:
Bon ça y est, j'y suis. Je crois que j'ai réussi à le rebooter avec la console python et je suis déconnecté du live.
Bon. Cool.
Et maintenant, que vais je fai-re ueueueueueueh
hop: Found TellStickNet on ip 192.168.0.20 firmware version X
This has firmware X, lets use it
Send Arctech code switch A1 turn on to 192.168.0.20
Edit 4: T'arrives à quelque chose d'efficace à part faire clignoter la box ? J'ai voulu compiler les receive.c and co, mais on n'a pas de script "configure"....
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
je m'y mets aussi ce soir.
Edit: Déjà, faut installer atftp.....
Edit 3:
Bon ça y est, j'y suis. Je crois que j'ai réussi à le rebooter avec la console python et je suis déconnecté du live.
Bon. Cool.
![Cool 8)](./images/smilies/icon_cool.gif)
hop: Found TellStickNet on ip 192.168.0.20 firmware version X
This has firmware X, lets use it
Send Arctech code switch A1 turn on to 192.168.0.20
Edit 4: T'arrives à quelque chose d'efficace à part faire clignoter la box ? J'ai voulu compiler les receive.c and co, mais on n'a pas de script "configure"....
Re: tellstick-net custom firmware build
Salut,
Oui j'ai commencé à planter mon code en pourissant la tache localAccessTask durant les attentes de requête en envoyant un caractère, mais c'est que ça dépote, d'où un beau déni de service
(here i said that i have modified the firmware code to send caracter, but too quickly, so system fail )
localAccessTask écoute sur le port 42314 et interprête la commande "send"
dicoveryTask écoute sur le port 30303 et renvoi le firmware,l'adresse MAC,etc dès qu'on lui poste un "D".
Je pense qu'il faut se faire une autre task pour le debug. Pour l'instant, je découvre python pour passer le petit script send.py en mode terminal, c'est pas sorcier en fait. 5i have to modify the send.py script to make it listening for debug)
Pour compiler le firmware, j'ai installé debian sur une machine virtualBox, et je l'attaque par ssh et Winscp.
(For compiling firmware, i'have installed debian on virtualbox, and talking with ssh and winscp)
Bonne soirée.
Oui j'ai commencé à planter mon code en pourissant la tache localAccessTask durant les attentes de requête en envoyant un caractère, mais c'est que ça dépote, d'où un beau déni de service
![Smile :)](./images/smilies/icon_e_smile.gif)
localAccessTask écoute sur le port 42314 et interprête la commande "send"
dicoveryTask écoute sur le port 30303 et renvoi le firmware,l'adresse MAC,etc dès qu'on lui poste un "D".
Je pense qu'il faut se faire une autre task pour le debug. Pour l'instant, je découvre python pour passer le petit script send.py en mode terminal, c'est pas sorcier en fait. 5i have to modify the send.py script to make it listening for debug)
Pour compiler le firmware, j'ai installé debian sur une machine virtualBox, et je l'attaque par ssh et Winscp.
(For compiling firmware, i'have installed debian on virtualbox, and talking with ssh and winscp)
Bonne soirée.
Last edited by ritro on Wed Oct 03, 2012 8:40 pm, edited 1 time in total.
![Image](http://www.quoi-offrir.fr/css/skin3/images/flag_fr.png)
![Smile :)](./images/smilies/icon_e_smile.gif)
Re: tellstick-net custom firmware build
Cool et bravo.
Tu peux aussi lancer une console python en tapant python
Puis tu tapes ligne à ligne après lesdoubles chevrons
J'ai rééssayé de compiler les. .c, mais rien.
M'énerve...............
![Bang Head :banghead:](./images/smilies/icon_banghead.gif)
Tien, je fais un udp.connect(("192.168.0.20'',30303)) et udp.recv(4096)
Ben rien !!!!!!!!
Tu peux aussi lancer une console python en tapant python
Puis tu tapes ligne à ligne après lesdoubles chevrons
J'ai rééssayé de compiler les. .c, mais rien.
M'énerve...............
![Bang Head :banghead:](./images/smilies/icon_banghead.gif)
Tien, je fais un udp.connect(("192.168.0.20'',30303)) et udp.recv(4096)
Ben rien !!!!!!!!
Re: tellstick-net custom firmware build
tu as bien lu le readme.txt ? (Did you read the readme txt file)
Tu dois aussi avoir les sous modules rf et tcpip. (you must have submodule too)
J'ai fait un script pour la compil, je l'ai mis dans le dossier tellstick-net, le voici :
(i've made a script for batch compil, i launch it from the tellstick-net folder, here he come )
Code: Select all
Prepare the source
------------------
Check out the source from the Telldus repository. We use submodules so
they must also be initialized.
git clone http://git.telldus.com/tellstick-net.git
cd tellstick-net
git submodule init
git submodule update
J'ai fait un script pour la compil, je l'ai mis dans le dossier tellstick-net, le voici :
(i've made a script for batch compil, i launch it from the tellstick-net folder, here he come )
Code: Select all
#export PATH=$PATH:/usr/hitech/picc-18/pro/9.63PL3/bin
rm -R build
mkdir build
cd build
cmake ../firmware -DPICC18_PATH=/usr/hitech/picc-18/pro/9.63PL3/bin/picc18 -DDEBUG=n -DDEVICE_ADDRESS=192.168.1.34
#cmake ../firmware -DPICC18_PATH=/usr/hitech/picc-18/pro/9.63PL3/bin/picc18 -DDEBUG=n -DDO_BOOTLOADING_OVER_TCPIP=n -DDEVICE_ADDRESS=192.168.1.34
cd build
make
cd ..
Last edited by ritro on Wed Oct 03, 2012 8:37 pm, edited 1 time in total.
![Image](http://www.quoi-offrir.fr/css/skin3/images/flag_fr.png)
![Smile :)](./images/smilies/icon_e_smile.gif)
Re: tellstick-net custom firmware build
It would be nice if you could communicate in english. The majority of the users here (me included) doesn't understand a word in french. ![Smile :)](./images/smilies/icon_e_smile.gif)
![Smile :)](./images/smilies/icon_e_smile.gif)
Re: tellstick-net custom firmware build
Ok, sorry !Too happy to discover that i'm not the only one frogggy ![Wink ;)](./images/smilies/icon_e_wink.gif)
![Wink ;)](./images/smilies/icon_e_wink.gif)
![Image](http://www.quoi-offrir.fr/css/skin3/images/flag_fr.png)
![Smile :)](./images/smilies/icon_e_smile.gif)
Re: tellstick-net custom firmware build
Here my code from send.py
I have add a recv until timeout, if error due to timeout, buf is set to null else printing it.
I have add a recv until timeout, if error due to timeout, buf is set to null else printing it.
Code: Select all
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
#
# Copyright: See COPYING file that comes with this distribution
#
#
import socket, re, sys
UDPSock = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
UDPSock.setsockopt(socket.SOL_SOCKET,socket.SO_BROADCAST,1)
UDPSock.setblocking(1)
UDPSock.settimeout(3)
UDPSock.bind( ('', 42314) )
print "Autodiscover TellStick Net..."
UDPSock.sendto("D", ('255.255.255.255',30303))
p = re.compile('(.+):(.+):(.+):(.+)')
ip = None
while 1:
try:
(buf, (ip, port)) = UDPSock.recvfrom(2048)
except socket.error, msg:
break
m = p.match(buf)
print "Found %s on ip %s firmware version %s" % (m.group(1), ip, m.group(4))
if (m.group(4) == 'X'):
print " This has firmware X, lets use it"
break
else:
print " Not using correct firmware"
ip = None
if (ip == None):
print "No TellStick Net with correct firmware found"
sys.exit(1)
print "Send Arctech code switch A1 turn on to %s" % ip
protocol = '$k$k$k$k$k$k$k$k$k$k$k$k$k$k$k$k$k$k$kk$$kk$$kk$$k' #On
#protocol = '$k$k$k$k$k$k$k$k$k$k$k$k$k$k$k$k$k$k$kk$$kk$$k$k$k' #Off
#protocol = 'R!S$k$k$+'
msg = "4:sendh1:S%X:%ss" % (len(protocol), protocol)
UDPSock.sendto(msg,(ip,42314))
print "ok, next"
UDPSock.settimeout(9)
while 1:
try:
buf = UDPSock.recv(2048)
except socket.error, msg:
buf = ""
if len(buf):
print "Received: %s" % buf
![Image](http://www.quoi-offrir.fr/css/skin3/images/flag_fr.png)
![Smile :)](./images/smilies/icon_e_smile.gif)